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

DOC: Add missing language specification to code-block #882

Merged
merged 1 commit into from
Sep 14, 2018

Conversation

mgeier
Copy link
Contributor

@mgeier mgeier commented Sep 10, 2018

See http://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-code-block

I'm actually wondering why this is only a Sphinx warning (rather than an error), because it seems to silently remove the code block from the resulting page: https://nbconvert.readthedocs.io/en/5.4/changelog.html#raw-templates

@mgeier
Copy link
Contributor Author

mgeier commented Sep 10, 2018

I've created an issue about the Sphinx warning vs. error situation: sphinx-doc/sphinx#5407.

@minrk
Copy link
Member

minrk commented Sep 14, 2018

That's surprising! I thought code-block had a default syntax-highlighting language if not specified for a given directive, or at least fallback on no highlighting.

@minrk minrk merged commit 6dd08eb into jupyter:master Sep 14, 2018
@mgeier mgeier deleted the doc-warning branch September 14, 2018 14:52
@mgeier
Copy link
Contributor Author

mgeier commented Sep 14, 2018

@minrk Thanks for merging! And yes, it is strange, see sphinx-doc/sphinx#5407 and sphinx-doc/sphinx#1851.

@MSeal MSeal added this to the 5.4.1 milestone Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants