Skip to content

Commit 57302bd

Browse files
authored
Merge pull request #37 from AdamG100/master
Enable docs versioning
2 parents a820a8d + b4f3142 commit 57302bd

File tree

136 files changed

+2855
-1813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+2855
-1813
lines changed

docusaurus.config.js

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ const config = {
1414
organizationName: "TotalControlAdmin",
1515
projectName: "tcadmin-docs",
1616
onBrokenLinks: "throw",
17-
onBrokenMarkdownLinks: "warn",
1817
onBrokenAnchors: "ignore",
1918

19+
markdown: {
20+
hooks: {
21+
onBrokenMarkdownLinks: "warn",
22+
},
23+
},
24+
2025
i18n: {
2126
defaultLocale: "en",
2227
locales: ["en"],
@@ -32,6 +37,18 @@ const config = {
3237
showLastUpdateTime: true,
3338
editUrl:
3439
"https://github.com/TotalControlAdmin/tcadmin-docs/blob/master/",
40+
lastVersion: "2",
41+
onlyIncludeVersions: ["2", "3"],
42+
includeCurrentVersion: false,
43+
versions: {
44+
"2": {
45+
label: "V2",
46+
},
47+
"3": {
48+
label: "V3",
49+
banner: "none",
50+
},
51+
},
3552
},
3653
blog: false,
3754
theme: {
@@ -73,36 +90,39 @@ const config = {
7390
position: "left",
7491
label: "Documentation",
7592
},
93+
{
94+
type: "docsVersionDropdown",
95+
position: "left",
96+
},
7697
{
7798
href: "https://github.com/TotalControlAdmin/tcadmin-docs",
7899
position: "right",
79-
80-
className: "header-github-link", // Add custom classes for styling icons
100+
className: "header-github-link",
81101
"aria-label": "GitHub repository",
82102
},
83103
{
84104
href: "https://discord.com/invite/ptN2pGf",
85105
position: "right",
86-
87106
className: "header-discord-link",
107+
"aria-label": "Discord",
88108
},
89109
{
90110
href: "https://www.tcadmin.com/",
91111
position: "right",
92-
93112
className: "header-website-link",
113+
"aria-label": "TCAdmin Website",
94114
},
95115
{
96116
href: "https://clients.tcadmin.com/billing/clientarea.php",
97117
position: "right",
98-
99118
className: "header-billing-link",
119+
"aria-label": "Client Area",
100120
},
101121
{
102122
href: "https://community.tcadmin.com",
103123
position: "right",
104-
105124
className: "header-forum-link",
125+
"aria-label": "Community Forum",
106126
},
107127
],
108128
},

0 commit comments

Comments
 (0)