Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
})
}
17 changes: 17 additions & 0 deletions docs/.vitepress/theme/style/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}
3 changes: 3 additions & 0 deletions docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/public/images/index/javadocs-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/public/images/index/javadocs-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.