Sync wiki from main repo (#8320)

This commit is contained in:
tool4ever
2025-11-02 18:51:51 +01:00
committed by GitHub
parent def3fa5d23
commit f0b937a5f0
84 changed files with 9150 additions and 0 deletions

27
.github/workflows/sync-wiki.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Publish wiki
on:
push:
branches: [wiki]
paths:
- docs/**
- .github/workflows/sync-wiki.yml
concurrency:
group: publish-wiki
cancel-in-progress: true
permissions:
contents: write
jobs:
publish-wiki:
if: github.repository_owner == 'tool4ever'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: fix md links for Gollum
run: find ${{ github.workspace }}/docs/ -type f -name "*.md" -exec sed -i -E 's|(\[[^]]+]\()([^)]+\/)*([^).]+).md\)|\1\3)|g' '{}' \;
- name: fix image links for Gollum
run: find ${{ github.workspace }}/docs/ -type f -name "*.png" -exec mv '{}' ${{ github.workspace }}/docs/ \;
- uses: Andrew-Chen-Wang/github-wiki-action@v5
with:
path: docs
preprocess: false
strategy: init