Skip to content

Dynamic docs versions and auto search index#313

Merged
zainforbjs merged 1 commit intomainfrom
fix/guides
Mar 10, 2026
Merged

Dynamic docs versions and auto search index#313
zainforbjs merged 1 commit intomainfrom
fix/guides

Conversation

@zainforbjs
Copy link
Contributor

Switch default version handling to detect the latest docs version and expose available versions to the view. Added getLatestVersion() and getAvailableVersions() helpers and wired availableVersions into the select in index.cfm (replacing hard-coded options). Improved search index generation and maintenance: ensureSearchIndexExists now triggers generateSearchIndexForVersion when needed, and generateSearchIndexForVersion contains enhanced HTML cleaning, title/body extraction, SEO-friendly URL generation, and safe writing to files//guides/search_index.json. Miscellaneous whitespace/formatting fixes and path normalization updates.

Switch default version handling to detect the latest docs version and expose available versions to the view. Added getLatestVersion() and getAvailableVersions() helpers and wired availableVersions into the select in index.cfm (replacing hard-coded options). Improved search index generation and maintenance: ensureSearchIndexExists now triggers generateSearchIndexForVersion when needed, and generateSearchIndexForVersion contains enhanced HTML cleaning, title/body extraction, SEO-friendly URL generation, and safe writing to files/<version>/guides/search_index.json. Miscellaneous whitespace/formatting fixes and path normalization updates.
@zainforbjs zainforbjs merged commit 0cbdc98 into main Mar 10, 2026
1 check passed
@zainforbjs zainforbjs deleted the fix/guides branch March 10, 2026 07:42
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