mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 22:54:31 +02:00
feat: make a url var instead of modifying config
This commit is contained in:
parent
dd7836b572
commit
79c32c1ce4
@ -4,6 +4,8 @@
|
||||
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
||||
|
||||
const siteUrl = "https://revanced.app"
|
||||
|
||||
/** @type {import('@docusaurus/types').Config} */
|
||||
const config = {
|
||||
title: 'ReVanced',
|
||||
@ -11,7 +13,7 @@ const config = {
|
||||
favicon: 'img/favicon.ico',
|
||||
|
||||
// Set the production url of your site here
|
||||
url: 'https://revanced.app',
|
||||
url: siteUrl,
|
||||
// Set the /<baseUrl>/ pathname under which your site is served
|
||||
// For GitHub pages deployment, it is often '/<projectName>/'
|
||||
baseUrl: '/docs',
|
||||
@ -59,7 +61,7 @@ const config = {
|
||||
logo: {
|
||||
alt: 'ReVanced Logo',
|
||||
target: '_self',
|
||||
src: 'img/logo.svg',
|
||||
href: siteUrl,
|
||||
width: 22
|
||||
},
|
||||
items: [
|
||||
@ -94,6 +96,4 @@ const config = {
|
||||
}),
|
||||
};
|
||||
|
||||
config.themeConfig.navbar.logo.href = config.url;
|
||||
|
||||
module.exports = config;
|
||||
|
Loading…
x
Reference in New Issue
Block a user