Skip to content

Commit 49c9b07

Browse files
Elfo404zerok
andauthored
docs: new docs website using Astro + Starlight (#1025)
* docs: new docs website * Update .github/workflows/publish-page.yml * update dist path for previews * fix base path * Fix links/base path * comment out unneeded input * fix typos * change base * Create .nojekyll file * Add favicon * Do not build docker image for PRs if only docs change * Fix local configuration and re-add prettier for VSCode formatting * fix links for dev & prod * make links relative to base, override TOC to work with base * change CTA text * Replace docs/README.md * Remove unused commands from package.json * Include sidebar also on the startpage * Fix search box position on startpage (tnx @Elfo404) * Deploy the dist folder on main --------- Co-authored-by: Horst Gutmann <[email protected]>
1 parent b41c765 commit 49c9b07

File tree

100 files changed

+7198
-29129
lines changed

Some content is hidden

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

100 files changed

+7198
-29129
lines changed

.github/workflows/docker.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
pull_request:
1111
branches:
1212
- '*'
13+
paths-ignore:
14+
- 'docs/**'
15+
- '.github/workflows/publish-page.yml'
1316

1417
permissions:
1518
contents: read

.github/workflows/publish-page.yml

+19-12
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,42 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
27-
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v3
29+
with:
30+
version: 9
2831
- uses: actions/setup-node@v4
2932
with:
30-
node-version: 16
33+
node-version: 20
34+
cache: 'pnpm'
35+
cache-dependency-path: 'docs'
3136

3237
- name: Install and Build
3338
working-directory: docs
3439
env:
3540
# Main: https://tanka.dev/
3641
# PRs: https://tanka.dev/pr-preview/pr-{number}/
37-
PATH_PREFIX: "${{ github.event_name == 'pull_request' && format('/pr-preview/pr-{0}', github.event.number) || '' }}"
42+
PATH_PREFIX: "${{ github.event_name == 'pull_request' && format('/pr-preview/pr-{0}/', github.event.number) || '' }}"
3843
run: |
39-
yarn install
40-
yarn build
41-
# Create .nojekyll file to allow for additional files to be published
42-
# according to
43-
# <https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/>
44-
touch ./public/.nojekyll
44+
pnpm install
45+
pnpm build
46+
if [ -d "./public" ]; then
47+
touch ./public/.nojekyll
48+
fi
49+
if [ -d "./dist" ]; then
50+
touch ./dist/.nojekyll
51+
fi
4552
4653
- name: Deploy main
4754
if: github.event_name != 'pull_request'
4855
uses: JamesIves/github-pages-deploy-action@v4
49-
with:
56+
with:
5057
clean-exclude: pr-preview/
51-
folder: ./docs/public/
58+
folder: ./docs/dist/
5259

5360
- name: Deploy preview
5461
if: github.event_name == 'pull_request'
5562
uses: rossjrw/pr-preview-action@v1
5663
with:
5764
deploy-repository: ${{ github.event.pull_request.head.repo.full_name }}
58-
source-dir: ./docs/public/
65+
source-dir: ./docs/dist/

docs/.gitignore

+13-67
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,21 @@
1-
.docz
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
25

3-
# Logs
4-
logs
5-
*.log
6+
# dependencies
7+
node_modules/
8+
9+
# logs
610
npm-debug.log*
711
yarn-debug.log*
812
yarn-error.log*
13+
pnpm-debug.log*
914

10-
# Runtime data
11-
pids
12-
*.pid
13-
*.seed
14-
*.pid.lock
15-
16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# nyc test coverage
23-
.nyc_output
24-
25-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26-
.grunt
27-
28-
# Bower dependency directory (https://bower.io/)
29-
bower_components
30-
31-
# node-waf configuration
32-
.lock-wscript
33-
34-
# Compiled binary addons (http://nodejs.org/api/addons.html)
35-
build/Release
36-
37-
# Dependency directories
38-
jspm_packages/
3915

40-
# Typescript v1 declaration files
41-
typings/
16+
# environment variables
17+
.env
18+
.env.production
4219

43-
# Optional npm cache directory
44-
.npm
45-
46-
# Optional eslint cache
47-
.eslintcache
48-
49-
# Optional REPL history
50-
.node_repl_history
51-
52-
# Output of 'npm pack'
53-
*.tgz
54-
55-
# dotenv environment variable files
56-
.env*
57-
58-
# gatsby files
59-
public
60-
.cache
61-
62-
# Mac files
20+
# macOS-specific files
6321
.DS_Store
64-
65-
# Yarn
66-
yarn-error.log
67-
.pnp/
68-
.pnp.js
69-
# Yarn Integrity file
70-
.yarn-integrity
71-
72-
# gatsby-remark-vscode extensions are required tho
73-
node_modules/*
74-
!/node_modules/vscext
75-
!/node_modules/vscext/*

docs/.node-version

-1
This file was deleted.

docs/.prettierignore

-4
This file was deleted.

docs/.prettierrc

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"endOfLine": "lf",
3-
"semi": false,
4-
"singleQuote": false,
5-
"tabWidth": 2,
6-
"trailingComma": "es5"
3+
"singleQuote": true,
4+
"tabWidth": 2
75
}

docs/.vscext/Equinusocio.vsc-material-theme/[Content_Types].xml

-4
This file was deleted.

docs/.vscext/Equinusocio.vsc-material-theme/extension.vsixmanifest

-42
This file was deleted.

0 commit comments

Comments
 (0)