[
https://issues.apache.org/jira/browse/TINKERPOP-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette updated TINKERPOP-3310:
----------------------------------------
Summary: Markdown crosslinks don't point to the markdown page with the
anchor (was: gremlin-mcp tool cannot follow anchor-only references)
> Markdown crosslinks don't point to the markdown page with the anchor
> --------------------------------------------------------------------
>
> Key: TINKERPOP-3310
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3310
> Project: TinkerPop
> Issue Type: Bug
> Components: documentation
> Affects Versions: 3.7.7
> Reporter: Stephen Mallette
> Priority: Major
>
> Links from one docs book to another are written as absolute anchor URLs, such
> as https://tinkerpop.apache.org/docs/x.y.z/reference/#addedge-step. In the
> HTML the reference book is one page, so the anchor resolves. In the Markdown,
> each book is split into many pages, and MarkdownSplitter only rewrites links
> within a book. Links between books keep the site URL, which has no page path.
> A reader following one from the Markdown (an agent using llms.txt, or
> gremlin-mcp's get_gremlin_doc_page) lands on the whole HTML book, or fails,
> instead of reaching the Markdown page with that anchor. The 3.8.2 reference
> and provider pages alone have 124 of these links.
>
> MarkdownSplitter already gets every book in one run. It should map each
> anchor to the page that owns it across all books, and rewrite these URLs to
> relative links to that page. Links to other versions, to docs/current, and to
> anchors no page owns should stay unchanged. gremlin-mcp then needs no change,
> because it already turns relative links between served pages into page ids.
> Versions whose Markdown was already published can be fixed by republishing it.
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)