doc: Customize theme

pull/46/head
Tatsuhiro Tsujikawa 2013-02-02 20:57:35 +09:00
parent 561f0b3e29
commit b9ee9a1195
6 changed files with 22 additions and 4 deletions

View File

@ -13,7 +13,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# Configurations for aria2.
man_MANS = $(BUILDDIR)/man/aria2c.1
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst _static/default2.css
$(man_MANS): aria2c.rst
$(MAKE) man

View File

@ -0,0 +1,5 @@
@import url(http://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic);
pre, tt {
font-family: "Courier New", courier, monospace;
}

View File

@ -96,7 +96,8 @@ html_theme = 'default'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
html_theme_options = {'bodyfont':'roboto, sans-serif',
'headfont':'roboto, "Trebuchet MS", sans-serif'}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
@ -213,3 +214,6 @@ latex_documents = [
man_pages = [
('aria2c', 'aria2c', u'The ultra fast download utility', [], 1)
]
def setup(app):
app.add_stylesheet('default2.css')

View File

@ -14,7 +14,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# Configurations for aria2.
mandir = @mandir@/ru
man_MANS = $(BUILDDIR)/man/aria2c.1
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst _static/default2.css
$(man_MANS): aria2c.rst
$(MAKE) man

View File

@ -0,0 +1,5 @@
@import url(http://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic);
pre, tt {
font-family: "Courier New", courier, monospace;
}

View File

@ -96,7 +96,8 @@ html_theme = 'default'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
html_theme_options = {'bodyfont':'roboto, sans-serif',
'headfont':'roboto, "Trebuchet MS", sans-serif'}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
@ -213,3 +214,6 @@ latex_documents = [
man_pages = [
('aria2c', 'aria2c', u'сверхбыстрая утилита загрузки', [], 1)
]
def setup(app):
app.add_stylesheet('default2.css')