doc: Fix packaging and customize theme

This commit is contained in:
Tatsuhiro Tsujikawa 2013-02-02 18:52:09 +09:00
parent e3401b0159
commit bcf566a2f4
3 changed files with 18 additions and 2 deletions

View File

@ -21,7 +21,14 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
EXTRA_DIST = README.rst apiref-header.rst index.rst mkapiref.py
EXTRA_DIST = README.rst apiref-header.rst index.rst mkapiref.py python.rst \
package_README.rst
doc_staticdir = $(docdir)/_static
dist_doc_static_DATA = _static/default2.css
doc_templatesdir = $(docdir)/_templates
dist_doc_templates_DATA = _templates/menu.html
# Makefile for Sphinx documentation
#

5
doc/_static/default2.css vendored Normal file
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

@ -123,7 +123,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 = []
@ -244,3 +245,6 @@ man_pages = [
('index', 'spdylay', u'Spdylay Documentation',
[u'Tatsuhiro Tsujikawa'], 1)
]
def setup(app):
app.add_stylesheet('default2.css')