Revert to the previous version of makerst which generates documentati… #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: master | |
paths: doc_classes/* | |
jobs: | |
wiki: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Download makerst.py | |
uses: carlosperate/[email protected] | |
with: | |
file-url: https://raw.githubusercontent.com/godotengine/godot/3.2/doc/tools/makerst.py | |
- name: Export XML documentation to RST and fix up for Github | |
run: | | |
mkdir .wiki | |
python3 ./makerst.py --output .wiki/ doc_classes/ || /bin/true | |
for i in .wiki/* | |
do | |
sed -i -e '1d' -e '2i*This file is automatically generated. To make changes, please edit the corresponding xml file in the doc_classes/ folder instead.*' -e 's/:ref:`\([^<]*\)<\([^>]*\)>`/`\1 <\2>`_/g' $i | |
done | |
echo "Done" | |
- name: Sync files to wiki | |
uses: kai-tub/external-repo-sync-action@v1 | |
with: | |
source-directory: .wiki/ | |
env: | |
GH_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} |