Skip to content

Commit

Permalink
Fix search, fix broken anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankka committed Mar 5, 2025
1 parent 2bca2fb commit cf45743
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: messages.yml

| Placeholders | Example | Description |
|--------------------|----------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
| `%allroles%` | `Owner \| Developer \| Boss man` | All the user's roles separated by [`DiscordToMinecraftAllRolesSeparator`](/config#DiscordToMinecraftAllRolesSeparator) |
| `%allroles%` | `Owner \| Developer \| Boss man` | All the user's roles separated by [`DiscordToMinecraftAllRolesSeparator`](#DiscordToMinecraftAllRolesSeparator) |
| `%message%` | `Hello!` | The message content |
| `%toprole%` | `Owner` | The user's highest ranking role |
| `%toprolealias%` | `Owner` | The alias for the role from [`DiscordChatChannelRoleAliases`](/config#DiscordChatChannelRoleAliases), otherwise the role's name |
Expand Down
16 changes: 10 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,6 @@ const config = {
}),
plugins: [
'plugin-image-zoom',
['@easyops-cn/docusaurus-search-local',
{
indexBlog: false,
hashed: true
}
],
[
'@docusaurus/plugin-client-redirects',
{
Expand Down Expand Up @@ -177,6 +171,16 @@ const config = {
},
}
]
],
themes: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
({
indexBlog: false,
hashed: true,
docsRouteBasePath: "/"
})
],
]
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"build": "DEBUG=search-local:* docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down

0 comments on commit cf45743

Please sign in to comment.