Skip to content

Commit

Permalink
add more docs stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer-two committed Apr 23, 2018
1 parent cd25ed4 commit d189950
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
Binary file added docs/_static/politifact-py-logo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/_templates/useful-links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h3>Useful Links</h3>
<ul>
{% for text, uri in theme_extra_nav_links.items() %}
<li><a href="{{uri}}">{{text}}</a></li>
{% endfor %}
</ul>
34 changes: 31 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

from collections import OrderedDict

# -- Project information -----------------------------------------------------

Expand Down Expand Up @@ -44,6 +44,8 @@
'sphinx.ext.todo',
]

issues_github_path = 'thundergolfer/politifact-py'

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down Expand Up @@ -83,7 +85,33 @@
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'logo': 'politifact-py-logo.png',
'description': 'REST API Wrapper for the Politifact Organisation\'s public API.',
'description_font_style': 'italic',
'github_user': 'thundergolfer',
'github_repo': 'politifact-py',
'github_banner': True,
'github_type': 'star',
'donate_url': 'paypal.me/JonathonBelotti',
'code_font_size': '0.8em',
'warn_bg': '#FFC',
'warn_border': '#EEE',
# Used to populate the useful-links.html template
'extra_nav_links': OrderedDict([
('politifact-py @ PyPI', 'https://pypi.org/project/politifact/'),
('politifact-py @ GitHub', 'http://github.com/thundergolfer/politifact-py'),
('Issue Tracker', 'http://github.com/thundergolfer/politifact-py/issues'),
])
}

html_sidebars = {
'index': [
'about.html', 'useful-links.html', 'searchbox.html',
],
'**': ['about.html', 'useful-links.html',
'localtoc.html', 'relations.html', 'searchbox.html']
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down Expand Up @@ -163,4 +191,4 @@
# -- Options for todo extension ----------------------------------------------

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
todo_include_todos = True

0 comments on commit d189950

Please sign in to comment.