[ 
https://issues.apache.org/jira/browse/TINKERPOP-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146261#comment-18146261
 ] 

ASF GitHub Bot commented on TINKERPOP-3310:
-------------------------------------------

spmallette opened a new pull request, #3821:
URL: https://github.com/apache/tinkerpop/pull/3821

   https://issues.apache.org/jira/browse/TINKERPOP-3310
   
   Links from one book to another now resolve to the Markdown page that owns 
the anchor instead of the single-page HTML book, and anchors on blocks and 
inline anchor:id[] markers are kept in the Markdown. The docs build now fails 
under --strict on any link to an anchor no page has. Fixed the links that were 
already broken, pinning upgrade-doc links to the version they describe, and 
removed a release step for the long-gone gremlin-io-test.
   
   Assisted-by: Claude Code:claude-opus-5-5
   
   <!--
   Thanks for contributing! Reminders:
   + TARGET the earliest branch where you want the change
       3.7-dev -> 3.7.7 (non-breaking only)
       3.8-dev -> 3.8.2 (non-breaking only)
       master  -> 4.0.0
   + Committers will MERGE the PR forward to newer versions
   + ADD entry to the CHANGELOG.asciidoc for the targeted version
       Do not reference a JIRA number there
   + ADD JIRA number to title and link in description
   + PRs requires 3 +1s from committers OR
                  1 +1 and 7 day wait to merge.
   + MORE details: https://s.apache.org/rtnal
   -->




> 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)

Reply via email to