[FIX] github_link does not consider files to be in content/ subfolder
This commit is contained in:
parent
d2d3c3d8b7
commit
a7e04fc457
@ -112,5 +112,7 @@ def add_doc_link(app, pagename, templatename, context, doctree):
|
||||
source_suffix = next(iter(source_suffix))
|
||||
# FIXME: odoo/odoo has a doc/ prefix which is incorrect for this
|
||||
# project, how to unify? Add new setting?
|
||||
# FIXME ANVFE: use a config directive to specify the content folder
|
||||
# instead of hardcoding it here ?
|
||||
context['github_link'] = lambda mode='edit': make_github_link(
|
||||
app, '%s%s' % (pagename, source_suffix), mode=mode)
|
||||
app, 'content/%s%s' % (pagename, source_suffix), mode=mode)
|
||||
|
Loading…
Reference in New Issue
Block a user