Prathmesh Sapate has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24460


Change subject: IMPALA-14822: [DOCS] Fix formatted HTML fragment links via 
post-build script
......................................................................

IMPALA-14822: [DOCS] Fix formatted HTML fragment links via post-build script

DITA-OT emits different anchor ids for nested <concept> elements depending
on output format. Plain-html uses simple ids (parquet_compression) while
asf-site-html uses scoped ids (parquet__parquet_compression), so xrefs like
href="#parquet_compression" work in plain-html but not on the published site.

Changing the DITA xref (e.g. to a hierarchical href) fixes asf-site-html
but breaks plain-html and can fail the DITA build (DOTX032E) without
explicit link text. Added fix-asf-site-html-fragments.py to rewrite broken
fragment hrefs in asf-site-html output after the html5 build, and invoke
it from the Makefile. DITA source stays unchanged.

Testing: make all -B; post-build script rewrote 301 hrefs under
docs/build/asf-site-html/topics; verified in-page fragment links in a
browser.

Change-Id: Id970bac63e0aadd45d7e35b92c8da4eafbdf17b4
---
M docs/Makefile
A docs/fix-asf-site-html-fragments.py
2 files changed, 214 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/60/24460/1
--
To view, visit http://gerrit.cloudera.org:8080/24460
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id970bac63e0aadd45d7e35b92c8da4eafbdf17b4
Gerrit-Change-Number: 24460
Gerrit-PatchSet: 1
Gerrit-Owner: Prathmesh Sapate <[email protected]>

Reply via email to