From 72d8b4e6bee0ffac79e96dd649a9da2adb86b507 Mon Sep 17 00:00:00 2001 From: name Date: Wed, 27 Sep 2023 11:34:23 +0000 Subject: 2023-09-26 --- docusaurus/docusaurus.config.js | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) (limited to 'docusaurus/docusaurus.config.js') diff --git a/docusaurus/docusaurus.config.js b/docusaurus/docusaurus.config.js index 1cb19b7..0c1833c 100644 --- a/docusaurus/docusaurus.config.js +++ b/docusaurus/docusaurus.config.js @@ -1,15 +1,17 @@ -/** - * @license - * SPDX-License-Identifier: AGPL-3.0-or-later - * This file is part of Wolfree. - * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - */ +/* SPDX-License-Identifier: AGPL-3.0-or-later */ // @ts-check +/** @type { { config: { libredirect: false } } } */ +const wolfree = require("./wolfree.config.js"); +const lightCodeTheme = require("prism-react-renderer/themes/github"); +const darkCodeTheme = require("prism-react-renderer/themes/dracula"); + /** @type {import('@docusaurus/types').Config} */ module.exports = { - title: "Wolfree - Free WolframAlpha step-by-step solution", + title: wolfree.config.libredirect + ? "Paywall-respecting instances: Wolfree instances that do not bypass paywalls" + : "Wolfree - Free WolframAlpha step-by-step solution", url: "http://example.com", baseUrl: "/", favicon: "data:,", @@ -19,7 +21,7 @@ module.exports = { /** @type {import('@docusaurus/preset-classic').Options} */ { docs: { - sidebarPath: require.resolve("./sidebars.js"), + sidebarPath: require.resolve("./sidebars.config.js"), routeBasePath: "/", breadcrumbs: false, }, @@ -46,7 +48,9 @@ module.exports = { items: [ { to: "/", - label: "Wolfree", + label: wolfree.config.libredirect + ? "Paywall-respecting instances" + : "Wolfree", position: "left", }, { @@ -55,16 +59,6 @@ module.exports = { position: "right", target: "_self", }, - { - to: "/mirror", - label: "Mirror", - position: "right", - }, - { - to: "/source", - label: "Source", - position: "right", - }, ], }, footer: { @@ -92,11 +86,12 @@ module.exports = { label: "Acknowledgment", href: "/acknowledgment", }, - { - label: "DMCA takedown", - href: "/dmca", - }, ], + copyright: "SPDX-License-Identifier: AGPL-3.0-or-later", + }, + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, }, }, }; -- cgit v1.2.3