From 9fecd0fe47c5f9d7c5889802a1041689a64a647f Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 15 Oct 2018 12:49:49 +0000 Subject: [PATCH] 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. --- doc/source/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) 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', -- 2.11.0