flaskqref :order: path violation
Maintainers usually reply within 1 day
@ANO3457 is already working on this.
Since Oct 25, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Start with the sphinxcontrib.autohttp.flaskqref directive and reproduce the issue using the index.rst example with :order: path and an endpoint resource. Compare the generated API Summary with the API Details; done means the Summary preserves the path ordering used by the Details section.
Written by the indexing model from the issue text.
Description
I use this extension with sphinx frequently at work. It's very useful and I find the documentation accurate and verbose.
I recently noticed something (and I believe this has been the case since day 1 of me using this extension). It's not a functional limitation, but purely an aesthetic one.
I use both:
sphinxcontrib.autohttp.flaskqref
sphinxcontrib.autohttp.flask
It generates a nice summary table and an API list.
The index.rst looks like the following
API Summary
-----------
.. qrefflask:: myapp:app
:undoc-static:
:undoc-endpoints: blueprint.endpoint1, blueprint.endpoint2
:order: path
API Details
-----------
.. autoflask:: myapp:app
:undoc-static:
:undoc-endpoints: blueprint.endpoint1, blueprint.endpoint2
:order: path
the rendered output looks like the following (divided by the horizontal ruler)
API Summary
| Resource | Operation | Description |
|---|---|---|
| GET /rest | Serves as an entry-point to implementation | |
| Accounts | GET /rest/v1/accounts | Shows information about accounts |
| -- | -- | -- |
| Root | GET /rest/v1 | Shows supported resources and services |
| -- | -- | -- |
API Details
GET /rest HTTP/1.1
Serves as an entry-point to implementation
Example Request:
...
Example Response:
...
GET /rest/v1 HTTP/1.1
Shows supported resources and services
Example Request:
...
Example Response:
...
GET /rest/v1/accounts HTTP/1.1
Shows information about accounts
Example Request:
...
Example Response:
...
The examples above are relabeled but the order is maintained from the generated doc. The Details section obeys the :order: directive, but the Summary section violates it.
It appears that if a <resource> (an optional) value is given, flaskqref orders the APIs in a lexicographical order of the resource column rather than the one set by path
Software packages
$ python3 --version
Python 3.5.2
$ pip3 list -vv | grep -i sphinx
Sphinx (3.0.3)
sphinxcontrib-applehelp (1.0.2)
sphinxcontrib-confluencebuilder (1.2.0)
sphinxcontrib-devhelp (1.0.2)
sphinxcontrib-htmlhelp (1.0.3)
sphinxcontrib-httpdomain (1.7.0)
sphinxcontrib-jsmath (1.0.1)
sphinxcontrib-qthelp (1.0.3)
sphinxcontrib-serializinghtml (1.1.4)
- Dominant language
- Python
- Stars
- 62
- Forks
- 50
- Avg merge
- 5h 10m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sphinx-contrib/httpdomain
-
enhancement good first issue
Difficulty 1/5 Under an hour Newbie friendliness 22/100
sphinx-contrib/httpdomain#148 ·
Maintainers usually reply within 1 day
-
routingtable not defined the first time in parallel modePossibly taken @ac1982 claimed this 21 days ago. Openbug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 45/100
sphinx-contrib/httpdomain#58 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement help wanted
Difficulty 3/5 1-2 days Newbie friendliness 25/100
sphinx-contrib/httpdomain#30 · 2 comments · 7 reactions ·
Maintainers usually reply within 1 day
-
enhancement help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
sphinx-contrib/httpdomain#29 · 3 comments ·
Maintainers usually reply within 1 day
-
Add autohttp for Django Rest FrameworkPossibly taken A pull request linked to this issue is open or already merged. Openenhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 25/100
sphinx-contrib/httpdomain#22 · 3 reactions ·
Maintainers usually reply within 1 day
All issues in sphinx-contrib/httpdomain
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
jejjohnson/gaussx#752 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
521xueweihan/HelloGitHub#4270 ·
-
enhancement owner: den-haag
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ok-oldking/ok-wuthering-waves#1828 ·
Maintainers usually reply within 1 day
-
lesson-submission pending-review
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Ikalus1988/MisakaNet#4512 ·
Maintainers usually reply within 1 day