Improve documentation
-
The theme used by jupyter is called pydata-sphinx-theme. The more I look at it the more I like it. What do you think @JJ-Fullmer @Jurgen-Goedbloed @Wayne-Workman?
-
@Sebastian-Roth said in Improve documentation:
I would see those three in the FAQ section, what do you think?
I think putting them in FAQ is fine, though the ones on
fogsettings
andpassword_central
seem more like documentation that frequently asked questions.migrate_fog
is more like a procedural thing. Though long as they get in there somewhere, it works. -
@Sebastian-Roth I kind of like it, it doesn’t appear to have to think I like about the default read-the-docs theme with the expanding sidebar
But that example also doesn’t have a ton of section levels, so I’ll give adding it a go and see what it looks like for us. The Jupyter page seemed to be loading a bit slower than other ones, but that is probably unrelated to the theme. I mean we could also customize our own theme and make it look like for 1.6’s gui. But that could be a separate project.
@Wayne-Workman
For at least the .fogsettings page, we’ve already go that in the reference section I believe https://fogproject.readthedocs.io/en/latest/reference/index.html#the-fogsettings-fileI like the FSCrawler, and ansible, and readthedocs documentation tree structure layouts the best myself. Having a few very top level things to break up and organize the rest. Then it expands on down.
I think as long as we get the general structure agreed upon, changing up the order of things or adding new sections will be simple.
-
@Sebastian-Roth I tried to install that theme per the instructions in their git to no avail. I tried following some of the example site’s configs too and haven’t got it to work yet. I think it’s worth getting, just keeping you updated.
Edit
It wasn’t working because I had a dyslexic moment and because they were missing steps in their instructions
installs with
pydata-sphinx-theme
but then you define it as your theme withpydata_sphinx_theme
those silly underscores and dashes.
I also had to add a html_context section and a html_theme_options sections in theconf.py
. And I had to manually copy over the_templates
files from the theme’s repo into our project. But I got it working. It changes things up a little bit but it’s fixable, it’s just a question of what makes the most sense.There are still some kinks to work out but I think I like it.
It ends up looking like this
The front page is still very much a rough draft. But we could have something like this as exists in many other pages using this theme. Note the little panels. I figure we could have links to each top level section with a brief summary of what information is in each section.
This also changes it from combining pages into one index to more individual pages. It can be a bit easier to navigate this way and you still keep that information grouped together nicely in this theme. This is a nice find @Sebastian-Roth. All the themes I played with outside the default removed the read-the-docs version modal. This one is pretty great
-
@Sebastian-Roth I’ve almost got a decent prototype of our docs with that theme live. There are some things that aren’t working and I haven’t sorted out why yet. Mainly the floating ‘what’s on this page’ on the right doesn’t seem to float when you scroll on our site. Trying to find the css or js that is missing. But other than that I like this theme. It changes our structuring a bit but makes it more flexible.
-
@JJ-Fullmer Looks really great I find. Thanks for picking this up a working on it!
-
@Sebastian-Roth @Jurgen-Goedbloed I have got the new theme working with scrolling toc and all. I think the top menu needs a little tlc https://fogproject.readthedocs.io
Do we want to stick with this theme or revert back to the default theme, I know @Jurgen-Goedbloed mentioned he didn’t like it as much. I don’t want to go changing the readme with the structural changes if we’re not gonna stick with this theme. Personally I didn’t like it at first but it’s grown on me and it’s pretty easy to navigate.
-
The theme has been reverted for now. I have made a top level tree and structured things per the sphinx and rtd recommendations.
Since it’s now following the structure it’s designed to use, switching themes down the road should be easy breezy. -
@Jurgen-Goedbloed @JJ-Fullmer We have the DNS entry now. https://docs.fogproject.org/en/latest/
-
@sebastian-roth It’s beautiful!
Thanks for figuring that out!