mirror of
https://github.com/p2p-ld/docs.git
synced 2024-11-12 17:54:30 +00:00
fixing gh action
This commit is contained in:
parent
13a4e9e39b
commit
b531c452f0
2 changed files with 13 additions and 33 deletions
14
.github/workflows/sphinx.yml
vendored
14
.github/workflows/sphinx.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue