-
Notifications
You must be signed in to change notification settings - Fork 85
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: update python docs template #576
docs: update python docs template #576
Conversation
@crwilcox PTAL |
@@ -166,7 +166,7 @@ def docs(session): | |||
"""Build the docs for this library.""" | |||
|
|||
session.install('-e', '.') | |||
session.install('sphinx<3.0.0', 'alabaster', 'recommonmark') | |||
session.install('sphinx', 'alabaster', 'recommonmark') |
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.
@crwilcox IIRC, you needed a specific version of sphinx. Will this break you?
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.
We made this change here: googleapis/python-bigtable#20 and the docs build passed successfully, so we wanted to make this change more broadly.
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.
@@ -38,6 +38,7 @@ extensions = [ | |||
"sphinx.ext.napoleon", | |||
"sphinx.ext.todo", | |||
"sphinx.ext.viewcode", | |||
"recommonmark", |
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.
We did the same change in python-storage: googleapis/python-storage#103
Didn't realize it came from this parent template. The rationale for it:
https://github.com/readthedocs/recommonmark
# for Sphinx-1.4 or newer
extensions = ['recommonmark'] # <---- this
# for Sphinx-1.3
from recommonmark.parser import CommonMarkParser
source_parsers = {
'.md': CommonMarkParser,
}
source_suffix = ['.rst', '.md']
@SurferJeffAtGoogle do you mind merging this? I don't have access :) |
Fixes #570