Skip to content

Have Site initialize a SiteMap and update during render.#1118

Merged
kjaymiller merged 1 commit intomainfrom
issue-1072
Mar 11, 2026
Merged

Have Site initialize a SiteMap and update during render.#1118
kjaymiller merged 1 commit intomainfrom
issue-1072

Conversation

@brass75
Copy link
Copy Markdown
Member

@brass75 brass75 commented Mar 11, 2026

Resolves #1072

  • Give default parameters to the SiteMap constructor.
  • Convert SiteMap.site_url to property
  • Add method update to SiteMap
  • Initialize Site with, effectively, an empty SiteMap
  • Update SiteMap during render
  • Add optional parameter of site_url to render (this is for the API to be able to produce the site map with the correct URL for local serving.)

Type of Issue

  • 🐛 (bug)
  • 📖 (Documentation)
  • ⬆️ (Update)
  • 💫 (New Feature)
  • ☢️ (Deprecation)
  • 🚫 (Removal)
  • 🛠️ (Refactor)

Changes have been Documented (If Applicable)

  • YES - Changes have been documented

IMO documentation is not needed as the user should not be mucking around with this. This change should be transparent to the user.

Changes have been Tested

  • YES - Changes have been tested

Functionally, there is no change that requires additional testing. The change to the test file was due to my reordering the parameters for the SiteMap constructor during work.

Next Steps

Update the CLI to use the correct local URL when running serve,

AI Attestation

No AI used in the creation of this PR.

@kjaymiller kjaymiller merged commit 52147dd into main Mar 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working python Pull requests that update Python code source

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Consider initializing Site._site_map with empty SiteMap instead of None

2 participants