-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
65 lines (62 loc) · 1.83 KB
/
Copy pathTaskfile.yaml
File metadata and controls
65 lines (62 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
includes:
docs:
taskfile: 'https://github.com/attakei/workspace-configs.git//projects/sphinx-doc/Taskfile.yaml?tag=v0.7.2'
vars:
RUN_PYTHON: 'uv run'
SPHINX_ROOT_DIR: 'docs'
SPHINX_SOURCE_DIR: ''
SPHINX_OUTPUT_DIR: '_build'
SPHINX_DEFAULT_BUILDER: 'dirhtml'
SPHINX_APIDOC_EXTRA_OPTIONS: '--no-toc --implicit-namespaces'
SPHINX_APIDOC_PACKAGE_PATH: '../src/atsphinx'
demo:
taskfile: 'https://github.com/attakei/workspace-configs.git//projects/sphinx-doc/Taskfile.yaml?tag=v0.7.2'
vars:
RUN_PYTHON: 'uv run'
SPHINX_ROOT_DIR: 'demo'
SPHINX_SOURCE_DIR: ''
SPHINX_OUTPUT_DIR: '_build'
SPHINX_DEFAULT_BUILDER: 'typst'
tasks:
setup:
desc: 'Setup workspace'
cmds:
- 'uv sync --frozen --all-extras'
- 'lefthook install'
- task: apidoc
verify:
desc: 'Verify environment by all procs'
cmds:
- 'lefthook run pre-commit --all-files'
- 'uv run pytest'
- task: 'docs:intl'
- task: 'docs:build-linkcheck'
- task: 'docs:build-dirhtml'
- 'uv build'
release-*:
desc: 'Run release process'
vars:
LEVEL: '{{index .MATCH 0}}'
cmds:
- 'age {{.LEVEL}}'
- 'uv sync --all-extras' # To write out as lock-file
apidoc:
# Patch for docs:apidoc to add option for namespace package.
desc: 'Update apidoc'
dir: 'docs/'
cmds:
- >
uv run sphinx-apidoc
--remove-old --separate --no-toc
--implicit-namespaces
--output-dir=api/
../src/atsphinx
docs-pages:
desc: 'Build all assets for GitHub Pages'
cmds:
- task: 'docs:build-typstpdf'
- task: 'docs:build-mini18n-dirhtml'
- |
mkdir -p docs/_build/mini18n-dirhtml/_pdf/
cp docs/_build/typstpdf/document.pdf docs/_build/mini18n-dirhtml/_pdf/