Skip to content

Commit 578acfe

Browse files
committed
Using the alabaster theme instead of sphinx_rtd_theme
1 parent d925197 commit 578acfe

File tree

6 files changed

+18
-42
lines changed

6 files changed

+18
-42
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL=/bin/bash
22
HTMLDIR=doc/build/html
3-
HTMLSED=find ${HTMLDIR}/ -name '*.html' | xargs sed -i
3+
HTMLSED=find ${HTMLDIR}/ -name '*.html' | xargs sed -i ''
44

55
.PHONY: usage install deps test doc gh-pages build-doc
66

@@ -9,16 +9,16 @@ usage:
99
@echo Makefile for yajl-py
1010
@echo
1111
@echo Targets
12-
@echo " install :" easy_install yajl-py
12+
@echo " install :" pip install yajl-py
1313
@echo " deps :" install compatible yajl version
1414
@echo " test :" run yajl-py tests
1515
@echo " doc :" install docs to gh-pages branch
1616

1717
install:
18-
pip install . --use-mirrors
18+
pip install .
1919

2020
test:
21-
pip install -r test_requirements.txt --use-mirrors
21+
pip install -r test_requirements.txt
2222
nosetests --with-cov --cover-erase --cov yajl -v tests/
2323

2424
doc: gh-pages

README.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ yajl-py
99
.. image:: https://coveralls.io/repos/pykler/yajl-py/badge.png
1010
:target: https://coveralls.io/r/pykler/yajl-py
1111

12-
.. image:: https://pypip.in/v/yajl-py/badge.png
13-
:target: https://crate.io/packages/yajl-py/#info
14-
15-
.. image:: https://pypip.in/d/yajl-py/badge.png
16-
:target: https://crate.io/packages/yajl-py/#info
17-
18-
.. image:: https://requires.io/github/pykler/yajl-py/requirements.png?branch=master
19-
:target: https://requires.io/github/pykler/yajl-py/requirements/?branch=master
20-
2112
``yajl-py`` is a Pure Python wrapper (implemented using
2213
ctypes) to the excellent Yajl (Yet Another JSON Library) C
2314
library.

doc/source/conf.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313
import sys, os
14-
import sphinx_rtd_theme
14+
import alabaster
1515

1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
@@ -23,7 +23,7 @@
2323

2424
# Add any Sphinx extension module names here, as strings. They can be extensions
2525
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
26-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage']
26+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'alabaster']
2727

2828
# Add any paths that contain templates here, relative to this directory.
2929
templates_path = ['templates']
@@ -94,19 +94,23 @@
9494
# Sphinx are currently 'default' and 'sphinxdoc'.
9595
# html_theme = 'default'
9696
# html_theme = 'sphinxdoc'
97-
html_theme = "sphinx_rtd_theme"
97+
html_theme = "alabaster"
9898

9999
# Theme options are theme-specific and customize the look and feel of a theme
100100
# further. For a list of options available for each theme, see the
101101
# documentation.
102-
html_theme_options = {}
103-
# html_theme_options = {
104-
# "stickysidebar": "true",
105-
# }
102+
html_theme_options = {
103+
'github_user': 'pykler',
104+
'github_repo': 'yajl-py',
105+
'github_button': True,
106+
'github_banner': True,
107+
'travis_button': True,
108+
'analytics_id': 'UA-19175962-1',
109+
}
106110

107111
# Add any paths that contain custom themes here, relative to this directory.
108112
#html_theme_path = []
109-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
113+
html_theme_path = [alabaster.get_path()]
110114

111115
# The name for this set of Sphinx documents. If None, it defaults to
112116
# "<project> v<release> documentation".

doc/source/index.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ Yajl-Py documentation
77
.. image:: https://coveralls.io/repos/pykler/yajl-py/badge.png
88
:target: https://coveralls.io/r/pykler/yajl-py
99

10-
.. image:: https://pypip.in/v/yajl-py/badge.png
11-
:target: https://crate.io/packages/yajl-py/#info
12-
13-
.. image:: https://pypip.in/d/yajl-py/badge.png
14-
:target: https://crate.io/packages/yajl-py/#info
15-
1610
`yajl-py <http://github.com/pykler/yajl-py>`_ is a pure python wrapper
1711
to the `yajl <http://lloyd.github.com/yajl/>`_ C Library.
1812

doc/source/templates/layout.html

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

doc_requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sphinx_rtd_theme
1+
sphinx
2+
alabaster

0 commit comments

Comments
 (0)