[
https://issues.apache.org/jira/browse/HDDS-15124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chi-Hsuan Huang updated HDDS-15124:
-----------------------------------
Description:
h2. Description
A grep across the repo finds 15 broken doc links pointing at
{{[https://ozone.apache.org/docs/]{current,edge}/...html}}. The website was
migrated to Docusaurus and these legacy paths no longer resolve.
h2. {{{}{}}}Scope
Rewrite the 4 {{current/...html}} links to their current Docusaurus equivalents:
* {{CONTRIBUTING.md:78}}
* {{hadoop-ozone/dist/README.md:33}}
* {{hadoop-ozone/dist/README.md:41}}
* {{hadoop-ozone/dist/README.md:42}}
These sit in the two highest-traffic docs in the tree (top-level contributor
guide + the README shipped in every binary release) and have no server-side
backstop in flight.
h2. Relationship to apache/ozone-site#351
[ozone-site#351|https://github.com/apache/ozone-site/pull/351] restores
{{static/docs/edge/}} on the website side. When merged, it will transparently
fix the 11 remaining {{edge/...html}} links in
{{{}hadoop-hdds/docs/content/*{*}{*}{}}}{*}. That work is complementary, not
alternative{*} — {{current/...html}} paths are out of #351's scope, so this
ticket is still needed regardless of #351's outcome.
was:
Following the migration of ozone.apache.org from Hugo to Docusaurus (in
apache/ozone-site), several files in this repo still reference URLs that no
longer resolve.
The migration:
- dropped the /docs/current/ and /docs/edge/ namespaces (latest now at /docs/,
archives at /docs/2.0.0/ and /docs/1.4.1/)
- dropped the .html ugly-URL suffix
- reorganized content (e.g. Getting Started -> Quick Start; install methods
nested under /quick-start/installation/)
h3. Scope (current state of master)
17 occurrences across 11 files:
- 4x /docs/current/_.html pattern (mostly hadoop-ozone/dist/README.md)
- 13x /docs/edge/_.html pattern (mostly hadoop-hdds/docs/content/
- Plus README.md, CONTRIBUTING.md
h3. Relationship to HDDS-14663
That ticket's PR ([https://github.com/apache/ozone-site/pull/351]) restores
/docs/edge/ as a static archive on the site side, which would un-break the
/edge/ references but does not cover /docs/current/ and bakes the pre-migration
URL structure into the site permanently. This ticket takes the alternative
approach: update repo links to current Docusaurus paths so the codebase tracks
the live site structure.
h3. Proposed fix
Single PR rewriting all 17 URLs to their current Docusaurus equivalents.
h3. Possible follow-up
Add a link-checker step to CI (e.g. inside
hadoop-ozone/dev-support/checks/docs.sh) that crawls markdown for
ozone.apache.org/docs/... references and fails on 404. Out of scope for this
ticket.
> [Docs] Fix broken in-repo doc links
> -----------------------------------
>
> Key: HDDS-15124
> URL: https://issues.apache.org/jira/browse/HDDS-15124
> Project: Apache Ozone
> Issue Type: Task
> Components: documentation
> Reporter: Chi-Hsuan Huang
> Priority: Minor
>
> h2. Description
> A grep across the repo finds 15 broken doc links pointing at
> {{[https://ozone.apache.org/docs/]{current,edge}/...html}}. The website was
> migrated to Docusaurus and these legacy paths no longer resolve.
> h2. {{{}{}}}Scope
> Rewrite the 4 {{current/...html}} links to their current Docusaurus
> equivalents:
> * {{CONTRIBUTING.md:78}}
> * {{hadoop-ozone/dist/README.md:33}}
> * {{hadoop-ozone/dist/README.md:41}}
> * {{hadoop-ozone/dist/README.md:42}}
> These sit in the two highest-traffic docs in the tree (top-level contributor
> guide + the README shipped in every binary release) and have no server-side
> backstop in flight.
> h2. Relationship to apache/ozone-site#351
> [ozone-site#351|https://github.com/apache/ozone-site/pull/351] restores
> {{static/docs/edge/}} on the website side. When merged, it will transparently
> fix the 11 remaining {{edge/...html}} links in
> {{{}hadoop-hdds/docs/content/*{*}{*}{}}}{*}. That work is complementary, not
> alternative{*} — {{current/...html}} paths are out of #351's scope, so this
> ticket is still needed regardless of #351's outcome.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]