Skip to content

Add a synthetic ZIM landing page when root index is missing - #75

Open
SihanTeng wants to merge 1 commit into
tamnd:mainfrom
SihanTeng:fix/zim-synthetic-index
Open

Add a synthetic ZIM landing page when root index is missing#75
SihanTeng wants to merge 1 commit into
tamnd:mainfrom
SihanTeng:fix/zim-synthetic-index

Conversation

@SihanTeng

Copy link
Copy Markdown

Summary

  • When packing a host that has HTML pages but no root index.html, synthesize a simple directory-index landing page and use it as the ZIM main page.
  • Mirrors the browsable listing kage serve already offers for the same layout.

Why

Opening a multi-page host without a homepage in Kiwix/kage open jumped to an arbitrary first page (#62).

Test plan

  • TestSyntheticIndexWhenNoRootIndex in pack
  • go test -short -count=1 ./pack/

Closes #62

@SihanTeng
SihanTeng marked this pull request as ready for review July 31, 2026 05:06
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.

Support for websites lacking a homepage when generating a .zim

1 participant