From: Jeremy Stanley Date: Mon, 15 Oct 2018 12:49:49 +0000 (+0000) Subject: Add navigation links to Sphinx config X-Git-Tag: 0.0.1~46 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=9fecd0fe47c5f9d7c5889802a1041689a64a647f;hp=eddd57cd87b8e404daa2d4e05cf9e936fd090309 Add navigation links to Sphinx config Similar to the project URLs in the Python package configuration, include some useful hyperlinks in the Sphinx Alabaster sidebar for things like code browsing/cloning, bug reporting and release files. --- diff --git a/doc/source/conf.py b/doc/source/conf.py index 17572a2..8d8728d 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -2,6 +2,7 @@ # modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. +import collections import os import sys @@ -24,6 +25,12 @@ html_sidebars = {'**': [ ]} html_theme_options = { 'description': 'The mudpy MUD server engine.', + 'extra_nav_links': collections.OrderedDict(( + ('Browse Source', 'https://mudpy.org/code/mudpy/'), + ('Bug Reporting', 'https://mudpy.org/bugs/mudpy/'), + ('Git Clone URL', 'https://mudpy.org/code/mudpy/'), + ('Release Files', 'https://mudpy.org/dist/mudpy/'), + )), 'fixed_sidebar': True, 'logo_name': True, 'logo_text_align': 'center',