Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing PARAM helper function #845

Merged
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
5 changes: 3 additions & 2 deletions sphinxcontrib/confluencebuilder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from sphinxcontrib.confluencebuilder.nodes import confluence_metadata
from sphinxcontrib.confluencebuilder.nodes import confluence_page_generation_notice
from sphinxcontrib.confluencebuilder.nodes import confluence_source_link
from sphinxcontrib.confluencebuilder.nodes import confluence_parameters_fetch as PARAMS
from sphinxcontrib.confluencebuilder.publisher import ConfluencePublisher
from sphinxcontrib.confluencebuilder.state import ConfluenceState
from sphinxcontrib.confluencebuilder.storage.index import generate_storage_format_domainindex
Expand Down Expand Up @@ -857,7 +858,7 @@ def _extract_metadata(self, docname, doctree):
metadata = self.metadata.setdefault(docname, {})

for node in findall(doctree, confluence_metadata):
for k, v in node.params.items():
for k, v in PARAMS(node).items():
if k == 'labels':
labels = metadata.setdefault('labels', [])
labels.extend(v)
Expand Down Expand Up @@ -1035,7 +1036,7 @@ def _header_footer_init(self, docname, doctree):
sourcelink.setdefault('view', default_view)

es_node = confluence_source_link()
es_node.params.update(sourcelink)
PARAMS(es_node).update(sourcelink)
header_node.append(es_node)
add_header_node = True

Expand Down