Skip to content

Commit 9a689e9

Browse files
committed
search and remove github from navbar
1 parent b6a492e commit 9a689e9

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

frontend/docusaurus.config.ts

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const config: Config = {
162162
// Please change this to your repo.
163163
// Remove this to remove the "edit this page" links.
164164
editUrl:
165-
"https://github.com/openmultiplayer/web/tree/master/frontend/",
165+
"https://github.com/openmultiplayer/web/edit/master/frontend/",
166166
},
167167
blog: {
168168
showReadingTime: true,
@@ -173,7 +173,7 @@ const config: Config = {
173173
// Please change this to your repo.
174174
// Remove this to remove the "edit this page" links.
175175
editUrl:
176-
"https://github.com/openmultiplayer/web/tree/master/frontend/blog",
176+
"https://github.com/openmultiplayer/web/edit/master/frontend/blog",
177177
// Useful options to enforce blogging best practices
178178
onInlineTags: "warn",
179179
onInlineAuthors: "warn",
@@ -206,11 +206,11 @@ const config: Config = {
206206
{ to: "https://forum.open.mp/", label: "Forums", position: "right" },
207207
{ to: "/servers", label: "Servers", position: "right" },
208208
{ to: "/partners", label: "Partners", position: "right" },
209-
{
210-
href: "https://github.com/openmultiplayer",
211-
label: "GitHub",
212-
position: "right",
213-
},
209+
// {
210+
// href: "https://github.com/openmultiplayer",
211+
// label: "GitHub",
212+
// position: "right",
213+
// },
214214
{
215215
href: "https://opencollective.com/openmultiplayer",
216216
label: "Donate",
@@ -299,6 +299,24 @@ const config: Config = {
299299
theme: prismThemes.github,
300300
darkTheme: prismThemes.dracula,
301301
},
302+
algolia: {
303+
// The application ID provided by Algolia
304+
appId: "AOKXGK39Z7",
305+
306+
// Public API key: it is safe to commit it
307+
apiKey: "54204f37e5c8fc2871052d595ee0505e",
308+
309+
indexName: "open",
310+
311+
// Optional: see doc section below
312+
contextualSearch: true,
313+
314+
// Optional: path for search page that enabled by default (`false` to disable it)
315+
searchPagePath: "search",
316+
317+
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
318+
insights: false,
319+
},
302320
} satisfies Preset.ThemeConfig,
303321
};
304322

frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)