Skip to content

rm modules

rm modules #60

name: Generate Docs Update
on:
push:
branches:
- test-ghpages-override
jobs:
build_docs_job:
name: Code Reference Generator
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9.0
- name: Install dependencies
run: |
python -m pip install -U sphinx
python -m pip install furo
python -m pip install django
python -m pip install mock
pip install sphinxjp.themes.basicstrap
cd docker
cd requirements
pip install python_ldap-3.3.1-cp39-cp39-win_amd64.whl
pip install sphinxjp
pip install -r base.txt
- name: Make the Codebase Reference sphinx docs
run: |
cd docs/codebase_docs/
sphinx-apidoc -o source ../../CodeListLibrary_project
sphinx-build -b html source ..
- name: Copy Documentation
run: |
dir
rm -r docker
rm -r CodeListLibrary_project
cd docs
rm -r .doctrees
rm -r _modules
- name: Init new codebase docs repo
run: |
touch .nojekyll
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update documentation"
- name: Push to destination branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true