mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-28 14:18:16 +00:00
added docs workflow
This commit is contained in:
parent
28b9a8c8d7
commit
925ce46f12
2 changed files with 37 additions and 0 deletions
26
.github/workflows/docs.yml
vendored
Normal file
26
.github/workflows/docs.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Docs
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: build docs
|
||||
run: |
|
||||
pip install tox
|
||||
tox -e docs
|
||||
|
||||
- name: publish
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./docs/_build
|
||||
publish_branch: netlify
|
||||
11
tox.ini
11
tox.ini
|
|
@ -55,3 +55,14 @@ deps =
|
|||
commands =
|
||||
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing
|
||||
skip_install: false
|
||||
|
||||
[testenv:docs]
|
||||
changedir = docs
|
||||
deps =
|
||||
sphinx
|
||||
myst-parser
|
||||
sphinx_copybutton
|
||||
commands = sphinx-build -E -b html . _build
|
||||
setenv =
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
DEBUG=False
|
||||
|
|
|
|||
Loading…
Reference in a new issue