Skip to content

Commit 4930216

Browse files
authored
refactor: rewrite site with docusaurus (#14)
* refactor: rewrite site with docusaurus * feat: add umami analytics * fix: bot suggestions * fix: fix edit link
1 parent ca4b30b commit 4930216

78 files changed

Lines changed: 3720 additions & 2123 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,52 @@
1-
name: Deploy VitePress site to Pages
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [main]
6-
workflow_dispatch:
7-
8-
permissions:
9-
contents: read
10-
pages: write
11-
id-token: write
12-
13-
concurrency:
14-
group: pages
15-
cancel-in-progress: false
5+
branches:
6+
- main
167

178
jobs:
189
build:
10+
name: Build Docusaurus
1911
runs-on: ubuntu-latest
2012
steps:
2113
- name: Checkout
2214
uses: actions/checkout@v4
23-
- uses: oven-sh/setup-bun@v1
24-
- name: Setup Pages
25-
uses: actions/configure-pages@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup bun
19+
uses: oven-sh/setup-bun@v2
20+
21+
- name: Cache bun dependencies
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.bun/install/cache
25+
key: ${{ runner.os }}-bun-web-${{ hashFiles('bun.lockb') }}
26+
restore-keys: |
27+
${{ runner.os }}-bun-web-
28+
2629
- name: Install dependencies
2730
run: bun install
28-
- name: Build with VitePress
31+
32+
- name: Build website
2933
run: bun run build
30-
- name: Upload artifact
34+
35+
- name: Upload Build Artifact
3136
uses: actions/upload-pages-artifact@v3
3237
with:
33-
path: .vitepress/dist
38+
path: build
3439

3540
deploy:
41+
name: Deploy to GitHub Pages
42+
needs: build
43+
permissions:
44+
pages: write
45+
id-token: write
3646
environment:
3747
name: github-pages
3848
url: ${{ steps.deployment.outputs.page_url }}
39-
needs: build
4049
runs-on: ubuntu-latest
41-
name: Deploy
4250
steps:
4351
- name: Deploy to GitHub Pages
4452
id: deployment

.gitignore

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
# node modules
2-
node_modules
1+
# Dependencies
2+
/node_modules
33

4-
# cache
5-
.vitepress/cache
4+
# Production
5+
/build
66

7-
# vscode config
8-
.vscode
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
910

10-
# build
11-
.vitepress/dist
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Docusaurus build output
2+
.docusaurus
3+
4+
# Node modules
5+
node_modules

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.vitepress/config.mts

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

.vitepress/theme/index.ts

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Tinyauth Docs
22

3-
This is the source code of my documentation site for my project [Tinyauth](https://github.com/steveiliop56/tinyauth).
3+
This is the source code of the documentation site for my project [Tinyauth](https://github.com/steveiliop56/tinyauth).

0 commit comments

Comments
 (0)