Skip to content

docs(v0.6.x): remove llm-api-gateway and llm-request-router from mani… #80

docs(v0.6.x): remove llm-api-gateway and llm-request-router from mani…

docs(v0.6.x): remove llm-api-gateway and llm-request-router from mani… #80

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Publishes the Fern documentation site on push to main or manual dispatch.
#
# NVCF manages doc versions as committed deep copies under fern/versions/
# and docs/v*/. Version registration, pruning, and tag extraction are handled
# manually — this workflow only publishes whatever is on main.
#
# Required configuration:
# - Organization secret: DOCS_FERN_TOKEN (from `fern token` for the nvidia Fern org)
name: Publish Fern Docs
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'fern/**'
- '.github/workflows/publish-fern-docs.yml'
workflow_dispatch: {}
permissions:
contents: read
concurrency:
group: fern-publish
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
- name: Install Fern CLI
run: |
set -euo pipefail
VERSION=$(jq -r .version fern/fern.config.json)
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9.]+)?$ ]]; then
echo "::error::fern.config.json .version '$VERSION' is not a valid semver"
exit 1
fi
npm install -g "fern-api@${VERSION}"
- name: Publish docs
env:
FERN_TOKEN: ${{ secrets.DOCS_FERN_TOKEN }}
working-directory: ./fern
run: |
set -o pipefail
fern generate --docs 2>&1 | tee /tmp/fern-output.log
URL=$(grep -oP 'Published docs to \K.*(?= \()' /tmp/fern-output.log || true)
if [ -n "$URL" ]; then
echo "### Published: [$URL]($URL)" >> "$GITHUB_STEP_SUMMARY"
fi