Skip to content
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

fix: Change base url for subdirectory #309

Merged
merged 7 commits into from
May 29, 2024
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
6 changes: 4 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
const { themes } = require('prism-react-renderer');
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
// This is defined in the Netlify environment variables on the Netlify UI
const { ADD_SLASH_DOCS_TO_URL } = process.env;

/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "OpenSauced",
tagline: "The path to your next Open Source contribution",
url: "https://docs.opensauced.pizza",
baseUrl: "/",
url: ADD_SLASH_DOCS_TO_URL ? "https://opensauced.pizza" : "https://docs.opensauced.pizza",
baseUrl: ADD_SLASH_DOCS_TO_URL ? "/docs/" : "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
Expand Down
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build]
base = "/"
publish = "build" # Make sure this points to the correct output directory
command = "npm run build" # The command to build your site
Loading