Skip to content

Commit 0e6caeb

Browse files
authored
feat: new docs site on cloudflare (#3)
* first pass at new docs website * add npm to build * don't install unnecessary stuff.. * pages is staging * update base url * page url * fix dark mode * try to fix base url again? * it was right... * is it the trailing slash? * fix relurl problem * fix minor dark issue * margin issues on small devices * add placeholder for searchbot docs * fix css link * Update head-end.html
1 parent 7118a0c commit 0e6caeb

File tree

190 files changed

+2523
-12858
lines changed

Some content is hidden

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

190 files changed

+2523
-12858
lines changed

.DS_Store

8 KB
Binary file not shown.

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/go:1",
3+
"features": {
4+
"ghcr.io/devcontainers/features/hugo:1": {
5+
"extended": true,
6+
"version": "0.122.0"
7+
},
8+
"ghcr.io/devcontainers/features/node:1": {}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"mhutchie.git-graph",
14+
"esbenp.prettier-vscode",
15+
"tamasfe.even-better-toml",
16+
"budparr.language-hugo-vscode"
17+
]
18+
}
19+
},
20+
"forwardPorts": [1313]
21+
}

.eslintrc.json

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

.github/workflows/codeql.yml

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

.github/workflows/pages.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
# branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.121.2
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0 # fetch all history for .GitInfo and .Lastmod
40+
submodules: recursive
41+
- uses: actions/setup-node@v3
42+
with:
43+
node-version: 18
44+
cache: "npm"
45+
cache-dependency-path: package-lock.json
46+
- name: Instal npm dependencies
47+
run: npm install
48+
- name: Setup Go
49+
uses: actions/setup-go@v5
50+
with:
51+
go-version: '1.21'
52+
- name: Setup Pages
53+
id: pages
54+
uses: actions/configure-pages@v4
55+
- name: Setup Hugo
56+
run: |
57+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
58+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
59+
- name: Build with Hugo
60+
env:
61+
# For maximum backward compatibility with Hugo modules
62+
HUGO_ENVIRONMENT: staging
63+
HUGO_ENV: staging
64+
run: |
65+
hugo \
66+
--gc --minify \
67+
--baseURL "${{ steps.pages.outputs.base_url }}/"
68+
- name: Upload artifact
69+
uses: actions/upload-pages-artifact@v3
70+
with:
71+
path: ./public
72+
73+
# Deployment job
74+
deploy:
75+
environment:
76+
name: github-pages
77+
url: ${{ steps.deployment.outputs.page_url }}
78+
runs-on: ubuntu-latest
79+
needs: build
80+
steps:
81+
- name: Deploy to GitHub Pages
82+
id: deployment
83+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
node_modules
2-
.DS_Store
3-
.next
4-
*.log
5-
yarn.lock
6-
out/
7-
.vscode
8-
.env
9-
.vercel
10-
dist/
11-
# next-sitemap
12-
sitemap*.xml
13-
robots.txt
1+
# npm
2+
node_modules/
3+
4+
# Hugo output
5+
public/
6+
resources/
7+
.hugo_build.lock
8+
9+
# Editor
10+
.vscode/

.gitmodules

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

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc

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

.vercelignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)