binderhub icon indicating copy to clipboard operation
binderhub copied to clipboard

Migrate documentation from reStructuredText to MyST Markdown

Open rgaiacs opened this issue 5 months ago • 2 comments

The documentation is mostly written in reStructuredText, see docs/source, with the exception of a single Markdown file, docs/source/contribute.md.

What is the reason for only one file to be in Markdown?

Should we convert the Markdown file into reStructuredText? Or should we migrate the documentation to MyST Markdown?

rgaiacs avatar Jul 17 '25 10:07 rgaiacs

The original docs would've been in RST. When MyST came out we switched some repos to use Markdown. In some cases it was a full migration, in others MD was used for new documentation or when an existing file was being rewritten, with other existing files being left unchanged.

I think it comes down to whether migrating all docs to MD is a good use of time, and/or whether someone's keen to do it.

manics avatar Jul 17 '25 11:07 manics

I noticed that the documentation uses the directive automodule provided by the Sphinx autodoc extension, for example https://github.com/jupyterhub/binderhub/blob/588d021b91078311f360d0f88c0944accc8bb498/docs/source/reference/app.rst?plain=1#L8 This will require the use of eval-rst as answer in the MyST documentation, see https://myst-parser.readthedocs.io/en/latest/syntax/roles-and-directives.html#how-directives-parse-content.

rgaiacs avatar Jul 17 '25 12:07 rgaiacs