docs: update documentation links and add CI workflow for building and checking the docs site

This commit is contained in:
Gavin
2026-11-25 10:04:01 +08:00
parent 74f29f83a0
commit 2524de09ac
176 changed files with 8072 additions and 3626 deletions

View File

@@ -1,5 +1,5 @@
name: Documentation Issue
description: Report an inaccuracy, broken link, missing topic, or unclear explanation in the docs at deeptutor.info
description: Report an inaccuracy, broken link, missing topic, or unclear explanation in the docs at docs.deeptutor.info
title: "[Docs]: "
labels: ["docs", "triage"]
@@ -10,13 +10,13 @@ body:
label: Before filing
options:
- label: I have searched the existing docs issues and this report is not already filed.
- label: This is about the docs at https://deeptutor.info — not a product bug.
- label: This is about the docs at https://docs.deeptutor.info — not a product bug.
- type: input
id: page
attributes:
label: Page URL
description: Which page does the issue affect?
placeholder: https://deeptutor.info/docs/...
placeholder: https://docs.deeptutor.info/...
validations:
required: true
- type: dropdown

61
.github/workflows/docs.yml vendored Normal file
View File

@@ -0,0 +1,61 @@
name: Docs
on:
push:
branches:
- main
- dev
- preview
paths:
- "docs/**"
- "deeptutor/modules/manifests/**"
- "deeptutor/api/router_index.json"
- "assets/figs/web-dev/**"
- ".github/workflows/docs.yml"
pull_request:
paths:
- "docs/**"
- "deeptutor/modules/manifests/**"
- "deeptutor/api/router_index.json"
- "assets/figs/web-dev/**"
- ".github/workflows/docs.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
docs:
name: Build and check the docs site
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Check sources
working-directory: .
run: python3 docs/scripts/check_docs.py
- name: Install and build
run: npm ci
env:
ASTRO_TELEMETRY_DISABLED: "1"
- name: Build
run: npm run build
env:
ASTRO_TELEMETRY_DISABLED: "1"
- name: Check built links
working-directory: .
run: python3 docs/scripts/check_docs.py dist