Skip to content

Commit

Permalink
Minor engine method rename
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-menon committed Jul 28, 2024
1 parent 95acdd0 commit 8b2d549
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions alteza/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,12 @@ def walk(dirNode: DirNode, env: dict[str, Any]) -> None:

walk(self.rootDir, initial_env)

self._makeNodesReachableFromPublicNodesPublic()
self.tracePublic()

def _makeNodesReachableFromPublicNodesPublic(self) -> None:
def tracePublic(self) -> None:
"""Make all nodes reachable from public nodes public. (Called after processing.)"""
if "/" in self.nameRegistry.allFiles:
# Make the root (/) level index page public, if it exists.
# Always make the root (/) level index page public, if it exists.
rootIndex = self.nameRegistry.allFiles["/"]
rootIndex.makePublic()

Expand Down

0 comments on commit 8b2d549

Please sign in to comment.