OctoPrint / docs

WIP New documentation built with mkdocs
1 stars 1 forks source link

[Epic] Migrate docs from current Sphinx/rst based format to mkdocs and Markdown #2

Open foosel opened 2 years ago

foosel commented 2 years ago

Sub tasks (still building up, in no way to be considered exhaustive yet):

Migration of docstrings happens in 'improve/mkdocs' branch of OctoPrint/OctoPrint. Current preview available at octoprint.github.io/docs.

Open questions:

foosel commented 1 year ago

Issues with mkdocstrings:

So I got the idea to check out Myst and sphinx-autodoc2. And at first things look good, but alas, sphinx-autodoc2 currently doesn't support our Google docstrings, e.g.

Arguments
  foo (str): doc for foo

Returns:
  (str): Some return value

It only supports Sphinx based parameter docs, e.g.

:param str foo: doc for foo
:rtype str:
:return: Some return value

That's obviously less readable, and thus would be a step backwards. So for now we'd not be able to use Markdown in the docstrings, which would then get us back to having to write Restructured Text, and this whole exercise here is about getting rid of rSt for good.

I'm starting to feel the tooling might not yet be fully there. I'll tinker around with both a bit more to see if I can find solutions for either one that will work for OctoPrint.