Skip to content

Commit a02facd

Browse files
stsewdByron
authored andcommitted
Build docs locally
Currently `make html` will output pages without styles or different than the online documentation. With this change the local documentation looks the same as the online documentation.
1 parent 6df6d41 commit a02facd

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ install:
2222
- git submodule update --init --recursive
2323
- git fetch --tags
2424
- pip install -r test-requirements.txt
25-
- pip install codecov sphinx
25+
- pip install -r doc/requirements.txt
26+
- pip install codecov
2627

2728
# generate some reflog as git-python tests need it (in master)
2829
- ./init-tests-after-clone.sh

doc/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx<2.0
2+
sphinx_rtd_theme

doc/source/conf.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest']
3131

3232
# Add any paths that contain templates here, relative to this directory.
33-
templates_path = ['.templates']
33+
templates_path = []
3434

3535
# The suffix of source filenames.
3636
source_suffix = '.rst'
@@ -94,14 +94,10 @@
9494
# Options for HTML output
9595
# -----------------------
9696

97+
html_theme = 'sphinx_rtd_theme'
9798
html_theme_options = {
9899
}
99100

100-
# The style sheet to use for HTML and HTML Help pages. A file of that name
101-
# must exist either in Sphinx' static/ path, or in one of the custom paths
102-
# given in html_static_path.
103-
html_style = 'default.css'
104-
105101
# The name for this set of Sphinx documents. If None, it defaults to
106102
# "<project> v<release> documentation".
107103
#html_title = None
@@ -121,7 +117,7 @@
121117
# Add any paths that contain custom static files (such as style sheets) here,
122118
# relative to this directory. They are copied after the builtin static files,
123119
# so a file named "default.css" will overwrite the builtin "default.css".
124-
html_static_path = ['.static']
120+
html_static_path = []
125121

126122
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
127123
# using the given strftime format.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy