docs: Split policy language chapter#44204
Conversation
|
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
... with the current one:
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? |
|
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. |
|
@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: |
Uh-oh, heading on from seemingly low-hanging fruit to reading CFPs... 😅 |
|
Hehe, no pressure by any means - I read the comment:
.. 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 😅 |
661146e to
271e63c
Compare
|
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...). |
joestringer
left a comment
There was a problem hiding this comment.
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.
a55129d to
64db873
Compare
|
Alright, adjusted - thank you! :) |
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>
64db873 to
24bbc1c
Compare
|
nvm, a |
There was a problem hiding this comment.
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 :)
|
/test |
|
Changes are now live on @cilium/docs-structure any strong opinions about whether to backport this or keep it only for |
|
No strong opinion.
Let's mark for backport to 1.19 (we could even try older branches?) and see if automated backports work without conflict? |
|
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. |


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:
description and a
Fixes: #XXXline if the commit addresses a particularGitHub issue.
Fixes: <commit-id>tag, thenplease add the commit author[s] as reviewer[s] to this issue.
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.