We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abb7551 commit d5dc46dCopy full SHA for d5dc46d
.github/workflows/readthedocs.yml
@@ -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
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
35
+ name: converted-docs
36
+ path: '**/*.rst'
0 commit comments