Skip to content

Commit

Permalink
[skip ci] omgwtfrtd
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Dec 31, 2022
1 parent 3efc088 commit 1ded638
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions releases/__init__.py
Expand Up @@ -596,6 +596,8 @@ def visit_bullet_list(self, node):
# The bullet list's parent should be a 'section' node with 'ids'
# attribute derived from the original document name (even in singlehtml
# mode). If we don't see this, move on.
print(f"docnames: {self.docnames!r}", file=sys.stderr)
print(f"node.parent.attributes.ids: {node.parent.attributes['ids']!r}", file=sys.stderr)
if not set(self.docnames).intersection(node.parent.attributes["ids"]):
return
# At this point, we can safely assume the node we're visiting is the
Expand All @@ -617,6 +619,8 @@ def generate_changelog(app, doctree, docname):
# actually inherit from Sphinx's own!)
is_singlepage = "singlehtml" in app.builder.name
changelog_names = ["index"] if is_singlepage else desired_docnames
print(f"is_singlepage: {is_singlepage!r}", file=sys.stderr)
print(f"changelog_names: {changelog_names!r}", file=sys.stderr)
if docname not in changelog_names:
return

Expand Down

0 comments on commit 1ded638

Please sign in to comment.