Skip to content

docs: Split policy language chapter#44204

Merged
joestringer merged 1 commit intocilium:mainfrom
orangecms:docs-page-title
Feb 13, 2026
Merged

docs: Split policy language chapter#44204
joestringer merged 1 commit intocilium:mainfrom
orangecms:docs-page-title

Conversation

@orangecms
Copy link
Copy Markdown
Contributor

Up until now, the page title had been 'Layer 3 Examples', which is a section headline and confusing, since it is among other examples.

Please ensure your pull request adheres to the following guidelines:

  • For first time contributors, read Submitting a pull request
  • All code is covered by unit and/or runtime tests where feasible.
  • All commits contain a well written commit description including a title,
    description and a Fixes: #XXX line if the commit addresses a particular
    GitHub issue.
  • If your commit description contains a Fixes: <commit-id> tag, then
    please add the commit author[s] as reviewer[s] to this issue.
  • All commits are signed off. See the section Developer’s Certificate of Origin
  • Provide a title or release-note blurb suitable for the release notes.
  • Are you a user of Cilium? Please add yourself to the Users doc
  • Thanks for contributing!

docs: add policy language chapter headline

Up until now, the page title had been 'Layer 3 Examples', which is a section headline and confusing, since it is among other examples.

docs: add policy language chapter headline

@orangecms orangecms requested review from a team as code owners February 5, 2026 11:54
@orangecms orangecms requested a review from fristonio February 5, 2026 11:54
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 5, 2026
@orangecms orangecms requested a review from qmonnet February 5, 2026 11:54
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Feb 5, 2026
@qmonnet
Copy link
Copy Markdown
Member

qmonnet commented Feb 5, 2026

Hi, and thanks!

This is not a bad idea, although I'm concerned that by adding a heading layer to the document, we lose the nested headings in the table of contents on https://docs.cilium.io/en/latest/security/policy/: compare your version

image

... with the current one:

image

I think it's nice to have this information quickly available from the ToC.

Let's see, maybe we can find another way to adjust this? We could change the current headings to “Network Policy - Layer 3 Examples” (and similarly for the other sections)? Or we could split this document into several smaller ones, such that “Layer 3 Examples” becomes a correct heading for the document, and no longer a section among others? @joestringer do you have an opinion?

@qmonnet qmonnet added area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. release-note/misc This PR makes changes that have no direct user impact. labels Feb 5, 2026
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 5, 2026
@orangecms
Copy link
Copy Markdown
Contributor Author

True, this pushes the other headlines a level down. The thing is that if a page has no single highest-level headline, then the first headline is still taken as the page title, which is also an issue for search engines. I think splitting up into multiple pages makes more sense then.

This might affect other sections/pages, too; I haven't checked that, just ran into this here when searching for L4 docs. 😅

On another note, I also found it confusing to only see "examples", although I was looking for the full language specification; maybe that should rather be the respective page's title if split up.

@joestringer
Copy link
Copy Markdown
Member

@orangecms thanks for digging into this! Indeed I think we can improve the docs to split more clearly into different document types. @pmatulis put quite a bit of thought a while back into how we would ideally structure many aspects of the docs, so I think this would be a good blueprint to figure out how to improve different areas of the docs. The trick as always is how to pick something small to start and make some early progress so we don't get bogged down in big changes :)

Here's the Cilium Feature Proposal (really a design proposal) for a doc improvement plan:
https://github.com/cilium/design-cfps/blob/main/cilium/CFP-39757-doc-improvement-plan.md

@orangecms
Copy link
Copy Markdown
Contributor Author

@orangecms thanks for digging into this! Indeed I think we can improve the docs to split more clearly into different document types. @pmatulis put quite a bit of thought a while back into how we would ideally structure many aspects of the docs, so I think this would be a good blueprint to figure out how to improve different areas of the docs. The trick as always is how to pick something small to start and make some early progress so we don't get bogged down in big changes :)

Here's the Cilium Feature Proposal (really a design proposal) for a doc improvement plan: https://github.com/cilium/design-cfps/blob/main/cilium/CFP-39757-doc-improvement-plan.md

Uh-oh, heading on from seemingly low-hanging fruit to reading CFPs... 😅
I'll check it out when I find some time, thank you! 🥰

@joestringer
Copy link
Copy Markdown
Member

Hehe, no pressure by any means - I read the comment:

On another note, I also found it confusing to only see "examples", although I was looking for the full language specification; maybe that should rather be the respective page's title if split up.

.. and I thought "Ah yes, we aren't clearly defining the page as either reference or tutorial but rather mixing a bit of both." This specifically relates to the following section: https://github.com/cilium/design-cfps/blob/main/cilium/CFP-39757-doc-improvement-plan.md#appendix-c---documentation-types

That said if you had other small ideas on how to improve the docs, feel free to submit them whether you get the chance to read into the CFP above or not. We haven't got to a point where we're enforcing contributions to follow the above, so it's more like a blueprint or "north star" to help inform reviewers how we might steer docs contributions, but it's not "required reading" per se 😅

@orangecms orangecms requested a review from a team as a code owner February 9, 2026 12:25
@orangecms orangecms requested a review from christarazi February 9, 2026 12:25
@orangecms
Copy link
Copy Markdown
Contributor Author

Alright, I've split up the page, that appears to be the best move for now.

The PR title cannot be changed by the author anymore, unfortunately, otherwise I'd adjust it (thanks GitHub...).

@qmonnet qmonnet changed the title docs: add policy language chapter headline docs: Split policy language chapter Feb 9, 2026
Copy link
Copy Markdown
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the way this splits the giant document into smaller documents.

Given the top level overview page I'm not entirely convinced about having a page for the network policy language, as it feels like the goal of the new page is the same as the goal of the overview page, just for a subset of the pages. Structurally that's a little awkward because we don't currently split the language, the non-language features, references, examples and so on differently. That said, maybe this proposal is a reasonable step towards a better structure overall. We can always iterate further after this.

Couple of minor comments below.

@orangecms orangecms force-pushed the docs-page-title branch 4 times, most recently from a55129d to 64db873 Compare February 10, 2026 06:50
@orangecms
Copy link
Copy Markdown
Contributor Author

Alright, adjusted - thank you! :)

@pchaigno pchaigno requested a review from joestringer February 11, 2026 14:03
Up until now, the page title had been "Layer 3 Examples", which is
a section headline and confusing, since it is among other examples.
Splitting up into several pages, similar to `network/kubernetes/`,
keeps the ToC as it is, and makes it easier to navigate compared to
the lengthy page it was, while also giving each page a suitable
headline.
Since examples are mixed with the language specification, change
headings from "Layer 3 Examples" to "Layer 3 Policies", etc.
Drop the old page and redirect to the overview to keep links working.

Signed-off-by: Daniel Maslowski <info@orangecms.org>
@orangecms
Copy link
Copy Markdown
Contributor Author

orangecms commented Feb 12, 2026

I'm getting this here, no idea what the error/warning is; I'll see if I can get some "verbose" output or smth.

writing output...
building [html]: targets for 653 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
reading sources...
looking for now-outdated files... none found
preparing documents... done
copying downloadable files... [100%] security/audits/CiliumFuzzingAudit2022.pdf
copying static files... done
copying extra files... done
done
writing output... [100%] security/policy/index .. security/tls-visibility
generating indices... genindex http-routingtable done
writing additional pages... search done
copying images... [100%] security/images/cilium-tls-interception.png
dumping search index in English (code: en)... done
dumping object inventory... done
Writing redirects...
build finished with problems, 1 warning.
make: *** [Makefile:143: html] Error 1

nvm, a make clean did the magic, all good!

Copy link
Copy Markdown
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had reviewed earlier all the minor changes and rendered output, but not the file adds/deletes. Just wanted to take the time to actually pull the change and understand the full diff for the split changes. All looks good to me now, thanks for contributing :)

@joestringer
Copy link
Copy Markdown
Member

/test

@joestringer joestringer added this pull request to the merge queue Feb 13, 2026
Merged via the queue into cilium:main with commit 2df56ae Feb 13, 2026
74 checks passed
@joestringer
Copy link
Copy Markdown
Member

Changes are now live on /latest: https://docs.cilium.io/en/latest/security/policy/ .

@cilium/docs-structure any strong opinions about whether to backport this or keep it only for /latest until /v1.20 later this year?

@orangecms orangecms deleted the docs-page-title branch February 13, 2026 06:22
@qmonnet
Copy link
Copy Markdown
Member

qmonnet commented Feb 13, 2026

No strong opinion.

  • It doesn't really add any new information, so maybe not worth the hassle.
  • On the other hand, if any other changes in the network policies docs need to be backported, we'll have conflicts, so why not.

Let's mark for backport to 1.19 (we could even try older branches?) and see if automated backports work without conflict?

@joestringer joestringer added the needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch label Feb 13, 2026
@joestringer
Copy link
Copy Markdown
Member

joestringer commented Feb 13, 2026

Conflicts with 1.19 are probably less likely given we only branched roughly a month ago. Older releases are more likely to differ, given this is removing the language.rst file.

@glrf glrf mentioned this pull request Feb 17, 2026
12 tasks
@glrf glrf added backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. and removed needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch labels Feb 17, 2026
@github-actions github-actions bot added backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. and removed backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. labels Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. kind/community-contribution This was a contribution made by a community member. release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants