Skip to content

Commit cd0ddd6

Browse files
authored
Merge pull request #448 from troglobit/doc-refactor
Much needed refactor of the Finit documentation. Signed-off-by: Joachim Wiberg <[email protected]>
2 parents efadbb0 + 31b7881 commit cd0ddd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2406
-2270
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ on:
88
- '**'
99
- '!dev'
1010
pull_request:
11-
branches:
12-
- '**'
11+
types: [opened, synchronize, reopened, labeled]
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
15+
cancel-in-progress: true
1316

1417
jobs:
1518
build:
1619
# Verify we can build on latest Ubuntu with both gcc and clang
1720
name: ${{ matrix.compiler }}
1821
runs-on: ubuntu-latest
22+
# Skip redundant builds for PRs - prefer PR builds over push builds
23+
if: github.event_name != 'push' || github.ref == 'refs/heads/master'
1924
strategy:
2025
matrix:
2126
compiler: [gcc, clang]

.github/workflows/docs.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Dotty the Documenteer
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'doc/**'
9+
- 'README.md'
10+
- 'mkdocs.yml'
11+
- '.github/workflows/docs.yml'
12+
pull_request:
13+
types: [opened, synchronize, reopened, labeled]
14+
paths:
15+
- 'doc/**'
16+
- 'README.md'
17+
- 'mkdocs.yml'
18+
- '.github/workflows/docs.yml'
19+
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
24+
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0 # Needed for git-revision-date-localized plugin
37+
38+
- name: Setup Python
39+
uses: actions/setup-python@v4
40+
with:
41+
python-version: '3.x'
42+
43+
- name: Install dependencies
44+
run: |
45+
pipx install mkdocs
46+
pipx inject mkdocs mkdocs-material
47+
pipx inject mkdocs pymdown-extensions
48+
pipx inject mkdocs mkdocs-callouts
49+
50+
- name: Build documentation
51+
run: mkdocs build
52+
53+
- name: Upload Pages artifact
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: site/
57+
58+
deploy:
59+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
60+
needs: build
61+
runs-on: ubuntu-latest
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)