Fix relrefs by following formats allowed by docusaurus #18

Merged
lunny merged 2 commits from HesterG/gitea-docusaurus:fix-relrefs into main 2023-05-29 16:24:41 +00:00
Member

relrefs from upstream is in the format of [text]({{< relref "doc/<path under doc>.md" >}}), for example, [instructions]({{< relref "doc/installation/from-source.en-us.md" >}}). In this PR, use bash scripts to remove {{< relref "doc/, .en-us/.zh-cn and " >}} parts so the link can be used by docusaurus

Related: https://github.com/go-gitea/gitea/pull/24979, might need to backport this PR into 1.19

relrefs from upstream is in the format of `[text]({{< relref "doc/<path under doc>.md" >}})`, for example, `[instructions]({{< relref "doc/installation/from-source.en-us.md" >}})`. In this PR, use bash scripts to remove `{{< relref "doc/`, `.en-us`/`.zh-cn` and `" >}}` parts so the link can be used by [docusaurus](https://docusaurus.io/docs/markdown-features/links) Related: https://github.com/go-gitea/gitea/pull/24979, might need to backport this PR into 1.19
HesterG added 1 commit 2023-05-29 05:34:02 +00:00
All checks were successful
checks / build-docs (pull_request) Successful in 3m11s
314b4bc309
fix relrefs
lunny approved these changes 2023-05-29 16:21:02 +00:00
lunny added 1 commit 2023-05-29 16:21:17 +00:00
All checks were successful
checks / build-docs (pull_request) Successful in 3m12s
99fcdd847d
Merge branch 'main' into fix-relrefs
lunny merged commit 5c13cb18d2 into main 2023-05-29 16:24:41 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/gitea-docusaurus#18
No description provided.