diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 514966a..147aaf3 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -14,11 +14,23 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Load cached Poetry installation + id: cached-poetry + uses: actions/cache@v3 + with: + path: ~/.local # the path depends on the OS + key: poetry-0 # increment to reset cache - name: Install poetry - uses: snok/install-poetry@v1.5.1 + uses: snok/install-poetry@v1 + if: steps.cached-poetry.outputs.cache-hit != 'true' with: virtualenvs-create: true virtualenvs-in-project: true + version: latest - name: Load cached venv id: cached-poetry-dependencies uses: actions/cache@v2 diff --git a/.readthedocs.yaml b/.readthedocs.yaml deleted file mode 100644 index 7ca629a..0000000 --- a/.readthedocs.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Required -version: 2 - -# Build documentation in the docs/ directory with Sphinx -sphinx: - configuration: src/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -# formats: -# - pdf - -# Optionally declare the Python requirements required to build your docs -build: - os: ubuntu-22.04 - tools: - python: "3.9" - nodejs: "16" - jobs: - post_create_environment: - - pip install poetry - - poetry config virtualenvs.create false - post_install: - - poetry install - - npm install -g @mermaid-js/mermaid-cli - -formats: - - epub - - pdf \ No newline at end of file