Skip to content

Commit

Permalink
Merge pull request Unidata#537 from oxelson/maint-5.x
Browse files Browse the repository at this point in the history
ncss documentation --> tds docs
  • Loading branch information
lesserwhirls authored Oct 23, 2020
2 parents 8eca182 + c71095d commit a2975e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/src/public/userguide/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ output: web
docset_version: 5.4
# this will appear in an HTML meta tag, sidebar, and perhaps elsewhere

tds_docset_version: 5.0
# this will appear in the sidebar and doc pages

topnav_title: netCDF-Java
# this appears on the top navigation bar next to the home button

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ entries:
output: web, pdf

- title: NetCDF Subset Service
url: subset_service.html
external_url: https://docs.unidata.ucar.edu/tds/current/userguide/netcdf_subset_service_ref.html
output: web, pdf

- title: netCDF C Library
Expand Down
6 changes: 4 additions & 2 deletions docs/src/public/userguide/_includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% include custom/sidebarconfigs.html %}
{% capture tds_doc_version %}{{ "/tds/" | append: site.tds_docset_version }}{% endcapture %}
{% capture tds_doc_replace %}{{ tds_doc_version | append: "/"}}{% endcapture %}

<ul id="mysidebar" class="nav">
<li class="sidebarTitle">{{sidebar[0].product}}</li>
Expand All @@ -11,7 +13,7 @@
{% for folderitem in folder.folderitems %}
{% if folderitem.output contains "web" %}
{% if folderitem.external_url %}
<li><a href="{{folderitem.external_url}}" target="_blank">{{folderitem.title}}</a></li>
<li><a href="{{folderitem.external_url | replace: "/tds/current/", tds_doc_replace }}" target="_blank">{{folderitem.title}}</a></li>
{% elsif page.url == folderitem.url %}
<li class="active"><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
{% else %}
Expand All @@ -25,7 +27,7 @@
{% for subfolderitem in subfolders.subfolderitems %}
{% if subfolderitem.output contains "web" %}
{% if subfolderitem.external_url %}
<li><a href="{{subfolderitem.external_url}}" target="_blank">{{subfolderitem.title}}</a></li>
<li><a href="{{subfolderitem.external_url | replace: "/tds/current/", tds_doc_replace }}" target="_blank">{{subfolderitem.title}}</a></li>
{% elsif page.url == subfolderitem.url %}
<li class="active"><a href="{{subfolderitem.url | remove: "/"}}">{{subfolderitem.title}}</a></li>
{% else %}
Expand Down

0 comments on commit a2975e0

Please sign in to comment.