Skip to content

Commit

Permalink
DOCS-1850 Make hideTOC conditional and change it to a YAML key
Browse files Browse the repository at this point in the history
  • Loading branch information
mig281 committed Nov 3, 2023
1 parent 5d40c0d commit 57c32fd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ title: "Qumulo Documentation"
summary: "Welcome to the Qumulo Documentation Portal. This repository uses <a href='https://www.writethedocs.org/guide/docs-as-code/'>docs-as-code principles</a> to provide guidance about working with Qumulo."
permalink: index.html
breadcrumbs: exclude
hideTOC: true
---

{{site.hideTOC}}

To get started, choose one of the following guides.


Expand Down
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ plugins:
- jekyll-redirect-from

# Global include variables
hideTOC: <style>div#toc{display:none;}</style>
loginRequired: <span class="emoji">🔒</span>

nexusDownloads: For downloads, release notes, and upgrade paths for on-premises and cloud releases of Qumulo Core, see <a target="_blank" href="https://nexus.qumulo.com/downloads">Qumulo Nexus</a>
Expand Down
10 changes: 10 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,15 @@ <h1 class="post-title-main">{{ page.title }}</h1>

{% include in_page_toc.html %}

{% if page.hideTOC %}
<script>
document.addEventListener('DOMContentLoaded', function() {
var styleElement = document.createElement('style');
styleElement.innerHTML = 'div#toc { display: none; }';
document.head.appendChild(styleElement);
});
</script>
{% endif %}

</div>

3 changes: 1 addition & 2 deletions administrator-guide/upgrading-qumulo-core/mode-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ redirect_from:
- /administrator-guide/upgrades/mode-reference.html
sidebar: administrator_guide_sidebar
keywords: update, upgrade, instant, instant_software_upgrade, platform, platform_upgrade
hideTOC: true
---

{{site.hideTOC}}

* An [_instant software upgrade_](instant-software-platform.html#instant-software-upgrade) requires restarting only the container on your nodes and has a downtime of less than 30 seconds without disruption to the operation of the cluster.
* A [_platform upgrade_](instant-software-platform.html#platform-upgrade) requires either a complete reboot (rebooting all nodes in your cluster at the same time) or a rolling reboot (rebooting the nodes in your cluster one at a time).
* A <em>quarterly upgrade</em> aggregates all improvements and fixes since the last quarterly upgrade. The version number of a quarterly upgrade ends in `.0`.
Expand Down

0 comments on commit 57c32fd

Please sign in to comment.