Skip to content

Commit

Permalink
Merge pull request #845 from johannesloibl/explicit-confluence-parame…
Browse files Browse the repository at this point in the history
…ters-fetch-for-confluence-nodes-2

Add missing PARAM helper function
  • Loading branch information
jdknight authored Oct 9, 2023
2 parents 2c2878b + 18e4656 commit d92e9ef
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit d92e9ef

Please sign in to comment.