Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 0 additions & 108 deletions .github/disabled/dev.yaml

This file was deleted.

122 changes: 0 additions & 122 deletions .github/disabled/pages.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
path: ".vitepress/dist"
secrets:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
ai_chat_api: ${{ secrets.AI_CHAT_API }}
ai_chat_auth: ${{ secrets.AI_CHAT_AUTH }}

deploy:
name: "Deploy"
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "Lint"

on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
push:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -22,19 +22,36 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v6

- name: "Debug event.json"
if: ${{ !github.event.act }}
continue-on-error: true
run: cat "${GITHUB_EVENT_PATH}"
- name: "Debug CTX github"
if: ${{ !github.event.act }}
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"
- name: "Debug Environment"
if: ${{ !github.event.act }}
continue-on-error: true
run: env

- name: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 24

- name: "Install"
id: install
run: npm ci

- name: "Build"
if: ${{ !cancelled() }}
run: npm run build

#- name: "eslint"
# if: ${{ !cancelled() }}
# run: |
# npm run lint
# run: npm run lint

- name: "prettier"
if: ${{ !cancelled() }}
Expand All @@ -53,3 +70,5 @@ jobs:
- name: "actionlint"
if: ${{ !cancelled() }}
uses: cssnr/actionlint-action@v1
with:
shellcheck_opts: -e SC2129
7 changes: 6 additions & 1 deletion .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ concurrency:
jobs:
build:
name: "Build"
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') }}
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') || github.actor != 'dependabot[bot]' }}

uses: cssnr/workflows/.github/workflows/npm-build.yaml@master
permissions:
contents: read
with:
build: "npm run build"
path: ".vitepress/dist"
pages: true
secrets:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
ai_chat_api: ${{ secrets.AI_CHAT_API }}
ai_chat_auth: ${{ secrets.AI_CHAT_AUTH }}

deploy:
name: "Deploy"
Expand Down
2 changes: 1 addition & 1 deletion .github/yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ignore-from-file: .gitignore

rules:
line-length:
max: 119
max: 120
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Generic
.idea/
*.iml
.vscode/
cache/
dist/
build/
node_modules/
*.tsbuildinfo
# VitePress
contributors.json
.env
.env.development
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.github/disabled
.github/pull_request_template.md
package-lock.json
9 changes: 5 additions & 4 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"singleQuote": true,
"printWidth": 120,
"overrides": [
{
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
"files": ["**/*.vue"],
"options": {
"singleQuote": false,
"printWidth": 120
}
},
{
"files": ["**/*.js", "**/*.mjs", "**/*.css", "**/*.scss"],
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
"options": {
"tabWidth": 4
"singleQuote": false,
"printWidth": 120
}
}
]
Expand Down
4 changes: 4 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'vitepress'
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
import vitePressInstructions from '@cssnr/vitepress-chat/instructions-plugin'

const settings = {
siteTitle: 'Docker Deploy', // For Site Sidebar
Expand All @@ -16,6 +17,8 @@ const settings = {
actions_url: 'https://github.com/marketplace/actions/docker-stack-deploy',
}

const llmExcludes = ['index.md', 'guides/examples.md', 'guides/resources.md', 'guides/include/**/*']

// https://vitepress.dev/reference/site-config
// noinspection JSUnusedGlobalSymbols
export default defineConfig({
Expand All @@ -26,6 +29,7 @@ export default defineConfig({
allowedHosts: true,
},
plugins: [
vitePressInstructions({ exclude: llmExcludes, outputFilename: 'llms.txt' }),
groupIconVitePlugin({
customIcon: {
git: 'vscode-icons:file-type-git',
Expand Down
Loading