Skip to content

Commit a133430

Browse files
authored
[FEATURE] Add t3docs interlink key (#670)
for links to documentation start page
1 parent b09f0b5 commit a133430

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Documentation/Developer/InterlinkInventories.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ Available default inventories
4141
These inventories can be used by default in any rendered documentation:
4242

4343

44+
* Title: :doc:`t3docs:Index`
45+
46+
Inventory key: :doc:`t3docs <t3docs:Index>`
47+
48+
URL: https://docs.typo3.org/
49+
4450
* Title: :doc:`changelog:Index`
4551

4652
Inventory key: :doc:`changelog <changelog:Index>`

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ enum DefaultInventories: string
66
{
77
// IMPORTANT: If new default inventories are added, please
88
// also add them to `Documentation/Developer/InterlinkInventories.rst`.
9+
case t3docs = 't3docs';
910
case changelog = 'changelog';
1011
case t3coreapi = 't3coreapi';
1112
case t3tca = 't3tca';
@@ -30,6 +31,9 @@ enum DefaultInventories: string
3031
public function getUrl(): string
3132
{
3233
return match ($this) {
34+
// Main doc page, it is only deployed to main
35+
DefaultInventories::t3docs => 'https://docs.typo3.org/',
36+
3337
// Changelog, it is only deployed to main
3438
DefaultInventories::changelog => 'https://docs.typo3.org/c/typo3/cms-core/main/en-us/',
3539

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ <h1>Title<a class="headerlink" href="#title" data-bs-toggle="modal" data-bs-targ
88
<li>t3content</li>
99
<li>t3contribute</li>
1010
<li>t3coreapi</li>
11+
<li>t3docs</li>
1112
<li>t3editors</li>
1213
<li>t3exceptions</li>
1314
<li>t3install</li>

0 commit comments

Comments
 (0)