1515jobs :
1616 build_and_deploy :
1717 runs-on : ubuntu-latest
18-
18+
1919 steps :
2020 - name : Checkout repository
2121 uses : actions/checkout@v3
2222 with :
2323 fetch-depth : 0
24-
24+
2525 - name : Setup Python
2626 uses : actions/setup-python@v4
2727 with :
2828 python-version : ' 3.9'
29-
29+
3030 - name : Install Doxygen
3131 run : |
3232 sudo apt-get update
3333 sudo apt-get install -y doxygen graphviz
34-
34+
3535 - name : Install Python dependencies
3636 run : |
3737 python -m pip install --upgrade pip
@@ -42,64 +42,64 @@ jobs:
4242 cd docs
4343 chmod +x build_docs.sh
4444 ./build_docs.sh
45-
45+
4646 - name : Deploy to GitHub Pages
4747 uses : peaceiris/actions-gh-pages@v3
4848 with :
4949 personal_token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
5050 publish_dir : ./docs/build/html
5151 destination_dir : docs
52-
52+
5353 - name : Create Wiki Content
5454 run : |
5555 # Install pandoc for HTML to Markdown conversion
5656 sudo apt-get install -y pandoc
57-
57+
5858 # Create a directory for wiki content
5959 mkdir -p wiki_content
60-
60+
6161 # Copy Home.md with proper formatting
6262 cat > wiki_content/Home.md << 'EOL'
6363 # VegasAfterglow Documentation
64-
64+
6565 Welcome to the VegasAfterglow documentation wiki.
66-
66+
6767 ## Documentation
68-
68+
6969 The complete documentation is published to GitHub Pages. Please visit:
70-
70+
7171 **[Full Documentation Site](https://yihanwangastro.github.io/VegasAfterglow/docs/)**
72-
72+
7373 ## Quick Links
74-
74+
7575 * [C++ API Reference](https://yihanwangastro.github.io/VegasAfterglow/docs/cpp_api.html)
7676 * [Python API Reference](https://yihanwangastro.github.io/VegasAfterglow/docs/python_api.html)
7777 * [Installation Guide](https://yihanwangastro.github.io/VegasAfterglow/docs/installation.html)
7878 * [Quick Start Guide](https://yihanwangastro.github.io/VegasAfterglow/docs/quickstart.html)
7979 * [Examples](https://yihanwangastro.github.io/VegasAfterglow/docs/examples.html)
8080 * [Contributing Guide](https://yihanwangastro.github.io/VegasAfterglow/docs/contributing.html)
81-
81+
8282 ## Building Documentation Locally
83-
83+
8484 To build the documentation locally, please refer to the [docs/README.md](https://github.com/YihanWangAstro/VegasAfterglow/blob/main/docs/README.md) file in the main repository.
8585 EOL
86-
86+
8787 # Create sidebar navigation
8888 cat > wiki_content/_Sidebar.md << 'EOL'
8989 ## VegasAfterglow
90-
90+
9191 * [Home](Home)
9292 * [Documentation Site](https://yihanwangastro.github.io/VegasAfterglow/docs/)
9393 EOL
94-
94+
9595 # Create footer
9696 cat > wiki_content/_Footer.md << 'EOL'
9797 ---
9898 Documentation generated automatically from the [VegasAfterglow repository](https://github.com/YihanWangAstro/VegasAfterglow).
9999 EOL
100-
100+
101101 - name : Push to Wiki
102102 uses : Andrew-Chen-Wang/github-wiki-action@v4
103103 with :
104104 path : wiki_content
105- token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
105+ token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
0 commit comments