Skip to content

Commit

Permalink
Merge pull request #2379 from truenas/PD762_master_prep
Browse files Browse the repository at this point in the history
PD-762: master branch changes for TC 3.0 version branch publish
  • Loading branch information
Mrt134 committed Dec 27, 2023
2 parents d894e65 + 6df3159 commit 50738d2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
5 changes: 0 additions & 5 deletions content/TrueCommand/TCGettingStarted/TCReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ aliases:
- /releasenotes/truecommand/2.1.1/
- /releasenotes/truecommand/2.1/
- /truecommand/tcreleasenotes/
- /truecommand/3.0/tcgettingstarted/tcreleasenotes/
---

<!-- Remove the TC 3.0 release notes alias when the version branch publishes with 3.0.0 -->

## TrueCommand 3.0

TrueCommand 3.0 brings the latest feature development, stability fixes, and software compatibility updates together in a major version that is more functional and performant than ever before.
Here are the major features of this release:

Expand Down
9 changes: 7 additions & 2 deletions layouts/partials/docs-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@
versionUpdated = true;
} else if (path.includes('/truecommand/')) {
productButton.innerHTML = 'TrueCommand <i class="fa fa-angle-down"></i>';
if (path.includes('/2.3/')) {
if (path.includes('/3.0/')) {
versionButton.textContent = '3.0';
} else if (path.includes('/2.3/')) {
versionButton.textContent = '2.3';
} else {
versionButton.textContent = 'Nightly';
Expand Down Expand Up @@ -133,6 +135,7 @@
} else if (product === 'TrueCommand') {
versionDropdown.innerHTML = `
<div class="truenas-dropdown-item" onclick="selectVersion('tc-nightly')" id="tc-nightly">Nightly</div>
<div class="truenas-dropdown-item" onclick="selectVersion('3.0')" id="30">3.0</div>
<div class="truenas-dropdown-item" onclick="selectVersion('2.3')" id="23">2.3</div>
`;
}
Expand Down Expand Up @@ -164,6 +167,8 @@
relative_url = 'scale/';
} else if (version === 'tc-nightly') {
relative_url = 'truecommand/';
} else if (version === '3.0') {
relative_url = 'truecommand/3.0/';
} else if (version === '2.3') {
relative_url = 'truecommand/2.3/';
} else {
Expand Down Expand Up @@ -234,7 +239,7 @@
versionDropdown.style.display = 'none';
} else if (productButton.textContent === 'TrueCommand ') {
selectProduct('TrueCommand');
versionButton.innerHTML = currentPath.includes('/2.3/') ? '2.3 <i class="fa fa-angle-down"></i>' : 'Nightly <i class="fa fa-angle-down"></i>';
versionButton.innerHTML = currentPath.includes('/3.0/') ? '3.0 <i class="fa fa-angle-down"></i>': currentPath.includes('/2.3/') ? '2.3 <i class="fa fa-angle-down"></i>' : 'Nightly <i class="fa fa-angle-down"></i>';
versionDropdown.style.display = 'none';
}
}
Expand Down
18 changes: 8 additions & 10 deletions layouts/shortcodes/section-cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,18 @@
<div class="section-tab" id="tc-next-tab">Next</div>
</div>
<div class="section-tab-content" id="tc-previous">
<a href="https://www.truenas.com/docs/files/TrueCommand2.0Documentation.pdf">2.0 Documentation (Archived)</a>
<br><a href="https://www.truenas.com/docs/_includes/tcreleasenotes/2.0/">2.0 Release Notes (Archived)</a>
</div>
<div class="section-tab-content" id="tc-stable" style="display:none;">
<a href="https://www.truenas.com/docs/truecommand/2.3/">2.3 Home</a>
<br><a href="/truecommand/2.3/tcgettingstarted/tcreleasenotes/">2.3 Release Notes</a>
<a href="/truecommand/2.3/tcgettingstarted/tcreleasenotes/">2.3 Release Notes</a>
<br><a href="/truecommand/2.3/tcgettingstarted/">Getting Started</a>
<br><a href="/truecommand/2.3/administration/">Administration</a>
</div>
<div class="section-tab-content" id="tc-stable" style="display:none;">
<a href="/truecommand/3.0/tcgettingstarted/tcreleasenotes/">3.0 Release Notes</a>
<br><a href="/truecommand/3.0/tcgettingstarted/">Getting Started</a>
<br><a href="/truecommand/3.0/userguide/">User Guide</a>
<br><a href="/truecommand/3.0/adminguide/">Administrator Guide</a>
</div>
<div class="section-tab-content" id="tc-next" style="display:none;">
<a href="/truecommand/tcgettingstarted/tcreleasenotes/">3.0.0 Release Notes</a>
<br><a href="/truecommand/tcgettingstarted/">Getting Started</a>
<br><a href="/truecommand/userguide/">User Guide</a>
<br><a href="/truecommand/adminguide/">Administrator Guide</a>
<a href="/truecommand/tcgettingstarted/tcreleasenotes/">Unstable Development Release Notes</a>
</div>
</div>
<!-- Systems Box -->
Expand Down

0 comments on commit 50738d2

Please sign in to comment.