diff --git a/util/convert_rst_to_google_docs.py b/util/convert_rst_to_google_docs.py index 5c086d20b..038d07c10 100644 --- a/util/convert_rst_to_google_docs.py +++ b/util/convert_rst_to_google_docs.py @@ -3,6 +3,8 @@ https://github.com/pythonarcade/arcade/issues/1797 """ +print("Note: this is partially complete, use convert_rst_to_google_docs.sh instead!") +exit(1) import glob import re diff --git a/util/convert_rst_to_google_docs.sh b/util/convert_rst_to_google_docs.sh new file mode 100755 index 000000000..a622a6de2 --- /dev/null +++ b/util/convert_rst_to_google_docs.sh @@ -0,0 +1,78 @@ +#!/bin/bash + +# Easy Wrapper around the docconvert python package +# https://pypi.org/project/docconvert/ + +requires() { +cat <&2 + requires 1>&2 + exit 1 +fi + + +Usage() { +cat < $CONFIG_FILE +{ + "input_style": "rest", + "output_style": "google", + "accepted_shebangs": [ + "python" + ], + "output": { + "first_line": true, + "remove_type_backticks": "false", + "use_types": false + } +} +EOF +} +ensure_have_config +echo "Attempting docconvert..." + +docconvert --config $CONFIG_FILE --in-place "$@"