Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

Commit 1c53462

Browse files
committed
Improve Sphinx docs navigation
- include changelog into the Sphinx ToC - expand to show the current page's headings in the sidebar - a few other tweaks
1 parent 2ebb2d2 commit 1c53462

File tree

4 files changed

+28
-26
lines changed

4 files changed

+28
-26
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
Changelog
2-
=========
3-
4-
All notable changes to HTTPolice will be documented in this file.
5-
6-
This project adheres to `Semantic Versioning <http://semver.org/>`_
7-
(which means it is unstable until 1.0).
1+
History of changes
2+
==================
83

94

105
Unreleased

doc/conf.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# All configuration values have a default; values that are commented out
1414
# serve to show the default.
1515

16+
from collections import OrderedDict
1617
import sys
1718
import os
1819

@@ -121,15 +122,14 @@
121122
'github_user': 'vfaronov',
122123
'github_repo': 'httpolice',
123124
'github_type': 'star',
124-
'fixed_sidebar': 'true',
125-
'extra_nav_links': {
126-
'mitmproxy integration':
127-
'http://mitmproxy-httpolice.readthedocs.io/',
128-
'Django integration':
129-
'http://django-httpolice.readthedocs.io/',
130-
'List of all notices':
131-
'http://pythonhosted.org/HTTPolice/notices.html',
132-
},
125+
'extra_nav_links': OrderedDict([
126+
('mitmproxy integration',
127+
'http://mitmproxy-httpolice.readthedocs.io/'),
128+
('Django integration',
129+
'http://django-httpolice.readthedocs.io/'),
130+
('List of all notices',
131+
'http://pythonhosted.org/HTTPolice/notices.html'),
132+
]),
133133
}
134134

135135
# Add any paths that contain custom themes here, relative to this directory.

doc/history.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../CHANGELOG.rst

doc/index.rst

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ HTTPolice is a lint for HTTP requests and responses.
55
It checks them for conformance to standards and best practices.
66

77
This manual explains all features of HTTPolice in detail.
8-
If you want a brief introduction, see the :doc:`quickstart`.
8+
For a brief hands-on introduction, jump to the :doc:`quickstart`.
99

10-
There is also a `list of all notices`__ that HTTPolice can output.
11-
12-
__ http://pythonhosted.org/HTTPolice/notices.html
13-
14-
For recent changes in HTTPolice, see the `changelog`__.
15-
16-
__ https://github.com/vfaronov/httpolice/blob/master/CHANGELOG.rst
10+
Contents
11+
--------
1712

1813
.. toctree::
19-
:maxdepth: 1
14+
:maxdepth: 2
2015

2116
quickstart
2217
install
@@ -25,8 +20,11 @@ __ https://github.com/vfaronov/httpolice/blob/master/CHANGELOG.rst
2520
har
2621
reports
2722
api
23+
history
24+
2825

29-
Integration packages:
26+
Integration packages
27+
--------------------
3028

3129
- `mitmproxy integration`__
3230
- `Django integration`__
@@ -35,3 +33,11 @@ Integration packages:
3533
__ http://mitmproxy-httpolice.readthedocs.io/
3634
__ http://django-httpolice.readthedocs.io/
3735
__ https://chrome.google.com/webstore/detail/httpolice-devtool/hnlnhebgfcfemjaphgbeokdnfpgbnhgn
36+
37+
38+
Supplementary materials
39+
-----------------------
40+
41+
- `List of all notices`__ that HTTPolice can output
42+
43+
__ http://pythonhosted.org/HTTPolice/notices.html

0 commit comments

Comments
 (0)