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

docs: add myst parser #274

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

dgarcia360
Copy link

Related PR: scylladb/sphinx-scylladb-theme#803

This PR replaces Sphinx's deprecated extension recommonmark with myst-parser, as per https://sphinx-theme.scylladb.com/stable/configuration/markdown.html#recommonmark-parser.

How it works

Sphinx will build the versions listed in scylladb_markdown_recommonmark_versions with recommonmark, and the newer versions you create from now with Myst Parser.

How to test

Check the docs build and display without errors.

Next steps

Important: I recommend you backport this pull request to the Scylla-4.x branch so that the new versions you create from it are myst-parser compatible.

@dgarcia360
Copy link
Author

cc/ @annastuchlik @avelanarius

@annastuchlik
Copy link

@avelanarius Please review this PR, then merge and backport to Scylla-4.x.

@annastuchlik
Copy link

@avelanarius ping

Comment on lines +79 to +89
'scylla-3.7.2.x',
'scylla-3.10.2.x',
'scylla-3.11.0.x',
'scylla-3.11.2.x',
'scylla-4.7.2.x',
'scylla-4.10.0.x',
'scylla-4.11.1.x',
'scylla-4.12.0.x',
'scylla-4.13.0.x',
'scylla-4.14.1.x',
'scylla-4.15.0.x',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have so many of these?
I think we should keep only 2-3 for each major version (3.x and 4.x).
Also, how can we set that these will be updated automatically from the repository releases?
Today our latests are 4.17.0.0 and 3.11.5.3

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have so many of these?

scylladb_markdown_recommonmark_versions lists versions using the old recommonmark library instead of the new MystParser. You don't need to change this if you add new versions to BRANCHES in conf.py.

I think we should keep only 2-3 for each major version (3.x and 4.x).

I agree. Maintainers can choose which branches to build docs for using the BRANCHES property in conf.py.

Also, how can we set that these will be updated automatically from the repository releases?

There's an open issue for it: scylladb/sphinx-scylladb-theme#848

@annastuchlik
Copy link

@roydahan @avelanarius This PR can be merged. If you want to limit the number of branches for which the docs should be built, it should be done in a separate PR (and I agree it would be a good idea).

@roydahan roydahan merged commit 9eedcac into scylladb:scylla-3.x Jun 13, 2024
13 of 15 checks passed
@dgarcia360 dgarcia360 deleted the docs-myst-parser branch June 14, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants