diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 746f2b7..1a4fd27 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,9 +6,9 @@ permissions: on: push: - branches: [ main ] + branches: [ dev, main ] pull_request: - branches: [ main ] + branches: [ dev, main ] workflow_dispatch: jobs: @@ -25,6 +25,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install -r requirements.txt pip install sphinx sphinx-rtd-theme - name: Setup Sphinx documentation structure @@ -37,7 +38,9 @@ jobs: echo "" > source/conf.py echo "import os" >> source/conf.py echo "import sys" >> source/conf.py + echo "sys.path.insert(0, os.path.abspath('../'))" >> source/conf.py echo "sys.path.insert(0, os.path.abspath('../../'))" >> source/conf.py + echo "sys.path.insert(0, os.path.abspath('../../bruhanimate'))" >> source/conf.py echo "project = 'bruhanimate'" >> source/conf.py echo "copyright = '2024, Ethan Christensen'" >> source/conf.py echo "author = 'Ethan Christensen'" >> source/conf.py @@ -62,6 +65,12 @@ jobs: echo " bruhanimate.bruheffect" >> source/index.rst echo " bruhanimate.bruhrenderer" >> source/index.rst + echo "conf.py file contents" + cat source/conf.py + echo "" + echo "index.rst contents" + cat source/index.rst + - name: Generate .rst files with sphinx-apidoc run: | sphinx-apidoc -o docs/source bruhanimate/ @@ -69,6 +78,8 @@ jobs: - name: Generate Documentation run: | cd docs + ls -a + ls source/ -a make html - name: Deploy to GitHub Pages diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2b9694a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +future +bruhcolor +pyfiglet +numpy +openai +requests \ No newline at end of file