Skip to content

Serve Markdown files as text/plain for LLM compatibility - #246

Merged
z9r5 merged 2 commits into
mainfrom
fix-mime
Jul 31, 2026
Merged

Serve Markdown files as text/plain for LLM compatibility#246
z9r5 merged 2 commits into
mainfrom
fix-mime

Conversation

@z9r5

@z9r5 z9r5 commented Jul 31, 2026

Copy link
Copy Markdown
Member

This pull request introduces a minor update to the NGINX configuration to improve Markdown file serving, and updates the hugo-web-product-module dependency to a newer version with a corrected local path.

NGINX configuration improvements:

  • .helm/templates/10-cm.yaml: Added a new location block to explicitly serve generated Markdown files (e.g., .md files under documentation, guides, modules, gs, reference) as text/plain to ensure correct content type for downloads and previews.

Dependency updates:

  • go.mod: Updated the github.com/deckhouse/hugo-web-product-module dependency to version v0.1.25 and fixed the local replacement path to point to the correct directory (../hugo-web-product-module).

z9r5 added 2 commits July 31, 2026 10:09
- Add a dedicated location block matching Markdown endpoints
  across documentation paths so they return with a text/plain
  content type instead of the default, enabling correct
  consumption by LLM tooling that follows llms.txt references
- Place the new rule above the existing catch-all location to
  ensure priority matching for the more specific extension
  pattern
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

✅ Deployment Succeeded

Environment: stage

Access URLs:

@z9r5
z9r5 merged commit ba7b54f into main Jul 31, 2026
3 of 4 checks passed
@z9r5
z9r5 deleted the fix-mime branch July 31, 2026 07:37
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