Skip to content

fix(ui): map drop-style page URLs to markdown twins - #48

Open
ngarakapati wants to merge 1 commit into
tigergraph:mainfrom
ngarakapati:fix/page-actions-md-url
Open

fix(ui): map drop-style page URLs to markdown twins#48
ngarakapati wants to merge 1 commit into
tigergraph:mainfrom
ngarakapati:fix/page-actions-md-url

Conversation

@ngarakapati

Copy link
Copy Markdown
Contributor

Summary

Copy page / View as Markdown / Open in ChatGPT·Claude·Cursor all look up a .md twin by swapping .html.md.

Production docs omit .html (/savanna/main/overview/), so the button currently gets data-md-url="./" and fetches the HTML page.

This updates md-url so both URL styles work:

  • /overview/index.html/overview/index.md
  • /overview//overview/index.md
  • /overview/pricing/overview/pricing.md

build/ui-bundle.zip is rebuilt with the helper.

Merge order

Merge this PR first, then the companion change on cloud-docs#171 (htmlToMdUrl in lib/llm-utils.js) so the published .md paths match what the button fetches.

Based on current main after #47, so no rebase conflict with that merge.

Copy page and the LLM actions looked for .html → .md. Production pages
omit .html, so the button fetched the HTML page instead of index.md.
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