-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
TypeError: add_source_parser() positional arguments error in Sphinx v3.0.0 #7420
Comments
Having the same issue on gitlab-ci with
|
Since 1.8.0, the Lines 1323 to 1324 in 713bbf5
And it has also been reported at m2r project (miyakogi/m2r#51). I think m2r should be updated to use new API. Thanks, |
@CrossNox Thanks for your PR to |
@matthewfeickert sure, I'll have to search a replacement eventually. For now, we've pointed the dependency to my fork to test it. m2r's owner doesn't seem to have been active since last june :( |
@CrossNox @halfak it might be worth (for all of our projects) checking how Black is able to use Makrdown but doesn't use |
From first glance it seems this is done by using source_parsers = {".md": CommonMarkParser} in
I haven't tried this on |
@matthewfeickert i'm running into the same issue right now. have you found a working fix? do you suggest trying this:
So did you replace m2r with recommmark or is that an additional extension? |
No, until Sphinx Issue 7000 is resolved I don't think there is a clean solution (for Markdown
Yes. This would be part of the solution, but it isn't enough by itself. It seems that just switching |
got it. thanks @matthewfeickert i guess we could also just go back to all rst. and maintain a separate readme ... or link to the readme. if you or anyone finds an elegant solution please let me know! |
@matthewfeickert FWIW our build no longer fails with that hotfix on the m2r PR. Maybe it's worth it to tag a release on the fork until #7000 is developed? |
👍 Glad to hear that's working for you.
Perhaps, though I think I'm more inclined to just move off of
To that end we have |
@CrossNox I have a build fail in my CI because of the same issue. Can you help me understand how you fetch the hotfix. Do you explicitly checkout the package from gitlab and install it manually or is there a more elegant way of going about it? |
@sheiksadique we had |
TypeError: add_source_parser() positional arguments error in Sphinx v3.0.0 following recommendation sphinx-doc/sphinx#7420 to change m2r to m2r @ git+https://github.com/crossnox/m2r@dev#egg=m2r sphinx-doc/sphinx#7479
This simple and clever workaround did the trick: readthedocs/recommonmark#191 (comment). |
Cannot use version 3 because of sphinx-doc/sphinx#7420 Resolves #309
Since I'm still seeing lots of clones on my fork (which I created for the PR linked above) here goes a quick update: I've released it as |
Until Sphinx upstream moves to a different markdown converter, m2r2 would fix builds. Issue: sphinx-doc/sphinx#7420 See also: miyakogi/m2r#55 (comment)
Until Sphinx upstream moves to a different markdown converter, m2r2 would fix builds. Issue: sphinx-doc/sphinx#7420 See also: miyakogi/m2r#55 (comment)
Describe the bug
In
pyhf
's nightly CI we noticed that our build of our docs fails with the release of Sphinxv3.0.0
which when run locally the generated log is
The exact same code passed the nightly build the night before with Sphinx
v2.4.4
.To Reproduce
Steps to reproduce the behavior:
For additional reference, our GitHub Actions workflow is here.
Expected behavior
The docs successfully build.
Your project
pyhf
Issue 818Environment info
ubuntu-latest
is)Additional context
pyhf
Issue 818The text was updated successfully, but these errors were encountered: