Skip to content

Commit bfbdbb2

Browse files
committed
chore: move docs to username repo
1 parent be2626a commit bfbdbb2

File tree

18 files changed

+4597
-0
lines changed

18 files changed

+4597
-0
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm" # See documentation for possible values
4+
directories:
5+
- "**/*"
6+
schedule:
7+
interval: "daily"
8+
commit-message:
9+
prefix: "deps"
10+
prefix-development: "deps(dev)"

.github/workflows/deploy-docs.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy documentation website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
9+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
10+
concurrency:
11+
group: 'pages'
12+
cancel-in-progress: false
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-24.04
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
26+
- name: Setup node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: pnpm
31+
cache-dependency-path: ./pnpm-lock.yaml
32+
registry-url: https://registry.npmjs.org
33+
34+
- name: Install dependencies
35+
run: pnpm install
36+
37+
- name: Build docs
38+
run: pnpm build
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: dist
44+
deploy:
45+
# Deploy to the github-pages environment
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
50+
permissions:
51+
pages: write # to deploy to Pages
52+
id-token: write # to verify the deployment originates from an appropriate source
53+
runs-on: ubuntu-24.04
54+
needs: build
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Validate documentation PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.head_ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Run markdownlint
28+
run: pnpm lint
29+
30+
- name: Build Docs
31+
run: pnpm build

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store

.markdownlint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
line-length: false
2+
no-inline-html: false
3+
blanks-around-headings:
4+
lines_above: 1
5+
lines_below: 0
6+
blanks-around-lists: false
7+
no-duplicate-heading:
8+
siblings_only: true

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"biome.enabled": true,
3+
"deno.enable": false,
4+
"editor.defaultFormatter": "biomejs.biome",
5+
"[typescript]": {
6+
"editor.defaultFormatter": "biomejs.biome"
7+
},
8+
"[json]": {
9+
"editor.defaultFormatter": "biomejs.biome"
10+
},
11+
"[jsonc]": {
12+
"editor.defaultFormatter": "biomejs.biome"
13+
},
14+
"typescript.tsdk": "node_modules/typescript/lib",
15+
"prettier.enable": false
16+
}

astro.config.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import starlight from '@astrojs/starlight';
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
site: 'https://konfjs.github.io',
8+
integrations: [
9+
starlight({
10+
title: 'My Docs',
11+
social: {
12+
github: 'https://github.com/withastro/starlight',
13+
},
14+
sidebar: [
15+
{
16+
label: 'Guides',
17+
items: [
18+
// Each item here is one entry in the navigation menu.
19+
{ label: 'Example Guide', slug: 'guides/example' },
20+
],
21+
},
22+
{
23+
label: 'Reference',
24+
autogenerate: { directory: 'reference' },
25+
},
26+
],
27+
}),
28+
],
29+
});

biome.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"files": {
4+
"ignoreUnknown": false,
5+
"ignore": ["node_modules/**/*", "dist/**/*", "package.json"],
6+
"maxSize": 100000000
7+
},
8+
"formatter": {
9+
"enabled": true,
10+
"indentStyle": "space",
11+
"indentWidth": 4,
12+
"lineWidth": 100
13+
},
14+
"linter": {
15+
"enabled": true,
16+
"rules": {
17+
"recommended": true,
18+
"correctness": {
19+
"noUnusedImports": "warn"
20+
},
21+
"suspicious": {
22+
"noExplicitAny": "off"
23+
},
24+
"style": {
25+
"useImportType": "off"
26+
},
27+
"complexity": {
28+
"noForEach": "off",
29+
"noBannedTypes": "off"
30+
}
31+
}
32+
},
33+
"javascript": {
34+
"formatter": {
35+
"quoteStyle": "single"
36+
}
37+
},
38+
"json": {
39+
"formatter": {
40+
"indentWidth": 2
41+
}
42+
}
43+
}

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@konfig/docs",
3+
"private": true,
4+
"type": "module",
5+
"engines": {
6+
"node": ">=20.18",
7+
"pnpm": ">=10"
8+
},
9+
"packageManager": "[email protected]",
10+
"pnpm": {
11+
"onlyBuiltDependencies": [
12+
"@biomejs/biome"
13+
]
14+
},
15+
"scripts": {
16+
"dev": "astro dev",
17+
"build": "astro build",
18+
"preview": "astro preview",
19+
"lint": "markdownlint-cli2 '**/*.md' '!node_modules'"
20+
},
21+
"dependencies": {
22+
"@astrojs/starlight": "0.31.1",
23+
"astro": "5.2.5",
24+
"sharp": "0.33.5"
25+
},
26+
"devDependencies": {
27+
"markdownlint-cli2": "0.17.2"
28+
}
29+
}

0 commit comments

Comments
 (0)