Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch documentation to mkdocs + mkdocs material #147

Open
schlegelp opened this issue Apr 9, 2024 · 7 comments
Open

Switch documentation to mkdocs + mkdocs material #147

schlegelp opened this issue Apr 9, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@schlegelp
Copy link
Collaborator

schlegelp commented Apr 9, 2024

This is a pain in the neck but I think migrating to mkdocs would pay off in the long run:

  1. The build process is so much smoother and faster than Sphinx + RTD (live preview!)
  2. Much more modern look and feel
  3. API documentation (via mkdocstrings) is just incredible
  4. Markdown instead of freaking RST

and the lost goes on....

As an example, check out the docs for Octarine I cobbled together over a weekend.

@schlegelp schlegelp added the enhancement New feature or request label Apr 9, 2024
@ceesem
Copy link

ceesem commented Apr 9, 2024

Having started down this path ourselves, it's less of a pain in the neck than you'd think and this sort of conversion is exactly in the wheelhouse of LLMs.

@schlegelp
Copy link
Collaborator Author

My biggest grievance with mkdocs is that the HTML produced from Jupyter notebooks (which I use for the tutorials because they can also be tested) just looks atrocious.

@bdpedigo
Copy link
Contributor

@schlegelp
Copy link
Collaborator Author

I've used the former but the latter also looks familiar - probably tried it out and ran into some issue.

@schlegelp
Copy link
Collaborator Author

Note to self: I think I like mdocs-gallery - it looks visually clean. It would mean rewriting the Jupyter notebooks to simple Python scripts (using the #%% syntax to label markdown) but we'd still be able to test against them.

@bdpedigo
Copy link
Contributor

ive used this to convert https://jupytext.readthedocs.io/en/latest/formats-scripts.html so that would make the conversion easy!

@schlegelp
Copy link
Collaborator Author

FYI, preview version here: https://navis-org.github.io/navis/

I managed to solve/work-around most of the problems I encountered along the way - will put details in the PR. There are still a bunch of tutorials to migrate and docstrings to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants