docs: structure docs out of flat dir into tree#1662
docs: structure docs out of flat dir into tree#1662leondz wants to merge 2 commits intoNVIDIA:mainfrom
Conversation
jmartin-tech
left a comment
There was a problem hiding this comment.
Sorry scope creep comment, should we match code structure file name convention, ex: detectors/always.rst instead of detectors/detectors.always.rst?
|
Very in scope. I thought the same. Landed on this format ( Actually, having now said that, maybe it would make sense to mirror the source dir structure?? |
|
I agree matching the source dir structure seems intuitive. |
|
I was just thinking about you folks a few hours ago! The downside to directories--unless you cooked up something different--is that typically the directories beg for an index.md file in the directory so that a human at generators/generators.nim.html figures removing the page part of the URL should go to some navigation. An example of that navigation approach is at https://docs.nvidia.com/nemo/microservices/latest/audit/targets/index.html. Also, you can make the navigation in the TOC more manageable without the directories, in case that was the true goal. |
|
Thanks @mikemckiernan for the tips!
This wasn't the primary goal but would appreciate input/guidance here, there's room for improvement for sure |
Sorry for commenting and then silence for > 24hrs. I just took another look and what's in main is what I meant to recommend:
It requires folks to click to discover content, but the information is available without expanding the TOC enormously. |
mikemckiernan
left a comment
There was a problem hiding this comment.
Another disadvantage to the directories is consideration for any bookmarked content or current references to these docs. (I'm fairly sure that I made a few.) Please consider using sphinx-reredir if you truly prefer the directories.
| @@ -0,0 +1,34 @@ | |||
| Detectors | |||
There was a problem hiding this comment.
Apologies for the lack of clarity about the index files. I meant to suggest that if you want the directories, that it is kindest to make a docs/source/detectors/index.rst with contents like this, but with revised local paths.
The point is that you'd want something to appear if someone types their way to https://reference.garak.ai/en/latest/detectors/.

Flat structure isn't working for docs any more. This PR structures them into a tentative dir setup.
garak.prefix (they're all about garak)index_This is a rough structure, feedback welcome
To test: