Docs: fix doc footer (#12943)

* fix doc footer

* move the logic to the fix-path script
This commit is contained in:
Vadim Ogievetsky 2022-08-24 06:47:58 -07:00 committed by GitHub
parent f7c6316992
commit c1a75fca3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ var urlVersion = process.argv[2];
var druidVersion = process.argv[3];
try {
// Change any explict "/docs/latest" links to "/docs/" to be picked up by the next replace
replace.sync({
files: './build/ApacheDruid/docs/**/*.html',
from: /"\/docs\/latest"/g,
to: `"/docs/"`,
});
// Fix doc paths
replace.sync({
files: './build/ApacheDruid/docs/**/*.html',