Skip to content

Commit d5dc46d

Browse files
Antony BaileyAntony Bailey
authored andcommitted
make rst myself
1 parent abb7551 commit d5dc46d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/readthedocs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Generate and Publish Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.x'
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pypandoc
25+
26+
- name: Convert Markdown to reStructuredText
27+
run: |
28+
for file in $(find . -name "*.md"); do
29+
pypandoc "$file" -f markdown -t rst -o "${file%.md}.rst"
30+
done
31+
32+
- name: Upload converted files
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: converted-docs
36+
path: '**/*.rst'

0 commit comments

Comments
 (0)