2023-09-26

This commit is contained in:
name committed 2023-09-27 11:34:23 +00:00
1 parent e4fc871937
commit 72d8b4e6be
101 files changed
+3032 -1934

No files matched your search

+18 -23
View File
@@ -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,
},
},
};