Skip to content

Commit 114357a

Browse files
authored
[TASK] Add "t3upgrade" key to the default inventories (#397)
The `t3install` references the "Upgrade Guide" which is semantically wrong. Therefore, the `t3upgrade` key has been introduced. As both are available in the wild, both are valid, but `t3install` should be considered legacy.
1 parent 577f862 commit 114357a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/typo3-version-handling/src/DefaultInventories.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ enum DefaultInventories: string
1111
case t3tsref = 't3tsref';
1212
case t3viewhelper = 't3viewhelper';
1313
case t3editors = 't3editors';
14-
case t3install = 't3install';
14+
case t3install = 't3install'; // for legacy reasons
15+
case t3upgrade = 't3upgrade';
1516
case t3sitepackage = 't3sitepackage';
1617
case t3start = 't3start';
1718
case t3translate = 't3translate';
@@ -37,6 +38,7 @@ public function getUrl(): string
3738
// Official Core Tutorials and Guides
3839
DefaultInventories::t3editors => 'https://docs.typo3.org/m/typo3/tutorial-editors/{typo3_version}/en-us/',
3940
DefaultInventories::t3install => 'https://docs.typo3.org/m/typo3/guide-installation/{typo3_version}/en-us/',
41+
DefaultInventories::t3upgrade => 'https://docs.typo3.org/m/typo3/guide-installation/{typo3_version}/en-us/',
4042
DefaultInventories::t3sitepackage => 'https://docs.typo3.org/m/typo3/tutorial-sitepackage/{typo3_version}/en-us/',
4143
DefaultInventories::t3start => 'https://docs.typo3.org/m/typo3/tutorial-getting-started/{typo3_version}/en-us/',
4244
DefaultInventories::t3translate => 'https://docs.typo3.org/m/typo3/guide-frontendlocalization/{typo3_version}/en-us/',

tests/Integration/tests/guides-inventories/expected/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h1>Title<a class="headerlink" href="#title" data-bs-toggle="modal" data-bs-targ
1818
<li>t3ts45</li>
1919
<li>t3tsconfig</li>
2020
<li>t3tsref</li>
21+
<li>t3upgrade</li>
2122
<li>t3viewhelper</li>
2223
</ul>
2324

0 commit comments

Comments
 (0)