Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions site.yml
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion ui/supplemental/js/go-redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
* redirect a legacy `go.php?to=<key>` 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
*/
Expand Down
8 changes: 5 additions & 3 deletions ui/supplemental/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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. --}}
<pagefind-config bundle-path="/owncloud-docs-monorepo/pagefind/"></pagefind-config>
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. --}}
<pagefind-config bundle-path="/pagefind/"></pagefind-config>
<pagefind-modal-trigger></pagefind-modal-trigger>
<pagefind-modal reset-on-close></pagefind-modal>
</div>
Expand Down