Skip to content
Draft
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
89 changes: 89 additions & 0 deletions .github/workflows/deploy-docs-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages (next)

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're

Check warning on line 6 in .github/workflows/deploy-docs-next.yml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

You might want to consider an alternative to the term "master". Possibilities might include: "active", "central", "initiator", "leader", "main", "orchestrator", "parent", "primary", "server". (This check uses pattern-matching and may therefore be incorrect. To improve the patterns or to make other suggestions, please open an issue or pull-request at https://github.com/ietf/terminology/issues.)
Raw output
/\bmaster\w*\b/gi
# using the `master` branch as the default branch.

Check warning on line 7 in .github/workflows/deploy-docs-next.yml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

You might want to consider an alternative to the term "master". Possibilities might include: "active", "central", "initiator", "leader", "main", "orchestrator", "parent", "primary", "server". (This check uses pattern-matching and may therefore be incorrect. To improve the patterns or to make other suggestions, please open an issue or pull-request at https://github.com/ietf/terminology/issues.)
Raw output
/\bmaster\w*\b/gi
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
DOC_VERSION: v4
DOC_ALIAS: stable
GIT_COMMITTER_NAME: "Konrad Kost"
GIT_COMMITTER_EMAIL: "xxxx"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci
- name: Install documentation dependencies
run: cd packages/documentation && npm ci
- name: Fetch gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: Set /site ownership to current user
run: |
mkdir site
sudo chown -R $(id -u):$(id -g) ./site
- name: generate CLI doc
run: npm run generate-cli-doc
- name: generate next config
run: npm run replace-base-path-next
- name: Build jsdoc
run: npm run jsdoc-generate
- name: Build vitepress build
run: npm run docs:build
- name: Build Schema
run: |
npm run schema-generate
npm run schema-workspace-generate
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Copy the additional resources to gh-pages
run: |
rm -rf ./gh-pages/schema
cp -R ./site/schema ./gh-pages/
rm -rf ./gh-pages/next/
cp -R ./packages/documentation/dist ./gh-pages/next/
cp ./scripts/resources/custom404.html ./gh-pages/404.html
- name: Publish Docs
run: |
cd ./gh-pages
git config --local user.email $GIT_COMMITTER_EMAIL
git config --local user.name $GIT_COMMITTER_NAME
git add .
git commit -m "Updating supplemental resources for ${DOC_VERSION} documentation deployment"
git push
89 changes: 89 additions & 0 deletions .github/workflows/deploy-docs-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages (stable)

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're

Check warning on line 6 in .github/workflows/deploy-docs-stable.yml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

You might want to consider an alternative to the term "master". Possibilities might include: "active", "central", "initiator", "leader", "main", "orchestrator", "parent", "primary", "server". (This check uses pattern-matching and may therefore be incorrect. To improve the patterns or to make other suggestions, please open an issue or pull-request at https://github.com/ietf/terminology/issues.)
Raw output
/\bmaster\w*\b/gi
# using the `master` branch as the default branch.

Check warning on line 7 in .github/workflows/deploy-docs-stable.yml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

You might want to consider an alternative to the term "master". Possibilities might include: "active", "central", "initiator", "leader", "main", "orchestrator", "parent", "primary", "server". (This check uses pattern-matching and may therefore be incorrect. To improve the patterns or to make other suggestions, please open an issue or pull-request at https://github.com/ietf/terminology/issues.)
Raw output
/\bmaster\w*\b/gi
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
DOC_VERSION: v4
DOC_ALIAS: stable
GIT_COMMITTER_NAME: "Konrad Kost"
GIT_COMMITTER_EMAIL: "xxxx"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci
- name: Install documentation dependencies
run: cd packages/documentation && npm ci
- name: Fetch gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: Set /site ownership to current user
run: |
mkdir site
sudo chown -R $(id -u):$(id -g) ./site
- name: generate CLI doc
run: npm run generate-cli-doc
- name: generate stable Config
run: npm run replace-base-path-stable
- name: Build jsdoc
run: npm run jsdoc-generate
- name: Build vitepress build
run: npm run docs:build
- name: Build Schema
run: |
npm run schema-generate
npm run schema-workspace-generate
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Copy the additional resources to gh-pages
run: |
rm -rf ./gh-pages/schema
cp -R ./site/schema ./gh-pages/
rm -rf ./gh-pages/stable/
cp -R ./packages/documentation/dist ./gh-pages/stable/
cp ./scripts/resources/custom404.html ./gh-pages/404.html
- name: Publish Docs
run: |
cd ./gh-pages
git config --local user.email $GIT_COMMITTER_EMAIL
git config --local user.name $GIT_COMMITTER_NAME
git add .
git commit -m "Updating supplemental resources for ${DOC_VERSION} documentation deployment"
git push
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,11 @@ jsdocs/
site/

# Custom files
docs/pages/CLI.md
# Documentation
packages/documentation/docs/pages/CLI.md
packages/documentation/docs/.vitepress/dist
packages/documentation/docs/.vitepress/cache
packages/documentation/.vitepress/dist
packages/documentation/.vitepress/cache
packages/documentation/dist

3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default [
// to add to common config
ignores: [
"**/site/",
"packages/"
"packages/",
".vitepress/"
]
},
...eslintCommonConfig, // Load common ESLint config
Expand Down
92 changes: 0 additions & 92 deletions mkdocs.yml

This file was deleted.

58 changes: 0 additions & 58 deletions overrides/partials/footer.html

This file was deleted.

Loading
Loading