Skip to content

Commit 2881331

Browse files
committed
switch theme to alabaster
1 parent 5f0b6d8 commit 2881331

File tree

5 files changed

+38
-20
lines changed

5 files changed

+38
-20
lines changed

doc/_templates/more.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<h3>Other Projects</h3>
2+
3+
<p><iframe src="https://ghbtns.com/github-btn.html?user=tony&type=follow&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></p>
4+
5+
<p>More open source projects from <a href="https://git-pull.com">Tony Narlock</a>:</p>
6+
7+
<ul>
8+
<li><a href="https://github.com/tony/tmuxp">tmuxp</a></li>
9+
<li><a href="https://github.com/tony/vcspull">vcspull</a></li>
10+
<li><a href="https://github.com/tony/libvcs">libvcs</a></li>
11+
</ul>
12+
13+
<a href="https://github.com/tony/libtmux" id="fork-gh">
14+
<img style="position: absolute; top: 0; right: 0; border: 0;"
15+
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
16+
alt="Fork me on GitHub">
17+
</a>

doc/_templates/page.html

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

doc/_templates/star.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<p>
2+
<iframe src="http://ghbtns.com/github-btn.html?user=tony&repo=libtmux&type=watch&count=true&size=large"
3+
allowtransparency="true" frameborder="0" scrolling="0" width="150px" height="30px"></iframe>
4+
</p>

doc/conf.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
sys.path.insert(0, project_root)
1111

1212
from libtmux import test # NOQA
13+
import libtmux
1314

1415
# package data
1516
about = {}
@@ -21,6 +22,7 @@
2122
'sphinx.ext.intersphinx',
2223
'sphinx.ext.todo',
2324
'releases',
25+
'alabaster',
2426
]
2527

2628
releases_unstable_prehistory = True
@@ -44,16 +46,20 @@
4446

4547
pygments_style = 'sphinx'
4648

47-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
48-
if on_rtd:
49-
html_theme = 'default'
50-
else:
51-
try:
52-
import sphinx_rtd_theme
53-
html_theme = "sphinx_rtd_theme"
54-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
55-
except ImportError:
56-
html_theme = 'pyramid'
49+
import alabaster
50+
51+
html_theme_path = [alabaster.get_path()]
52+
html_theme = 'alabaster'
53+
html_sidebars = {
54+
'**': [
55+
'about.html',
56+
'star.html',
57+
'navigation.html',
58+
'relations.html',
59+
'more.html',
60+
'searchbox.html',
61+
]
62+
}
5763

5864
html_theme_path = ['_themes']
5965
html_static_path = ['_static']

requirements/doc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
docutils==0.12
22
releases==1.2.1 # updated from 1.2.0
33
sphinx
4-
sphinx-rtd-theme
4+
alabaster

0 commit comments

Comments
 (0)