diff --git a/site.yml b/site.yml index ba6ab90..859e75a 100644 --- a/site.yml +++ b/site.yml @@ -1,9 +1,12 @@ site: title: Documentation for ownCloud (A Kiteworks Company) - # Deploy target is a GitHub Pages PROJECT site served under a subpath. - # This URL drives canonical links (used by the Pagefind dedup layout) and - # absolute asset resolution -- it must match the real publish location. - url: https://deepdiver1975.github.io/owncloud-docs-monorepo + # Deploy target is GitHub Pages on the custom domain doc.owncloud.com, served + # at the domain ROOT (no repo subpath). This URL drives canonical links (used + # by the Pagefind dedup layout in ui/supplemental/layouts/default.hbs), the + # sitemap written by antora-extensions/sitemap-cleanup.js, and the navbar logo + # link -- it must match the real publish location. Local preview overrides it + # via `npm run antora-local` (--url http://localhost:8080). + url: https://doc.owncloud.com # the site's landing page resides in the main content component # but it MUST be named ROOT to get a component/version-less landing page. # see: https://docs.antora.org/antora/latest/page/start-page/ diff --git a/ui/supplemental/js/go-redirect.js b/ui/supplemental/js/go-redirect.js index 6bfa2ce..8b2a375 100644 --- a/ui/supplemental/js/go-redirect.js +++ b/ui/supplemental/js/go-redirect.js @@ -113,7 +113,7 @@ * redirect a legacy `go.php?to=` request to, or null when this is not a * go.php request (so callers leave the page untouched). * - * @param {string} pathname e.g. "/owncloud-docs-monorepo/server/latest/go.php" + * @param {string} pathname e.g. "/server/latest/go.php" * @param {string} search e.g. "?to=admin-sharing" * @returns {string|null} the redirect target, relative to the site, or null */ diff --git a/ui/supplemental/partials/header-content.hbs b/ui/supplemental/partials/header-content.hbs index 3ba43a3..b0b6d61 100644 --- a/ui/supplemental/partials/header-content.hbs +++ b/ui/supplemental/partials/header-content.hbs @@ -10,9 +10,11 @@ overlay (also via Ctrl/Cmd+K). bundle-path MUST be absolute (the components dynamic-import() pagefind.js relative to pagefind-component-ui.js's URL, so "./pagefind/" would double and - 404 on shallow pages). On a GitHub Pages PROJECT site the index is - served under the repo subpath, so the absolute path includes it. --}} - + 404 on shallow pages). The site is served at the root of the custom + domain doc.owncloud.com, so the index is at /pagefind/ -- which is + also where it sits under `npm run serve`. A repo-subpath prefix + here would 404 on both. --}} +