Skip to content

Commit d50e20b

Browse files
authored
docs: Replace latest docs with nightly (#1358)
* Update docs nightly Signed-off-by: Charlie Truong <chtruong@nvidia.com> * Add nightly docs publish Signed-off-by: Charlie Truong <chtruong@nvidia.com> --------- Signed-off-by: Charlie Truong <chtruong@nvidia.com>
1 parent 9183cb0 commit d50e20b

File tree

5 files changed

+83
-11
lines changed

5 files changed

+83
-11
lines changed

.github/workflows/release-docs.yml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,70 @@ on:
3636
required: false
3737
type: string
3838
default: ""
39+
update-version-picker:
40+
description: Update version picker.
41+
required: false
42+
type: boolean
43+
default: true
3944
notify-emails:
4045
description: Email addresses to send the notification to. Format as "me@me.com,you@you.com".
4146
required: false
4247
type: string
4348
default: "akoumparouli@nvidia.com"
44-
aws-region:
45-
description: AWS region
49+
github-ref:
50+
description: Github ref to checkout
51+
required: false
52+
type: string
53+
default: ""
54+
workflow_call:
55+
inputs:
56+
dry-run:
57+
description: Whether to run the workflow in dry-run mode
58+
required: false
59+
type: boolean
60+
default: true
61+
publish-as-latest:
62+
description: Publish as Latest stable version.
63+
required: false
64+
type: boolean
65+
default: true
66+
docs-version-override:
67+
description: Docs version if commit is not tagged
4668
required: false
4769
type: string
48-
default: us-east-1
70+
default: ""
71+
update-version-picker:
72+
description: Update version picker.
73+
required: false
74+
type: boolean
75+
default: true
76+
notify-emails:
77+
description: Email addresses to send the notification to. Format as "me@me.com,you@you.com".
78+
required: false
79+
type: string
80+
github-ref:
81+
description: Github ref to checkout
82+
required: false
83+
type: string
84+
default: ""
4985

5086
jobs:
5187
build-docs:
5288
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_build_docs.yml@v0.67.0
89+
with:
90+
ref: ${{ inputs.github-ref }}
5391

5492
publish-docs:
5593
runs-on: ubuntu-latest
5694
needs: [build-docs]
5795
env:
5896
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || false }}
5997
NOTIFY_EMAILS: ${{ github.event_name == 'workflow_dispatch' && inputs.notify-emails || 'akoumparouli@nvidia.com' }}
60-
AWS_REGION: ${{ github.event_name == 'workflow_dispatch' && inputs.aws-region || 'us-east-1' }}
6198
steps:
6299
- uses: actions/checkout@v6
63100
with:
64101
repository: NVIDIA-NeMo/FW-CI-templates
65-
ref: v0.72.0
102+
ref: v0.74.0
66103
path: FW-CI-templates
67104

68105
- uses: ./FW-CI-templates/.github/actions/publish-docs
@@ -78,6 +115,7 @@ jobs:
78115
emails-csv: ${{ env.NOTIFY_EMAILS }}
79116
overwrite-latest-on-tag: ${{ inputs.publish-as-latest }}
80117
docs-version-override: ${{ inputs.docs-version-override }}
118+
update-version-picker: ${{ inputs.update-version-picker }}
81119
run-on-version-tag-only: ${{ github.ref_name != 'main' }}
82120
request-name: automodel-publish-docs-${{ github.run_id }}
83121
aws-region: ${{ vars.DOCS_AWS_REGION }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright (c) 2026, NVIDIA CORPORATION.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Release Nightly Docs
16+
17+
on:
18+
schedule:
19+
- cron: "0 10 * * *"
20+
21+
jobs:
22+
call-release-docs:
23+
uses: ./.github/workflows/release-docs.yml
24+
with:
25+
dry-run: false
26+
publish-as-latest: false
27+
docs-version-override: "nightly"
28+
update-version-picker: false
29+
secrets: inherit

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
# pylint: skip-file
2828

2929
project = "NeMo-AutoModel"
30-
copyright = "2025, NVIDIA Corporation"
30+
copyright = "2026, NVIDIA Corporation"
3131
author = "NVIDIA Corporation"
32-
release = "latest"
32+
release = "nightly"
3333

3434
# -- General configuration ---------------------------------------------------
3535
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

docs/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name": "nemo-automodel", "version": "latest"}
1+
{"name": "nemo-automodel", "version": "nightly"}

docs/versions1.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[
22
{
3-
"version": "latest",
3+
"version": "nightly",
4+
"url": "https://docs.nvidia.com/nemo/automodel/nightly/"
5+
},
6+
{
7+
"name": "0.3.0 (latest)",
8+
"version": "0.3.0",
49
"url": "https://docs.nvidia.com/nemo/automodel/latest/"
510
},
611
{
@@ -10,5 +15,5 @@
1015
{
1116
"version": "0.1.0",
1217
"url": "https://docs.nvidia.com/nemo/automodel/0.1.0/"
13-
},
14-
]
18+
}
19+
]

0 commit comments

Comments
 (0)