mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
IE apparently does not like href=""; change this to href="#" which appears to work.
This commit is contained in:
parent
2e06fc6450
commit
2af4986e78
@ -641,7 +641,8 @@ class StandaloneHTMLBuilder(Builder):
|
||||
baseuri=self.get_target_uri(pagename)):
|
||||
if not resource:
|
||||
otheruri = self.get_target_uri(otheruri)
|
||||
return relative_uri(baseuri, otheruri)
|
||||
uri = relative_uri(baseuri, otheruri) or '#'
|
||||
return uri
|
||||
ctx['pathto'] = pathto
|
||||
ctx['hasdoc'] = lambda name: name in self.env.all_docs
|
||||
ctx['customsidebar'] = self.config.html_sidebars.get(pagename)
|
||||
|
@ -930,7 +930,7 @@ class BuildEnvironment:
|
||||
"""Return a TOC nodetree -- for use on the same page only!"""
|
||||
toc = self.tocs[docname].deepcopy()
|
||||
for node in toc.traverse(nodes.reference):
|
||||
node['refuri'] = node['anchorname']
|
||||
node['refuri'] = node['anchorname'] or '#'
|
||||
return toc
|
||||
|
||||
def get_toctree_for(self, docname, builder, collapse):
|
||||
|
Loading…
Reference in New Issue
Block a user