Skip to content

Commit

Permalink
Merge pull request #5 from njsmith/everybody-needs-help-sometimes
Browse files Browse the repository at this point in the history
[docs] Add "need help?" box to the sidebar
  • Loading branch information
njsmith authored Aug 2, 2017
2 parents 98a9b20 + 7406a68 commit 2be6c32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/_templates/need-help.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div id="need-help">
<h3>Need help?</h3>
Try <a href="https://gitter.im/python-trio/general">chat</a> or <a
href="https://stackoverflow.com/questions/ask?tags=python+{{ project }}">StackOverflow</a>.
</div>
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ def setup(app):
#"python": ('https://docs.python.org/3', None),
}

html_sidebars = {
"**": [
"localtoc.html", "relations.html", "searchbox.html", "need-help.html",
],
}

autodoc_member_order = "bysource"

# Add any paths that contain templates here, relative to this directory.
Expand Down

0 comments on commit 2be6c32

Please sign in to comment.