From d71eeff1968a6d0e6c38ed3eae4674c06751c0f1 Mon Sep 17 00:00:00 2001 From: jonri Date: Sat, 28 Oct 2023 17:29:00 -0400 Subject: [PATCH] Revert to the previous version of makerst which generates documentation more compatible with github wiki --- .github/workflows/main.yml | 17 +++-------------- doc_classes/HydroRigidBody.xml | 2 +- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d94cd78..5556854 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,26 +14,15 @@ jobs: - name: Download makerst.py uses: carlosperate/download-file-action@v1.0.3 with: - file-url: https://raw.githubusercontent.com/godotengine/godot/4.1/doc/tools/make_rst.py - - - name: Download version.py - uses: carlosperate/download-file-action@v1.0.3 - with: - file-url: https://raw.githubusercontent.com/godotengine/godot/4.1/version.py + 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 ./make_rst.py --output .wiki/ doc_classes/ || /bin/true + 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' \ - -e '/^\.\. /d' \ - -e '/:widths:/d' \ - $i + 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" diff --git a/doc_classes/HydroRigidBody.xml b/doc_classes/HydroRigidBody.xml index a4cf002..e4bf6ec 100644 --- a/doc_classes/HydroRigidBody.xml +++ b/doc_classes/HydroRigidBody.xml @@ -5,7 +5,7 @@ When an object enters the water, three forces will be calculated: - [b]Buoyancy[/b] - the pressure of the displaced water causes an object to float. + [b]Buoyancy[/b] - the pressure of the displaced water causes an object to float. [b]Drag[/b] - an object moving through the water will slow down. The amount of drag is dependent on the object's shape. [b]Lift[/b] - an object moving through the water at an angle will generate lift, the way a boat lifts out of the water. This is also dependent on the object's shape.