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

Migrate from nbsphinx to myst, myst-nb #7924

Open
dcherian opened this issue Jun 16, 2023 · 4 comments
Open

Migrate from nbsphinx to myst, myst-nb #7924

dcherian opened this issue Jun 16, 2023 · 4 comments

Comments

@dcherian
Copy link
Contributor

dcherian commented Jun 16, 2023

Is your feature request related to a problem?

I think we should switch to MyST markdown for our docs. I've been using MyST markdown and MyST-NB in docs in other projects and it works quite well.

Advantages:

  1. We get HTML reprs in the docs (example) which is a big improvement. (Using the html repr in the documentation #6620)
  2. I think many find markdown a lot easier to write than RST

There's a tool to migrate RST to MyST (RTD's migration guide).

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

@shoyer
Copy link
Member

shoyer commented Jun 16, 2023

I agree! I use MySt and MyST-NB for Xarray-Beam and it works quite well.

@DocOtak
Copy link
Contributor

DocOtak commented Jun 16, 2023

Would docstrings in the code also be written in MyST?

@shoyer
Copy link
Member

shoyer commented Jun 16, 2023

Would docstrings in the code also be written in MyST?

This would be really nice, but I don't think there is good tooling for it yet. It looks like there is an open issue for parsing Markdown docstrings with MyST: executablebooks/MyST-Parser#228

We use napoleon for parsing docstrings in our docs, which supports the NumPy and Google docstring conventions. We currently use the NumPy docstring convention which expects RST.

The Google docstring convention is rather different (I actually like it better), and I've seen people use markdown with it before. But I don't think tools like Napolean support that (yet).

@benbovy
Copy link
Member

benbovy commented Jun 20, 2023

I also use MyST and MyST-NB and I like it a lot!

It seems that the maintainer MyST-NB has stepped down from that project as well as a few other projects (including the tool to migrate from RST to MyST), though, which causes some issues of dependencies that are still upper bounded to old versions (e.g., sphinx < 6, myst-parser, ipython, etc. See all open PRs). It is not yet clear to me if someone else will take over the maintenance in the short term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants