diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9b8e4f7d308..424c77625f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -118,6 +118,12 @@ cp -avR "${BACKUP_DIR}/api" _site In a browser, navigate to the URL shown in the `jekyll serve` output (probably something like `http://127.0.0.1:4000/`) to see the rendered docs. +If the hot reloading in `jekyll serve` again deletes all the files in `api/`, just copy them in again. + +```shell +cp -avR "${BACKUP_DIR}/api" _site +``` + ## PR submissions Once you have code changes, submit a PR to the docs site. Netlify will generate diff --git a/_includes/api-docs.html b/_includes/api-docs.html index 6fc742ce195..bfa66cdae21 100644 --- a/_includes/api-docs.html +++ b/_includes/api-docs.html @@ -11,7 +11,7 @@ #### DOCS {% for version_name in versions -%} {%- if api.version-overrides -%} **[{{ version_name }} ({{ api.version-overrides[version_name] }})](/api/{{ api.path }}/{{ version_name }})** - {%- elsif api.name | downcase contains "ucxx" -%} + {%- elsif api.name == "libucxx" or api.name == "UCXX" -%} **[{{ version_name }} ({{ site.data.releases[version_name].ucxx_version }})](/api/{{ api.path }}/{{ version_name }})** {%- else -%} **[{{ version_name }} ({{ site.data.releases[version_name].version }})](/api/{{ api.path }}/{{ version_name }})**