Prepare archive output for GitHub Pages (CSS rendering + SEO metadata)#12
Merged
meonkeys merged 1 commit intoapache:mainfrom Feb 12, 2026
Merged
Conversation
Contributor
|
LGTM. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates archive output so it is better suited for GitHub Pages publishing and search indexing.
Main goals covered:
robots.txt,sitemap.xml) indocs/.What Changed
1) Rendering moved from Markdown presentation to CSS classes
archive-message,archive-user,archive-text,archive-link, etc.) for theme/styling control.Files:
src/main/java/org/apache/fineract/chat/archive/MarkdownRenderer.javasrc/main/java/org/apache/fineract/chat/archive/SlackTextFormatter.java2) Added generated stylesheet
docs/assets/chat-archive.cssFiles:
src/main/java/org/apache/fineract/chat/archive/SiteMetadataRenderer.javasrc/main/java/org/apache/fineract/chat/archive/ChatArchiveApp.java3) Extensionless URL strategy for Pages
//daily/<channel>//daily/<channel>/<date>/.mdpaths.Files:
src/main/java/org/apache/fineract/chat/archive/MarkdownRenderer.javasrc/main/java/org/apache/fineract/chat/archive/SiteMetadataRenderer.java4) Robots and sitemap generation
robots.txtis always generated atdocs/robots.txt.sitemap.xmlis generated atdocs/sitemap.xmlwhenSITE_BASE_URLis configured.SITE_BASE_URLconfiguration support and normalization.Files:
src/main/java/org/apache/fineract/chat/archive/ArchiveConfig.javasrc/main/java/org/apache/fineract/chat/archive/ChatArchiveApp.javaupdate-archive.ymlReadme.md5) Pages workflow template
deploy-pages.ymlworkflow template for deployingdocs/to GitHub Pages.File:
deploy-pages.ymlVerification
Executed locally:
./gradlew testAll tests passed.
Added/updated tests:
src/test/java/org/apache/fineract/chat/archive/MarkdownRendererTest.javasrc/test/java/org/apache/fineract/chat/archive/SiteMetadataRendererTest.javasrc/test/java/org/apache/fineract/chat/archive/SlackTextFormatterTest.javasrc/test/java/org/apache/fineract/chat/archive/ArchiveConfigTest.java