Skip to content

Commit 1443834

Browse files
authored
Merge branch 'master' into master
2 parents 5370bed + 8fbf2c0 commit 1443834

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1252
-415
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@
99
*.map
1010
.ropeproject/
1111
.ruby-version
12+
bin/
1213
dist/
1314
bower_components/
15+
include/
16+
lib/
17+
local/
1418
node_modules
1519
npm-debug.log
1620
package-lock.json
21+
pip-selfcheck.json
1722
sphinx_rtd_theme/static/fonts/Lato/
1823
sphinx_rtd_theme/static/fonts/RobotoSlab/
24+
.python-version
25+
.node-version

.readthedocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
build:
2-
image: latest
1+
version: 2
32
python:
43
version: 3.6
5-
requirements_file: docs/requirements.txt
4+
install:
5+
- requirements: docs/requirements.txt

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ matrix:
1010
env: TOXENV=docs
1111
install:
1212
- pip install tox-travis
13+
- pip install sphinx
1314
script:
1415
- tox
1516

.tx/config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[sphinx-rtd-theme.sphinx-rtd-theme]
2+
file_filter = sphinx_rtd_theme/locale/<lang>/LC_MESSAGES/sphinx.po
3+
source_file = sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po
4+
source_lang = en
5+
6+
[main]
7+
host = https://www.transifex.com
8+
type = PO

Gruntfile.js

Lines changed: 0 additions & 189 deletions
This file was deleted.

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include *.txt
2+
include babel.cfg
23
include LICENSE
34
recursive-include sphinx_rtd_theme *.conf
45
recursive-include sphinx_rtd_theme *.css
@@ -9,5 +10,7 @@ recursive-include sphinx_rtd_theme *.svg
910
recursive-include sphinx_rtd_theme *.ttf
1011
recursive-include sphinx_rtd_theme *.woff
1112
recursive-include sphinx_rtd_theme *.woff2
13+
recursive-include sphinx_rtd_theme/locale *.pot *.po *.mo
1214
recursive-include tests *.py
1315
recursive-include tests *.rst
16+
prune build

README.rst

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
21
**************************
32
Read the Docs Sphinx Theme
43
**************************
54

65
.. image:: https://img.shields.io/pypi/v/sphinx_rtd_theme.svg
76
:target: https://pypi.python.org/pypi/sphinx_rtd_theme
8-
:alt: Pypi Version
9-
.. image:: https://travis-ci.org/rtfd/sphinx_rtd_theme.svg?branch=master
10-
:target: https://travis-ci.org/rtfd/sphinx_rtd_theme
7+
:alt: Pypi Version
8+
.. image:: https://travis-ci.org/readthedocs/sphinx_rtd_theme.svg?branch=master
9+
:target: https://travis-ci.org/readthedocs/sphinx_rtd_theme
1110
:alt: Build Status
1211
.. image:: https://img.shields.io/pypi/l/sphinx_rtd_theme.svg
1312
:target: https://pypi.python.org/pypi/sphinx_rtd_theme/
@@ -16,39 +15,56 @@ Read the Docs Sphinx Theme
1615
:target: http://sphinx-rtd-theme.readthedocs.io/en/latest/?badge=latest
1716
:alt: Documentation Status
1817

19-
The ``sphinx_rtd_theme`` is a sphinx_ theme designed to look modern and be mobile-friendly.
20-
This theme is primarily focused to be used on readthedocs.org_ but can work with your
21-
own sphinx projects. To read more and see a working demo_ head over to readthedocs.org_.
18+
This Sphinx_ theme was designed to provide a great reader experience for
19+
documentation users on both desktop and mobile devices. This theme is used
20+
primarily on `Read the Docs`_ but can work with any Sphinx project. You can find
21+
a working demo of the theme in the `theme documentation`_
2222

23-
.. _sphinx: http://www.sphinx-doc.org
24-
.. _readthedocs.org: http://www.readthedocs.org
25-
.. _demo: https://sphinx-rtd-theme.readthedocs.io/en/latest/
23+
.. _Sphinx: http://www.sphinx-doc.org
24+
.. _Read the Docs: http://www.readthedocs.org
25+
.. _theme documentation: https://sphinx-rtd-theme.readthedocs.io/en/latest/
2626

27+
Installation
28+
============
2729

28-
Installing
29-
==========
30+
This theme is distributed on PyPI_ and can be installed with ``pip``:
3031

31-
The theme is distributed on PyPI_ and can be installed with pip::
32+
.. code:: console
3233
3334
pip install sphinx-rtd-theme
3435
35-
For more information read the full installing docs
36-
`here <https://sphinx-rtd-theme.readthedocs.io/en/latest/installing.html>`__.
36+
To use the theme in your Sphinx project, you will need to add the following to
37+
your ``conf.py`` file:
3738

38-
.. _PyPI: https://pypi.python.org/pypi/sphinx_rtd_theme
39+
.. code:: python
40+
41+
import sphinx_rtd_theme
42+
43+
extensions = [
44+
...
45+
"sphinx_rtd_theme",
46+
]
3947
48+
html_theme = "sphinx_rtd_theme"
49+
50+
For more information read the full documentation on `installing the theme`_
51+
52+
.. _PyPI: https://pypi.python.org/pypi/sphinx_rtd_theme
53+
.. _installing the theme: https://sphinx-rtd-theme.readthedocs.io/en/latest/installing.html
4054

4155
Configuration
4256
=============
4357

44-
The ``sphinx_rtd_theme`` is highly customizable on both the page level and on a global level.
45-
To see all the possible configuration options read the configuring docs
46-
`here <https://sphinx-rtd-theme.readthedocs.io/en/latest/configuring.html>`__.
58+
This theme is highly customizable on both the page level and on a global level.
59+
To see all the possible configuration options, read the documentation on
60+
`configuring the theme`_.
4761

62+
.. _configuring the theme: https://sphinx-rtd-theme.readthedocs.io/en/latest/configuring.html
4863

4964
Contributing
5065
============
5166

52-
If you would like to help improve the theme or have more control
53-
over the theme in case of a fork please read our contributing guide
54-
`here <https://sphinx-rtd-theme.readthedocs.io/en/latest/contributing.html>`__.
67+
If you would like to help modify or translate the theme, you'll find more
68+
information on contributing in our `contributing guide`_.
69+
70+
.. _contributing guide: https://sphinx-rtd-theme.readthedocs.io/en/latest/contributing.html

babel.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# How setup this file
2+
# http://babel.pocoo.org/en/latest/setup.html
3+
# this file description:
4+
# http://babel.pocoo.org/en/latest/messages.html#extraction-method-mapping-and-configuration
5+
6+
# Extraction from Jinja2 HTML templates
7+
[jinja2: **/**.html]
8+
encoding = utf-8
9+
ignore_tags = script,style
10+
include_attrs = alt title summary placeholder

bower.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)