Skip to content

Commit

Permalink
Using conda to easily install pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
uchendui committed Jul 28, 2024
1 parent 5b48a90 commit 40005d8
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,31 @@ jobs:
with:
submodules: 'recursive'
fetch-depth: 0

- name: Update submodules
run: |
git submodule update --init --recursive --remote
- name: Set up Python
uses: actions/setup-python@v4
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: '3.10'

- name: Install docs dependencies
run: pip install -r docs/requirements.txt

- name: Install A2Perf
run: pip install -e .

- name: Build
run: sphinx-build -b dirhtml -v docs _build

- name: Move 404
run: mv _build/404/index.html _build/404.html

- name: Update 404 links
run: python docs/_scripts/move_404.py _build/404.html

- name: Remove .doctrees
run: rm -r _build/.doctrees

activate-environment: a2perf-docs
- name: Install pandoc and other dependencies
shell: bash -l {0}
run: |
conda install -c conda-forge pandoc
pip install -r docs/requirements.txt
pip install -e .
- name: Build documentation
shell: bash -l {0}
run: |
sphinx-build -b dirhtml -v docs _build
- name: Post-process documentation
shell: bash -l {0}
run: |
mv _build/404/index.html _build/404.html
python docs/_scripts/move_404.py _build/404.html
rm -r _build/.doctrees
- name: Upload to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down

0 comments on commit 40005d8

Please sign in to comment.