Skip to content

feat: external URL improvements #598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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
12 changes: 12 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import starlight from "@astrojs/starlight";
import svelte from "@astrojs/svelte";
import d2 from "astro-d2";
import { defineConfig } from "astro/config";
import remarkLint from "remark-lint";
import remarkLintNoDeadUrls from "remark-lint-no-dead-urls";
import starlightLinksValidator from "starlight-links-validator";
import starlightSidebarTopics from "starlight-sidebar-topics";
import codeConstantsPlugin from "./src/utils/remark/code_const";
Expand Down Expand Up @@ -437,6 +439,16 @@ export default defineConfig({
},
},
],
[remarkLint, {}],
[
remarkLintNoDeadUrls,
{
deadOrAliveOptions: {
checkAnchor: false,
findUrls: false,
},
},
],
],
},
});
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"preview": "astro preview",
"astro": "astro",
"format": "prettier . --write",
"format:check": "prettier . --check"
"format:check": "prettier . --check",
"check": "remark --quiet --frail --use remark-lint --use remark-lint-no-dead-urls src"
},
"dependencies": {
"@astrojs/markdown-remark": "^6.3.1",
Expand All @@ -35,7 +36,10 @@
"prettier": "3.5.3",
"prettier-plugin-astro": "0.14.1",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-svelte": "^3.3.3"
"prettier-plugin-svelte": "^3.3.3",
"remark-cli": "^12.0.1",
"remark-lint": "^10.0.1",
"remark-lint-no-dead-urls": "^2.0.1"
},
"engines": {
"node": "22.x"
Expand Down
1,257 changes: 1,255 additions & 2 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import LinkCard from "/src/components/LinkCard.astro";
<LinkCard title="Waterfall" href="/waterfall" destructive icon="waterfall">
A discontinued BungeeCord proxy fork that aimed to improve performance and stability.
</LinkCard>
<LinkCard title="Adventure" href="https://docs.advntr.dev/" icon="adventure">
<LinkCard title="Adventure" href="https://docs.advntr.devs/" icon="adventure">
A Java library for server-controllable user interface elements in Minecraft: Java Edition.
</LinkCard>
<LinkCard title="Miscellaneous" href="/misc" icon="random">
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/misc/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ Reach out for support, or contact us on our forums.

- [Forums](https://forums.papermc.io)

## Twitter
## Twitter/X

We often tweet out version release notes, update notices, and other information via our Twitter
page.

- [@PaperPowered](https://twitter.com/PaperPowered)
- [@PaperPowered](https://x.com/PaperPowered)

You should not DM or @ this account for support. It is not checked as regularly as the above
locations.
2 changes: 1 addition & 1 deletion src/content/docs/paper/dev/api/component-api/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ representations in the legacy string format.
Representing text as components is now the supported way of representing text for Paper and Velocity. They are used
for almost all aspects of text being displayed to clients. Text like item names, lore, bossbars, team prefixes and
suffixes, custom names, and much more all support components in respective APIs.
[Mojang has stated](https://bugs.mojang.com/browse/MC-190605?focusedId=993040&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-993040)
[Mojang has stated](https://bugs-legacy.mojang.com/browse/MC-190605?focusedId=993040&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-993040)
that client support for the legacy format with `§` will be removed in the future.


Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/paper/dev/api/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: paper/dev/recipes
Recipes are a way to define a way to craft a particular item. They are defined by a plugin or
datapack, however we are only going to cover the plugin side of things here.

## [`ShapedRecipe`](jd:paper:org.bukkit.inventory.ShapedRecipe)
## [`ShapedRecipe`](jd:paper:org.bukkit.inventory.ShapedRecipeBROKERN)

A shaped recipe is a recipe that requires a specific pattern of items in the crafting grid to craft an item.
These are created using a pattern string and a map of characters to items. The pattern strings are 3,
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/paper/dev/misc/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ dependencies {

:::caution

The Hikari library is not bundled with Paper, so you will need to shade/relocate it. In Gradle, you will need to use the [Shadow plugin](https://imperceptiblethoughts.com/shadow/).
The Hikari library is not bundled with Paper, so you will need to shade/relocate it. In Gradle, you will need to use the [Shadow plugin](https://gradleup.com/shadow/).
Alternatively, you can use the library loader with your Paper plugin to load the library at runtime. See [here](/paper/dev/getting-started/paper-plugins#loaders)
for more information on how to use this.

Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/velocity/admin/reference/libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Velocity uses a number of open-source libraries:
| [adventure](https://github.com/KyoriPowered/adventure) | [KyoriPowered](https://github.com/KyoriPowered) | [MIT License](https://github.com/KyoriPowered/adventure/blob/main/4/license.txt) |
| [Brigadier](https://github.com/Mojang/brigadier) | [Mojang](https://www.minecraft.net) | [MIT License](https://github.com/Mojang/brigadier/blob/master/LICENSE) |
| [event](https://github.com/KyoriPowered/event) | [KyoriPowered](https://github.com/KyoriPowered) | [MIT License](https://github.com/KyoriPowered/event/blob/master/license.txt) |
| [ASM](http://asm.ow2.org/) | [OW2](https://www.ow2.org/) | [BSD 3-Clause License](http://asm.ow2.io/license.html) |
| [ASM](https://asm.ow2.io/) | [OW2](https://asm.ow2.io/) | [BSD 3-Clause License](https://asm.ow2.io/license.html) |
| [SLF4J](https://github.com/qos-ch/slf4j) | [SLF4J](https://www.slf4j.org/) | [MIT License](https://github.com/qos-ch/slf4j/blob/master/LICENSE.txt) |
| [Log4j](https://logging.apache.org/log4j/2.x/) | [Log4j Team](https://logging.apache.org/log4j/2.3.x/log4j-web/team-list) | [Apache License 2.0](https://logging.apache.org/log4j/2.12.x/license.html) |
| [TerminalConsoleAppender](https://github.com/Minecrell/TerminalConsoleAppender) | [Minecrell](https://github.com/Minecrell) | [MIT License](https://github.com/Minecrell/TerminalConsoleAppender/blob/master/LICENSE) |
Expand All @@ -24,7 +24,7 @@ Velocity uses a number of open-source libraries:
| [HOCON](https://github.com/lightbend/config) | [lightbend](https://github.com/lightbend) | [Apache License 2.0](https://github.com/lightbend/config/blob/master/LICENSE-2.0.txt) |
| [toml4j](https://github.com/mwanji/toml4j) | [Moandji Ezana](https://github.com/mwanji) | [MIT License](https://github.com/mwanji/toml4j/blob/master/LICENSE) |
| [Night-Config](https://github.com/TheElectronWill/night-config) | [TheElectronWill](https://github.com/TheElectronWill) | [GNU Lesser General Public License 3.0](https://github.com/TheElectronWill/night-config/blob/master/LICENSE) |
| [fastutil](http://fastutil.di.unimi.it/) | [Sebastiano Vigna](http://vigna.di.unimi.it/) | [Apache License 2.0](https://github.com/vigna/fastutil/blob/master/LICENSE-2.0) |
| [fastutil](https://fastutil.di.unimi.it/) | [Sebastiano Vigna](https://vigna.di.unimi.it/) | [Apache License 2.0](https://github.com/vigna/fastutil/blob/master/LICENSE-2.0) |
| [JLine](https://github.com/jline/jline3/blob/master/LICENSE.txt) | [JLine project](https://github.com/jline/jline3) | [BSD 3-Clause License](https://github.com/jline/jline3/blob/master/LICENSE.txt) |
| [AsyncHttpClient](https://github.com/AsyncHttpClient/async-http-client) | [Stephane Landelle](https://github.com/slandelle) | [Apache License 2.0](https://github.com/AsyncHttpClient/async-http-client/blob/master/LICENSE.txt) |
| [completable-futures](https://github.com/spotify/completable-futures) | [Spotify](https://github.com/spotify) | [Apache License 2.0](https://github.com/spotify/completable-futures/blob/master/LICENSE) |