Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita02facd

Browse files
stsewdByron
authored andcommitted
Build docs locally
Currently `make html` will output pages without stylesor different than the online documentation.With this change the local documentation looks the same as the onlinedocumentation.
1 parent6df6d41 commita02facd

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)

[8]ページ先頭

©2009-2025 Movatter.jp