瀏覽代碼

doc: Customize theme

Tatsuhiro Tsujikawa 12 年之前
父節點
當前提交
b9ee9a1195

+ 1 - 1
doc/manual-src/en/Makefile.am

@@ -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

+ 5 - 0
doc/manual-src/en/_static/default2.css

@@ -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;
+}

+ 5 - 1
doc/manual-src/en/conf.py.in

@@ -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')

+ 1 - 1
doc/manual-src/ru/Makefile.am

@@ -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

+ 5 - 0
doc/manual-src/ru/_static/default2.css

@@ -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;
+}

+ 5 - 1
doc/manual-src/ru/conf.py.in

@@ -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')