-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (52 loc) · 1.69 KB
/
Copy pathdocs.yaml
File metadata and controls
63 lines (52 loc) · 1.69 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
name: Docs
on:
push:
branches: ["main"]
tags: ["v*"]
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: pip
cache-dependency-path: pyproject.toml
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Install JSDoc/TypeDoc
run: npm install -g jsdoc typedoc
- name: Install doxygen
run: sudo apt-get install -y doxygen
# Build with the working copy (not the released yardang) so that the docs,
# and the per-theme previews below, exercise the version in this repo.
- name: Install self
run: pip install -e .[develop]
- name: Build docs
run: yardang build
# Render the full site once per bundled theme into docs/html/_previews/<theme>/
# so each theme is browsable live at a suburl of the published site.
- name: Build theme previews
run: yardang preview
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs/html
force_orphan: true
- name: Build Wiki
run: yardang wiki --output-dir docs/wiki
- name: Upload Documentation to Wiki
uses: Andrew-Chen-Wang/github-wiki-action@v5
with:
path: docs/wiki