Skip to content

Commit

Permalink
Sync docs: update sidebars and transform relative links to absolute p…
Browse files Browse the repository at this point in the history
…aths
  • Loading branch information
wartraxx51 committed Jan 22, 2025
1 parent ee9b3e7 commit 3cddc2b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
cp -r source-repo/.vale/* target-repo/.vale/
cp -r source-repo/docs/docs/* target-repo/docs/docs/
cp source-repo/docs/sidebars.ts target-repo/docs/sidebars.ts
sed -i "/docsSidebar/,/\],/ s/'readme',/'introduction\/readme',/" target-repo/docs/sidebars.ts
mkdir target-repo/docs/docs/introduction
mv target-repo/docs/docs/readme.mdx target-repo/docs/docs/introduction/
sed -i '/^title: Introduction/i sidebar_label: Introduction' target-repo/docs/docs/introduction/readme.mdx
sed -i 's|](\./|](/|g' target-repo/docs/docs/introduction/readme.mdx
cd target-repo
git config user.name github-actions
git config user.email github-actions@github.com
Expand Down

0 comments on commit 3cddc2b

Please sign in to comment.