Skip to content

fix: honor urlStyle config for index and serve links#28

Merged
EthanThatOneKid merged 1 commit into
mainfrom
fix/index-url-style-from-config
Jun 1, 2026
Merged

fix: honor urlStyle config for index and serve links#28
EthanThatOneKid merged 1 commit into
mainfrom
fix/index-url-style-from-config

Conversation

@EthanThatOneKid
Copy link
Copy Markdown
Collaborator

Summary

  • \wiki serve\ reads \urlStyle\ from config when --style\ is omitted (aligned with \wiki build --url-style).
  • \�uild_site\ resolves \url_style\ and \�ase_url\ from \WikiConfig\ when not passed explicitly.
  • Index and page HTML helpers default to \DEFAULT_URL_STYLE\ (\dir) instead of \ ile, so the All Pages list uses /wiki/page/\ links unless config says otherwise.

Test plan

  • \ est_build_index_html_respects_url_style\
  • \ est_index_links_use_config_file_url_style\
  • Full \unittest discover\ passes

Serve and build_site now resolve URL style from wiki config when the CLI flag is omitted, and index defaults match DEFAULT_URL_STYLE (dir) so All Pages links use trailing slashes unless urlStyle is file.
@EthanThatOneKid EthanThatOneKid merged commit 90e5af3 into main Jun 1, 2026
1 check passed
@EthanThatOneKid EthanThatOneKid deleted the fix/index-url-style-from-config branch June 1, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant