Skip to content
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: 2 additions & 3 deletions properdocs/structure/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ def render(self, config: ProperDocsConfig, files: Files) -> None:
self.present_anchor_ids = (
extract_anchors_ext.present_anchor_ids | raw_html_ext.present_anchor_ids
)
if log.getEffectiveLevel() > logging.DEBUG:
self.links_to_anchors = relative_path_ext.links_to_anchors
self.links_to_anchors = relative_path_ext.links_to_anchors

present_anchor_ids: set[str] | None = None
"""Anchor IDs that this page contains (can be linked to in this page)."""
Expand All @@ -298,7 +297,7 @@ def render(self, config: ProperDocsConfig, files: Files) -> None:
"""Links to anchors in other files that this page contains.

The structure is: `{file_that_is_linked_to: {'anchor': 'original_link/to/some_file.md#anchor'}}`.
Populated after `.render()`. Populated only if `validation: {anchors: info}` (or greater) is set.
Populated after `.render()`.
"""

def validate_anchor_links(self, *, files: Files, log_level: int) -> None:
Expand Down
Loading