Skip to content

Commit 07aa910

Browse files
committed
docs: use hugo instead of mkdocs
1 parent db0b07c commit 07aa910

19 files changed

Lines changed: 504 additions & 102 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: docs
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
paths:
7+
- "docs/*"
8+
- ".github/workflows/docs.yml"
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
env:
25+
HUGO_VERSION: 0.163.1
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
submodules: recursive
32+
33+
- name: Setup Go
34+
uses: actions/setup-go@v5
35+
with:
36+
go-version: "1.22"
37+
38+
- name: Setup Pages
39+
id: pages
40+
uses: actions/configure-pages@v4
41+
42+
- name: Setup Hugo
43+
run: |
44+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
45+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
46+
47+
- name: Build with Hugo
48+
env:
49+
HUGO_ENVIRONMENT: production
50+
HUGO_ENV: production
51+
run: |
52+
hugo \
53+
--gc --minify \
54+
--baseURL "${{ steps.pages.outputs.base_url }}/"
55+
56+
- name: Upload artifact
57+
uses: actions/upload-pages-artifact@v3
58+
with:
59+
path: ./docs/public
60+
61+
deploy:
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
runs-on: ubuntu-latest
66+
needs: build
67+
steps:
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
uses: actions/deploy-pages@v4

docs/.DS_Store

6 KB
Binary file not shown.

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Build shit
2+
public/

docs/.hugo_build.lock

Whitespace-only changes.

docs/archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
date: '{{ .Date }}'
3+
draft: true
4+
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
---

0 commit comments

Comments
 (0)