Add grebedoc docs hosting and client-side redirect #21
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/longwei#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Longwei's docs are currently only served from Codeberg Pages (
marvinsmastodontools.codeberg.page/longwei/). This issue tracks adding grebedoc as a second hosting target and redirecting old URLs to the new address.Scope:
mkdocs.ymlto setsite_url: https://longwei.marvin8.zonedocs/javascripts/redirect.jsthat redirects visitors frommarvinsmastodontools.codeberg.pagetolongwei.marvin8.zonegit-pages/action@v2upload step into thedeploy-docsjob inci.yml(done as part of issue #20's CI migration)Findings:
Current
mkdocs.ymlhassite_url: https://marvinsmastodontools.codeberg.page/longwei/. Noextra_javascriptsection exists yet.Old Codeberg Pages hostname:
marvinsmastodontools.codeberg.page. Path prefix to strip:/longwei.zaojun template for
docs/javascripts/redirect.js:The grebedoc upload step (
git-pages/action@v2) is wired intodeploy-docsinci.yml(part of issue #20).Plan:
docs/javascripts/redirect.jsadapting the zaojun template for longwei's hostname and path prefix.mkdocs.yml: setsite_url: https://longwei.marvin8.zone, addextra_javascript: - javascripts/redirect.js.