mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 16:09:33 +08:00
docs: update documentation links and add CI workflow for building and checking the docs site
This commit is contained in:
6
.github/ISSUE_TEMPLATE/docs.yml
vendored
6
.github/ISSUE_TEMPLATE/docs.yml
vendored
@@ -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
61
.github/workflows/docs.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user