2021-08-17 17:19:08 -04:00
|
|
|
---
|
|
|
|
permalink: /assets/js/version-selector.js
|
|
|
|
---
|
|
|
|
(() => {
|
2022-05-03 14:31:13 -04:00
|
|
|
{% if site.data.versions.all contains site.data.versions.current %}
|
|
|
|
{% assign all_versions = site.data.versions.all %}
|
|
|
|
{% else %}
|
|
|
|
{% assign current_array = site.data.versions.all | split: '!' %}
|
|
|
|
{% assign all_versions = current_array | concat: site.data.versions.all %}
|
|
|
|
{% endif %}
|
2021-08-17 17:19:08 -04:00
|
|
|
const DOC_VERSIONS = {{ all_versions | jsonify }};
|
2023-05-04 17:36:13 -04:00
|
|
|
const DOC_VERSIONS_ARCHIVED = {{ site.data.versions.archived | jsonify }};
|
2022-05-03 14:31:13 -04:00
|
|
|
{% if site.data.versions.latest %}
|
|
|
|
const DOC_VERSION_LATEST = {{ site.data.versions.latest | jsonify }};
|
|
|
|
{% else %}
|
|
|
|
const DOC_VERSION_LATEST = {{ site.data.versions.current | jsonify }};
|
|
|
|
{% endif %}
|
2021-08-17 17:19:08 -04:00
|
|
|
{% include_relative _version-selector.js %}
|
2023-05-04 17:36:13 -04:00
|
|
|
})();
|