-
Notifications
You must be signed in to change notification settings - Fork 80
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
Replace recommonmark with myst (docs) #1021
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1021 +/- ##
==========================================
+ Coverage 83.30% 92.05% +8.75%
==========================================
Files 97 72 -25
Lines 8749 5453 -3296
==========================================
- Hits 7288 5020 -2268
+ Misses 1461 433 -1028
Continue to review full report at Codecov.
|
question! does it flag missing local references for you, or are you just being extra careful in your review? |
A bit of both. I replaced full URLs (pointing to There are still many warnings about documents not properly linked in |
heh, the myst parser doesn't support Python 2.7, so this broke Travis =P |
I'm not immediately sure why this is happening, but |
oh, I see the diff... but that doesn't work for me :) |
I built it locally! Questions:
I haven't reviewed the content changes yet, will get into that next. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, overall! A few minor questions and comments.
@@ -205,3 +205,14 @@ For the Rust core library we use `rMAJOR.MINOR.PATH` | |||
(note it starts with `r`, and not `v`). | |||
The Rust version is not automated, | |||
and must be bumped in `src/core/Cargo.toml`. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this TOC ends up at the bottom of the file. Is this intentional (and if so, why 😂)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I collected orphan links into a toc, but opted to put it in the bottom to avoid disrupting the current docs. But it might be more useful to put on the top...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! My only comment is small and nitpicky. Some places have docs
plural and some have doc
singular. For clarity, is it possible to have only one spelling?
@olgabot re
I did some grepping in the markdown and can't find places where doc, singular, was used -- could you point us at a specific example? I'm on board with picking one just want to make sure I understand :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out all the mentions of docs
were in the Travis and tox files! The documentation folder is called doc
singular, so maybe that's the way to go? Maybe less of a deal than I thought initially, but it tripped me up on my first read.
- <<: *test | ||
python: 3.7 | ||
end: | ||
- TOXENV=docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs plural
Makefile
Outdated
@@ -23,7 +23,7 @@ test: all | |||
$(PYTHON) -m pytest | |||
cargo test | |||
|
|||
doc: .PHONY | |||
doc: build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc singular
@@ -1,13 +1,12 @@ | |||
[tox] | |||
envlist=py27,py35,py36,py37,py38 | |||
envlist=py27,py35,py36,py37,py38,docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs plural
storage | ||
|
||
[testenv:docs] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs plural
Issues that need to be resolved for a merge, IMO -
I might work on these in a separate PR (into this one). |
so basically we just need to force the |
Fixes #2604 This PR fixes links to binder tutorials that apparently have been broken since 2020 😱 , when the docs were switched over to myst-parser in #1021. To be fair, it's the kind of subtle bug that would leave users scratching their head going "maybe it's me?" - the links simply went back to the tutorial page... not sure why they weren't flagged by sphinx or myst-parser as being bad!? This PR also updates environment.yml to properly build: * includes pip * specifies minimum python version * specifies minimum sourmash version ref #2503 for why specifying the minimum sourmash and/or python versions can be important! And, finally, I ran and fixed all the notebooks... Note: I confirmed that this branch launches properly in binder. The URL is: https://mybinder.org/v2/gh/sourmash-bio/sourmash/fix/tutorial-nb --------- Co-authored-by: ccbaumler <63077899+ccbaumler@users.noreply.github.com>
MyST is a new markdown parser that supports features from ReStructureText, especially Sphinx directives and roles. This might be enough to replace the last
.rst
document (the index), for example, while also allowing more customization lost on the rst -> md transition.TODO
index.rst
to a markdown file[ ] Convertpending on Support use of autodoc with myst executablebooks/MyST-Parser#163api.rst
to a markdown fileChecklist
make test
Did it pass the tests?make coverage
Is the new code covered?without a major version increment. Changing file formats also requires a
major version number increment.
changes were made?