diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 3a90f16b2..7c79c9255 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -77,6 +77,8 @@ function injectIndexPageIcons() {
a.classList.add("index-download-button");
} else if (href.includes("/intro")) {
a.classList.add("index-docs-button");
+ } else if (href.includes("javadocs")) {
+ a.classList.add("index-javadocs-button")
}
})
}
\ No newline at end of file
diff --git a/docs/.vitepress/theme/style/global.css b/docs/.vitepress/theme/style/global.css
index f4f55eb1e..31136fdcd 100644
--- a/docs/.vitepress/theme/style/global.css
+++ b/docs/.vitepress/theme/style/global.css
@@ -91,6 +91,18 @@ kbd:not(.DocSearch-Button-Key) {
content: url(/images/index/docs-light.svg);
}
+.index-javadocs-button:before {
+ display: block;
+ float: left;
+ width: 18px;
+ height: 18px;
+ padding-top: 5px;
+ margin-left: -4px;
+ margin-right: 6px;
+ /*noinspection CssUnknownTarget*/
+ content: url(/images/index/javadocs-light.svg);
+}
+
.dark {
.tip.custom-block > .danger.custom-block {
background-color: #3e2129;
@@ -105,4 +117,9 @@ kbd:not(.DocSearch-Button-Key) {
/*noinspection CssUnknownTarget*/
content: url(/images/index/docs-dark.svg);
}
+
+ .index-javadocs-button:before {
+ /*noinspection CssUnknownTarget*/
+ content: url(/images/index/javadocs-dark.svg);
+ }
}
\ No newline at end of file
diff --git a/docs/en/index.md b/docs/en/index.md
index 4a5a1cc77..c7e5eaca2 100644
--- a/docs/en/index.md
+++ b/docs/en/index.md
@@ -9,6 +9,9 @@ hero:
- theme: brand
text: Documentation
link: /intro
+ - theme: alt
+ text: Javadocs
+ link: https://javadocs.commandapi.dev/
- theme: alt
text: Latest Release
link: https://github.com/CommandAPI/CommandAPI/releases/latest
diff --git a/docs/public/images/index/javadocs-dark.svg b/docs/public/images/index/javadocs-dark.svg
new file mode 100644
index 000000000..667476046
--- /dev/null
+++ b/docs/public/images/index/javadocs-dark.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/public/images/index/javadocs-light.svg b/docs/public/images/index/javadocs-light.svg
new file mode 100644
index 000000000..a1453dfe0
--- /dev/null
+++ b/docs/public/images/index/javadocs-light.svg
@@ -0,0 +1 @@
+
\ No newline at end of file