mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-05 18:34:52 +00:00
Properly render docs pages with missing index.html in the path.
This commit is contained in:
@ -23,3 +23,5 @@ def docpage(request, version, typ, filename):
|
|||||||
'doc_index_filename': 'index.html',
|
'doc_index_filename': 'index.html',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
def docsrootpage(request, version, typ):
|
||||||
|
return docpage(request, version, typ, 'index')
|
||||||
|
@ -37,6 +37,7 @@ urlpatterns = patterns('',
|
|||||||
(r'^mirrors.xml$', 'downloads.views.mirrors_xml'),
|
(r'^mirrors.xml$', 'downloads.views.mirrors_xml'),
|
||||||
|
|
||||||
(r'^docs/(current|\d\.\d)/(static|interactive)/(.*).html$', 'docs.views.docpage'),
|
(r'^docs/(current|\d\.\d)/(static|interactive)/(.*).html$', 'docs.views.docpage'),
|
||||||
|
(r'^docs/(current|\d\.\d)/(static|interactive)/$', 'docs.views.docsrootpage'),
|
||||||
|
|
||||||
(r'^community/$', 'core.views.community'),
|
(r'^community/$', 'core.views.community'),
|
||||||
(r'^community/contributors/$', 'contributors.views.completelist'),
|
(r'^community/contributors/$', 'contributors.views.completelist'),
|
||||||
|
Reference in New Issue
Block a user