Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update versions in docs #459

Merged
merged 3 commits into from
Jan 23, 2024
Merged
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
2 changes: 1 addition & 1 deletion docs/adminguide/src/site/_data/sidebars/admin_sidebar.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
entries:
- title: Sidebar
product: Administrator's Guide
version: 5.4
version: 5.5
folders:
- title:
output: pdf
Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/src/site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
theme: unidata-jekyll-theme

# this will appear in an HTML meta tag, sidebar, and perhaps elsewhere
docset_version: 5.4
docset_version: 5.5

# this appears on the top navigation bar next to the home button
topnav_title: THREDDS Data Server (TDS)
Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/src/site/_data/sidebars/dev_sidebar.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
entries:
- title: Sidebar
product: TDS Developer's Guide
version: 5.4
version: 5.5
folders:

- title:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
entries:
- title: Sidebar
product: TDS Tutorial And Reference Documentation
version: 5.4
version: 5.5
folders:

- title:
Expand Down
2 changes: 1 addition & 1 deletion docs/shared/src/site/_data/topnav.yml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ topnav_dropdowns:
- title: GitHub
external_url: https://github.com/Unidata/tds
- title: Documentation
external_url: https://docs.unidata.ucar.edu/tds/5.4/userguide/index.html
external_url: https://docs.unidata.ucar.edu/tds/current/userguide/index.html

- title: Rosetta
folderitems:
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/src/site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
theme: unidata-jekyll-theme

# this will appear in an HTML meta tag, sidebar, and perhaps elsewhere
docset_version: 5.4
docset_version: 5.5

# this appears on the top navigation bar next to the home button
topnav_title: THREDDS Data Server (TDS)
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/src/site/_data/sidebars/user_sidebar.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
entries:
- title: Sidebar
product: TDS User's Guide
version: 5.4
version: 5.5
folders:

- title:
Expand Down
19 changes: 19 additions & 0 deletions gradle/root/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,25 @@ def publishReleaseInfoAndLatestTask = tasks.register('publishReleaseInfoAndLates

publish.dependsOn publishReleaseInfoAndLatestTask

def publishVersionInfoTask = tasks.register('publishVersionInfo', PublishToRawRepoTask) {
group = 'publishing'
description = 'Publish version-info.json to Nexus docs.'
host = 'https://artifacts.unidata.ucar.edu/'
repoName = 'docs-tds'

publishSrc = new File(rootProject.getProjectDir(), "project-files/docs/")

onlyIf {
// Will be evaluated at task execution time, not during configuration.
// Fails the build if the specified properties haven't been provided.
username = getPropertyOrFailBuild NEXUS_USERNAME_KEY
password = getPropertyOrFailBuild NEXUS_PASSWORD_KEY
return true
}
}

publish.dependsOn publishVersionInfoTask

// The "publish" tasks require credentials for our Nexus server, which they look for in Gradle properties.
// If those properties (i.e. NEXUS_USERNAME_KEY and NEXUS_PASSWORD_KEY) haven't been provided, the build will fail.
// Therefore, we only want to configure credentials when a "publish" task is part of the execution plan. Otherwise,
Expand Down
30 changes: 30 additions & 0 deletions project-files/docs/version-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"package" : "tds",
"packageName" : "THREDDS Data Server",
"releases" : [
{
"version": "5.4",
"include": "1",
"releaseDate": "2022-07-01",
"status": "release",
"docsets": {
"userguide": {
"baseUrl": "https://docs.unidata.ucar.edu/tds/5.4/userguide/index.html",
"docsetName": "TDS User's Guide"
}
}
},
{
"version": "5.5",
"include": "1",
"releaseDate": "2024-01-23",
"status": "snapshot",
"docsets": {
"userguide": {
"baseUrl": "https://docs.unidata.ucar.edu/tds/5.5/userguide/index.html",
"docsetName": "TDS User's Guide"
}
}
}
]
}
Loading