mirror of
https://github.com/vale981/ablog
synced 2025-03-06 09:41:39 -05:00
Not creating ref labels for section posts.
This commit is contained in:
parent
b4981dd87d
commit
9c32f5fb6f
1 changed files with 5 additions and 2 deletions
|
@ -262,10 +262,13 @@ def process_posts(app, doctree):
|
||||||
section_name = section.attributes['ids'][0]
|
section_name = section.attributes['ids'][0]
|
||||||
post_name = docname + '#' + section_name
|
post_name = docname + '#' + section_name
|
||||||
label += '-' + section_name
|
label += '-' + section_name
|
||||||
|
else:
|
||||||
# create a reference for the post
|
# create a reference for the post
|
||||||
|
# if it is posting the document
|
||||||
|
# ! this does not work for sections
|
||||||
app.env.domains['std'].data['labels'][label] = (docname, label, title)
|
app.env.domains['std'].data['labels'][label] = (docname, label, title)
|
||||||
|
|
||||||
|
|
||||||
section_copy = section.deepcopy()
|
section_copy = section.deepcopy()
|
||||||
# multiple posting may result having post nodes
|
# multiple posting may result having post nodes
|
||||||
for nn in section_copy.traverse(PostNode):
|
for nn in section_copy.traverse(PostNode):
|
||||||
|
|
Loading…
Add table
Reference in a new issue