Use currentVersion instead of lastVersion in docusaurus (#400)
Some checks are pending
Deploy to GitHub Pages / deploy (push) Waiting to run

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Co-authored-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
Christian Mesh 2025-12-10 10:02:28 -05:00 committed by GitHub
parent a7ead73c07
commit 84f7bf32b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 17 additions and 10 deletions

1
docs Symbolic link
View file

@ -0,0 +1 @@
opentofu-repo/v1.11/website/docs/

View file

@ -100,23 +100,23 @@ const config: Config = {
customCss: [require.resolve("./src/css/custom.css")],
},
docs: {
includeCurrentVersion: false,
lastVersion: "v1.11",
includeCurrentVersion: true,
docVersionRootComponent: "@theme/DocVersionRoot",
versions: {
"v1.6": {
label: "1.6.x",
path: "v1.6",
banner: "unmaintained",
},
"v1.7": {
label: "1.7.x",
path: "v1.7",
banner: "none",
banner: "unmaintained",
},
"v1.8": {
label: "1.8.x",
path: "v1.8",
banner: "none",
banner: "unmaintained",
},
"v1.9": {
label: "1.9.x",
@ -129,8 +129,14 @@ const config: Config = {
banner: "none",
},
"v1.11": {
label: "1.11.x",
path: "v1.11",
banner: "none",
},
current: {
label: "1.11.x",
path: "",
banner: "none",
},
main: {
label: "Development",
@ -217,7 +223,7 @@ const config: Config = {
announcementBar: {
id: "opentofu-1-11-ga",
content:
'<a href="/blog/opentofu-1-11/" class="announcement-bar-link"><div class="announcement-bar-content">🎉 OpenTofu 1.11.0 has arrived! <span class="announcement-arrow">→</span></div></a>',
'<a href="/blog/opentofu-1-11/" class="announcement-bar-link"><div class="announcement-bar-content">🎉 OpenTofu 1.11.0 has arrived! <span class="announcement-arrow">→</span></div></a>',
backgroundColor: "#00000000",
isCloseable: false,
},
@ -273,7 +279,7 @@ const config: Config = {
items: [
{
label: "v1.11.x",
href: "/docs/",
href: "/docs/v1.11/",
},
{
label: "v1.10.x",

@ -1 +1 @@
Subproject commit 1907ce104cbd6ec9a60e347b973b0f262eb4d43b
Subproject commit b2c6b935e06bfca47662792e7f71a7df8a6a36ad

@ -1 +1 @@
Subproject commit 988f7c58227372d5d30de1deecd82a3e54106cb1
Subproject commit 0302fd639143ed37028829d1599804c3b7c2ce20

@ -1 +1 @@
Subproject commit e71a21dbc405bd136067c0a41e8ee45600561774
Subproject commit 8576a00c8042725a6195146e5c62c2300c6bee92

@ -1 +1 @@
Subproject commit d2c55192a81540abf7575ac2941b90143b29165a
Subproject commit 3d3dc740e1216403331d70b040f12a10e9486e02