Skip to content

Commit

Permalink
Merge pull request #459 from tdrwenski/update-version-info-docs
Browse files Browse the repository at this point in the history
Update versions in docs
  • Loading branch information
tdrwenski authored Jan 23, 2024
2 parents 0a6d663 + 0caee5a commit 7c552dc
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 7 deletions.
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"
}
}
}
]
}

0 comments on commit 7c552dc

Please sign in to comment.