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
3 changes: 3 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Local build output
/build-next
42 changes: 27 additions & 15 deletions frontend/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const config: Config = {
favicon: "favicon.ico",

// Set the production url of your site here
url: "https://open.mp/",
url: process.env.SITE_URL || "https://open.mp/",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
Expand Down Expand Up @@ -207,7 +207,7 @@ const config: Config = {
onUntruncatedBlogPosts: "warn",
},
theme: {
customCss: "./src/css/custom.css",
customCss: ["./src/css/custom.css", "./src/css/ui.css"],
},
} satisfies Preset.Options,
],
Expand Down Expand Up @@ -302,23 +302,25 @@ const config: Config = {
{
type: "docSidebar",
sidebarId: "docsSidebar",
position: "right",
position: "left",
label: "Docs",
className: "navbar-icon navbar-icon-docs",
},
{ to: "/blog", label: "Blog", position: "left", className: "navbar-icon navbar-icon-blog" },
{ to: "https://forum.open.mp/", label: "Forums", position: "left", className: "navbar-icon navbar-icon-forums" },
{ to: "/servers", label: "Servers", position: "left", className: "navbar-icon navbar-icon-servers" },
{ to: "/partners", label: "Partners", position: "left", className: "navbar-icon navbar-icon-partners" },
{
href: "https://opencollective.com/openmultiplayer",
label: "Donate to us",
position: "left",
className: "navbar-icon navbar-icon-donate navbar-donate",
},
{ to: "/blog", label: "Blog", position: "right" },
{ to: "https://forum.open.mp/", label: "Forums", position: "right" },
{ to: "/servers", label: "Servers", position: "right" },
{ to: "/partners", label: "Partners", position: "right" },
// {
// href: "https://github.com/openmultiplayer",
// label: "GitHub",
// position: "right",
// },
{
href: "https://opencollective.com/openmultiplayer",
label: "Donate",
position: "right",
},
{
type: "localeDropdown", // This adds the language switcher
position: "right",
Expand All @@ -327,12 +329,14 @@ const config: Config = {
},
footer: {
logo: {
alt: "open.mp logo",
src: "images/assets/logo.svg",
alt: "open.mp",
src: "images/assets/wordmark-coloured.svg",
href: "/",
height: 44,
},
links: [
{
title: "Documentations",
title: "Documentation",
items: [
{
label: "Introduction",
Expand Down Expand Up @@ -376,6 +380,14 @@ const config: Config = {
{
title: "More",
items: [
{
label: "Download Launcher",
to: "/downloads/launcher",
},
{
label: "Download Server",
to: "/downloads/server",
},
{
label: "Servers",
to: "/servers",
Expand Down
Loading
Loading