File tree Expand file tree Collapse file tree 6 files changed +53
-10
lines changed Expand file tree Collapse file tree 6 files changed +53
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ build_doc :
13
+ name : ' Build cpython doc'
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : actions/setup-python@v2
18
+ with :
19
+ python-version : 3.7
20
+ - name : clone docsbuild scripts
21
+ run : |
22
+ git clone https://github.com/python/docsbuild-scripts/
23
+ - name : setup requirements
24
+ run : |
25
+ python -m pip install --upgrade pip
26
+ python -m pip install jinja2 markupsafe
27
+ - name : build docs
28
+ run : |
29
+ python3 ./docsbuild-scripts/build_docs.py --quick --build-root ./build_root --www-root ./www --log-directory ./logs --group $(id -g) --skip-cache-invalidation --theme $(pwd) --language en --branch 3.9
30
+ - name : ' Upload'
31
+ uses : actions/upload-artifact@v2.2.2
32
+ with :
33
+ name : doc-html
34
+ path : www/
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ trust.
13
13
To use the theme, install it into your docs build environment via ``pip ``
14
14
(preferably in a virtual environment).
15
15
16
- 1. Create and activate a virtual environment::
17
16
18
- $ python -m venv env
19
- $ source env/bin/activate
17
+ Configuration options
18
+ ---------------------
20
19
21
- 2. Install python-docs-theme using `pip `::
22
-
23
- (env)$ python -m pip install python-docs-theme
20
+ To use this theme, add the following to ``conf.py ``:
21
+
22
+ - ``html_theme = 'python_docs_theme' ``
23
+
24
+ - ``html_sidebars ``, defaults taken from http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars
Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ <h3>{{ _('Navigation') }}</h3>
115
115
< div class ="footer ">
116
116
© < a href ="{{ pathto('copyright') }} "> {% trans %}Copyright{% endtrans %}</ a > {{ copyright|e }}.
117
117
< br />
118
+ {% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
119
+ < br />
120
+ {% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
121
+ < br />
122
+ {% trans pathto_license=license_file %}See < a href ="{{ license_file }} "> History and License</ a > for more information.{% endtrans %}
123
+ < br /> < br />
118
124
119
125
{% include "footerdonate.html" %}
120
126
< br />
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ $(document).ready(function() {
5
5
var div = $ ( '.highlight-python .highlight,' +
6
6
'.highlight-python3 .highlight,' +
7
7
'.highlight-pycon .highlight,' +
8
+ '.highlight-pycon3 .highlight,' +
8
9
'.highlight-default .highlight' ) ;
9
10
var pre = div . find ( 'pre' ) ;
10
11
@@ -61,4 +62,3 @@ $(document).ready(function() {
61
62
}
62
63
} ) ;
63
64
} ) ;
64
-
Original file line number Diff line number Diff line change 1
1
[theme]
2
2
inherit = default
3
3
stylesheet = pydoctheme.css
4
- pygments_style = sphinx
4
+ pygments_style = default
5
5
6
6
[options]
7
7
bodyfont = 'Lucida Grande', Arial, sans-serif
@@ -21,6 +21,8 @@ visitedlinkcolor = #00608f
21
21
headtextcolor = #1a1a1a
22
22
headbgcolor = white
23
23
headlinkcolor = #aaaaaa
24
+ codebgcolor = #eeffcc
25
+ codetextcolor = #333333
24
26
25
27
issues_url =
26
28
root_name = Python
Original file line number Diff line number Diff line change 13
13
name = 'python-docs-theme' ,
14
14
# Version is date based as year.month[.serial], where serial is used
15
15
# if multiple releases are needed to address build failures.
16
- version = '2020.1 .post1' ,
16
+ version = '2020.12 .post1' ,
17
17
description = 'The Sphinx theme for the CPython docs and related projects' ,
18
18
long_description = long_description ,
19
19
author = 'PyPA' ,
20
20
author_email = 'distutils-sig@python.org' ,
21
- url = 'https://docs. python.org ' ,
21
+ url = 'https://github.com/ python/python-docs-theme/ ' ,
22
22
packages = ['python_docs_theme' ],
23
23
include_package_data = True ,
24
24
entry_points = {
You can’t perform that action at this time.
0 commit comments