Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/sphinxcontrib/httpdomain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def __init__(self, name, type):
304: 'Not Modified',
305: 'Use Proxy',
307: 'Temporary Redirect',
308: 'Permanent Redirect',
400: 'Bad Request',
401: 'Unauthorized',
402: 'Payment Required', # unused
Expand All @@ -221,14 +222,15 @@ def __init__(self, name, type):
411: 'Length Required',
412: 'Precondition Failed',
413: 'Request Entity Too Large',
414: 'Request URI Too Long',
414: 'URI Too Long',
415: 'Unsupported Media Type',
416: 'Requested Range Not Satisfiable',
417: 'Expectation Failed',
418: "I'm a teapot", # see RFC 2324
422: 'Unprocessable Entity',
423: 'Locked',
424: 'Failed Dependency',
425: 'Too Early', # RFC 8470
426: 'Upgrade Required',
429: 'Too Many Requests',
449: 'Retry With', # proprietary MS extension
Expand Down Expand Up @@ -668,7 +670,7 @@ class HTTPDomain(Domain):
'any': {}
}

indices = [HTTPIndex]
indices = []

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apteryks can you elaborate why the removal of HTTPIndex is necessary?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevepiercy Hello! I've tried explaining the reason in the message of the first commit here, see: 0074dd6; basically the generated indices from HTTPIndex causes the Texinfo output to be invalid.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I've also updated the link to the repo; sorry about that!)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevepiercy Hello! I've tried explaining the reason in the message of the first commit here, see: 0074dd6; basically the generated indices from HTTPIndex causes the Texinfo output to be invalid.

@apteryks thanks for updating the link and your explanation.

Can you find another way of handling this? The suggested implementation removes the routing table from the HTML documentation. See:


@property
def routes(self):
Expand Down