Skip to content

Revert to the previous version of makerst which generates documentati… #17

Revert to the previous version of makerst which generates documentati…

Revert to the previous version of makerst which generates documentati… #17

Workflow file for this run

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/download-file-action@v1.0.3
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 }}