@@ -38,20 +38,10 @@ jobs:
commit=$(git log --pretty=format:"%h (\"%s\")" -1 .)
cd $GITHUB_WORKSPACE/ltp.wiki
-
- # Don't forget to update this list, keep it sorted
- cp -v $dir/c-test-api.txt C-Test-API.asciidoc
- cp -v $dir/c-test-tutorial-simple.txt C-Test-Case-Tutorial.asciidoc
- cp -v $dir/library-api-writing-guidelines.txt LTP-Library-API-Writing-Guidelines.asciidoc
- cp -v $dir/maintainer-patch-review-checklist.txt Maintainer-Patch-Review-Checklist.asciidoc
- cp -v $dir/network-c-api.txt C-Test-Network-API.asciidoc
- cp -v $dir/shell-test-api.txt Shell-Test-API.asciidoc
- cp -v $dir/supported-kernel-libc-versions.txt Supported-kernel,-libc,-toolchain-versions.asciidoc
- cp -v $dir/test-writing-guidelines.txt Test-Writing-Guidelines.asciidoc
- cp -v $dir/user-guide.txt User-Guidelines.asciidoc
- cp -v $dir/kvm-test-api.txt KVM-Test-API.asciidoc
-
+ # don't forget to add new extensions
+ cp -v $dir/*.asciidoc $dir/*.rest .
git add .
+
# only commit if there are changes
git diff-index --quiet HEAD -- || git commit -m "Update to $commit" .
git push
similarity index 100%
rename from doc/build-system-guide.txt
rename to doc/Build-System.rest
similarity index 100%
rename from doc/c-test-api.txt
rename to doc/C-Test-API.asciidoc
similarity index 100%
rename from doc/c-test-tutorial-simple.txt
rename to doc/C-Test-Case-Tutorial.asciidoc
similarity index 100%
rename from doc/network-c-api.txt
rename to doc/C-Test-Network-API.asciidoc
similarity index 100%
rename from doc/kvm-test-api.txt
rename to doc/KVM-Test-API.asciidoc
similarity index 100%
rename from doc/library-api-writing-guidelines.txt
rename to doc/LTP-Library-API-Writing-Guidelines.asciidoc
similarity index 100%
rename from doc/maintainer-patch-review-checklist.txt
rename to doc/Maintainer-Patch-Review-Checklist.asciidoc
similarity index 100%
rename from doc/shell-test-api.txt
rename to doc/Shell-Test-API.asciidoc
similarity index 100%
rename from doc/supported-kernel-libc-versions.txt
rename to doc/Supported-kernel,-libc,-toolchain-versions.asciidoc
similarity index 100%
rename from doc/test-writing-guidelines.txt
rename to doc/Test-Writing-Guidelines.asciidoc
similarity index 100%
rename from doc/user-guide.txt
rename to doc/User-Guidelines.asciidoc
Keeping the original extension from LTP wiki git brings: * add syntax highlight for editors * no need to add new file (only new extension) Reviwed-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Petr Vorel <pvorel@suse.cz> --- .github/workflows/wiki-mirror.yml | 16 +++------------- ...{build-system-guide.txt => Build-System.rest} | 0 doc/{c-test-api.txt => C-Test-API.asciidoc} | 0 ...-simple.txt => C-Test-Case-Tutorial.asciidoc} | 0 ...ork-c-api.txt => C-Test-Network-API.asciidoc} | 0 doc/{kvm-test-api.txt => KVM-Test-API.asciidoc} | 0 ... LTP-Library-API-Writing-Guidelines.asciidoc} | 0 ...> Maintainer-Patch-Review-Checklist.asciidoc} | 0 ...hell-test-api.txt => Shell-Test-API.asciidoc} | 0 ...ed-kernel,-libc,-toolchain-versions.asciidoc} | 0 ...ines.txt => Test-Writing-Guidelines.asciidoc} | 0 doc/{user-guide.txt => User-Guidelines.asciidoc} | 0 12 files changed, 3 insertions(+), 13 deletions(-) rename doc/{build-system-guide.txt => Build-System.rest} (100%) rename doc/{c-test-api.txt => C-Test-API.asciidoc} (100%) rename doc/{c-test-tutorial-simple.txt => C-Test-Case-Tutorial.asciidoc} (100%) rename doc/{network-c-api.txt => C-Test-Network-API.asciidoc} (100%) rename doc/{kvm-test-api.txt => KVM-Test-API.asciidoc} (100%) rename doc/{library-api-writing-guidelines.txt => LTP-Library-API-Writing-Guidelines.asciidoc} (100%) rename doc/{maintainer-patch-review-checklist.txt => Maintainer-Patch-Review-Checklist.asciidoc} (100%) rename doc/{shell-test-api.txt => Shell-Test-API.asciidoc} (100%) rename doc/{supported-kernel-libc-versions.txt => Supported-kernel,-libc,-toolchain-versions.asciidoc} (100%) rename doc/{test-writing-guidelines.txt => Test-Writing-Guidelines.asciidoc} (100%) rename doc/{user-guide.txt => User-Guidelines.asciidoc} (100%)