Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
a885a6ae
Unverified
Commit
a885a6ae
authored
May 23, 2018
by
peastman
Committed by
GitHub
May 23, 2018
Browse files
Merge pull request #2080 from peastman/sphinx
Changes to work correctly with latest version of Sphinx
parents
65a1f936
428fb836
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
.travis.yml
.travis.yml
+1
-1
docs-source/sphinx/autonumber.py
docs-source/sphinx/autonumber.py
+11
-12
No files found.
.travis.yml
View file @
a885a6ae
...
...
@@ -182,7 +182,7 @@ script:
-
python devtools/run-ctest.py --start-time $START_TIME
-
if [[ ! -z "${DOCS_DEPLOY}" && "${DOCS_DEPLOY}" = "true" ]]; then
pip install sphinx
==1.5.6
sphinxcontrib-bibtex sphinxcontrib-lunrsearch sphinxcontrib-autodoc_doxygen;
pip install sphinx sphinxcontrib-bibtex sphinxcontrib-lunrsearch sphinxcontrib-autodoc_doxygen;
make sphinxhtml;
make sphinxpdf;
make C++ApiDocs PythonApiDocs;
...
...
docs-source/sphinx/autonumber.py
View file @
a885a6ae
from
docutils.parsers.rst
import
roles
from
docutils.nodes
import
Text
,
reference
,
section
from
docutils.nodes
import
Text
,
reference
,
section
,
label
from
sphinx.roles
import
XRefRole
class
autonumber
(
Text
):
class
autonumber
(
label
):
pass
class
autonumber_ref
(
reference
):
pass
def
autonumber_role
(
name
,
rawtext
,
text
,
lineno
,
inliner
,
options
=
{},
content
=
[]):
return
([
autonumber
(
text
)],
[])
return
([
autonumber
(
text
=
text
)],
[])
def
doctree_resolved
(
app
,
doctree
,
docname
):
index
=
{};
...
...
@@ -68,4 +68,3 @@ def setup(app):
app
.
add_role
(
'autonumref'
,
XRefRole
(
nodeclass
=
autonumber_ref
))
app
.
connect
(
'doctree-resolved'
,
doctree_resolved
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment