Skip to content

Commit 5e9e116

Browse files
committed
docs: update docusaurus configuration
- Set onBrokenLinks and onBrokenAnchors to "throw" for stricter link handling. - Change onDuplicateRoutes to "warn" to notify about duplicate routes. - Update deploymentBranch from "gh-pages" to "main". - Adjust keywords and description for better SEO. Signed-off-by: Chiho Sin <[email protected]>
1 parent fef2c52 commit 5e9e116

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docusaurus.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ module.exports = {
1111
"Explore FoBE Studio Documentation for complete IoT solutions. Learn about hardware design and software development.",
1212
url: "https://docs.fobestudio.com",
1313
baseUrl: "/",
14+
onBrokenLinks: "throw",
1415
onBrokenAnchors: "throw",
16+
onDuplicateRoutes: "warn",
1517
// Used for publishing and more
1618
projectName: "fobe-documentation-web",
1719
organizationName: "fobe-projects",
18-
deploymentBranch: "gh-pages",
20+
deploymentBranch: "main",
1921
trailingSlash: false,
2022
favicon: "img/favicon.png",
2123

@@ -28,6 +30,9 @@ module.exports = {
2830

2931
markdown: {
3032
mermaid: true,
33+
hooks: {
34+
onBrokenMarkdownLinks: "warn",
35+
},
3136
parseFrontMatter: async (params) => {
3237
const result = await params.defaultParseFrontMatter(params);
3338

@@ -126,8 +131,7 @@ module.exports = {
126131
// Core SEO tags
127132
{
128133
name: "keywords",
129-
content:
130-
"FoBE, development board, embedded systems, IoT, hardware, firmware, MicroPython, Arduino, Zephyr, open source, tutorial, SDK, Meshtastic, electronics, wireless communication, prototyping, ESP32, nRF52840, board documentation",
134+
content: "FoBE,documentation,blog,IoT,development",
131135
},
132136
{
133137
name: "description",
@@ -168,7 +172,7 @@ module.exports = {
168172
{
169173
name: "twitter:title",
170174
content:
171-
"FoBE Studio Connecting Every Byte, Empowering Every Device.",
175+
"FoBE Studio - Connecting Every Byte, Empowering Every Device.",
172176
},
173177
{
174178
name: "twitter:description",

0 commit comments

Comments
 (0)