[docs]: replace config generator with native cookbook
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- 'examples/**'
|
||||
- 'consumer-guide/**'
|
||||
- 'scripts/inference/**'
|
||||
- 'mkdocs.yml'
|
||||
- 'requirements-mkdocs.in'
|
||||
- 'requirements-mkdocs.txt'
|
||||
@@ -17,7 +17,7 @@ on:
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- 'examples/**'
|
||||
- 'consumer-guide/**'
|
||||
- 'scripts/inference/**'
|
||||
- 'mkdocs.yml'
|
||||
- 'requirements-mkdocs.in'
|
||||
- 'requirements-mkdocs.txt'
|
||||
@@ -54,7 +54,6 @@ jobs:
|
||||
run: uv pip install --system -r requirements-mkdocs.txt
|
||||
|
||||
- name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
- name: Build documentation
|
||||
@@ -63,33 +62,6 @@ jobs:
|
||||
- name: Check docs links
|
||||
run: python scripts/check_docs_links.py
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable
|
||||
|
||||
- name: Install config generator dependencies
|
||||
working-directory: consumer-guide
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build config generator
|
||||
working-directory: consumer-guide
|
||||
env:
|
||||
NEXT_BASE_PATH: ${{ steps.pages.outputs.base_path }}/config-generator
|
||||
NEXT_TELEMETRY_DISABLED: '1'
|
||||
run: pnpm build
|
||||
|
||||
- name: Copy config generator into docs site
|
||||
run: |
|
||||
mkdir -p site/config-generator
|
||||
cp -R consumer-guide/out/. site/config-generator/
|
||||
|
||||
- name: Verify config generator asset paths
|
||||
run: grep -Fq "${{ steps.pages.outputs.base_path }}/config-generator/_next/" site/config-generator/index.html
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user