2023-03-23 10:24:48 -04:00
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
|
2023-03-23 11:19:56 -04:00
|
|
|
const lightCodeTheme = require("prism-react-renderer/themes/github");
|
|
|
|
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
2023-03-23 10:24:48 -04:00
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
2023-03-23 11:19:56 -04:00
|
|
|
title: "Doc PLS5618",
|
|
|
|
tagline: "Documentation PLS5618",
|
|
|
|
favicon: "img/favicon.ico",
|
|
|
|
|
|
|
|
//themes: ["@docusaurus/theme-search-algolia"],
|
|
|
|
//themeConfig: {
|
|
|
|
// algolia: {
|
|
|
|
// appId: "",
|
|
|
|
// apiKey: "",
|
|
|
|
// indexName: "",
|
|
|
|
// contextualSearch: true,
|
|
|
|
// },
|
|
|
|
//},
|
2023-03-23 10:24:48 -04:00
|
|
|
|
|
|
|
// Set the production url of your site here
|
2023-03-23 11:19:56 -04:00
|
|
|
url: "https://docs.pls5618.com",
|
2023-03-23 10:24:48 -04:00
|
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
2023-03-23 11:19:56 -04:00
|
|
|
baseUrl: "/",
|
2023-03-23 10:24:48 -04:00
|
|
|
|
2023-03-23 11:19:56 -04:00
|
|
|
onBrokenLinks: "throw",
|
|
|
|
onBrokenMarkdownLinks: "warn",
|
2023-03-23 10:24:48 -04:00
|
|
|
|
|
|
|
// Even if you don't use internalization, you can use this field to set useful
|
|
|
|
// metadata like html lang. For example, if your site is Chinese, you may want
|
|
|
|
// to replace "en" with "zh-Hans".
|
|
|
|
i18n: {
|
2023-03-23 11:19:56 -04:00
|
|
|
defaultLocale: "fr",
|
|
|
|
locales: ["fr"],
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
2023-03-23 11:19:56 -04:00
|
|
|
"classic",
|
2023-03-23 10:24:48 -04:00
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
2023-03-23 11:19:56 -04:00
|
|
|
docs: false,
|
2023-03-23 10:24:48 -04:00
|
|
|
theme: {
|
2023-03-23 11:19:56 -04:00
|
|
|
customCss: require.resolve("./src/css/custom.css"),
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-03-23 11:19:56 -04:00
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
"@docusaurus/plugin-content-docs",
|
|
|
|
{
|
|
|
|
id: "java",
|
|
|
|
path: "java",
|
|
|
|
routeBasePath: "java",
|
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"@docusaurus/plugin-content-docs",
|
|
|
|
{
|
|
|
|
id: "robot",
|
|
|
|
path: "robot",
|
|
|
|
routeBasePath: "robot",
|
|
|
|
sidebarPath: require.resolve("./sidebars2.js"),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-03-23 10:24:48 -04:00
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
|
|
|
// Replace with your project's social card
|
2023-03-23 11:19:56 -04:00
|
|
|
image: "img/logo.png",
|
2023-03-23 10:24:48 -04:00
|
|
|
navbar: {
|
2023-03-23 11:19:56 -04:00
|
|
|
title: "PLS 5618",
|
2023-03-23 10:24:48 -04:00
|
|
|
logo: {
|
2023-03-23 11:19:56 -04:00
|
|
|
alt: "PLS 5618",
|
|
|
|
src: "img/logo.png",
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
type: "doc",
|
|
|
|
docId: "index",
|
|
|
|
position: "left",
|
|
|
|
label: "Java",
|
|
|
|
docsPluginId: "java",
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
type: "doc",
|
|
|
|
docId: "index",
|
|
|
|
position: "left",
|
|
|
|
label: "Robot",
|
|
|
|
docsPluginId: "robot",
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
2023-03-23 11:19:56 -04:00
|
|
|
style: "dark",
|
2023-03-23 10:24:48 -04:00
|
|
|
links: [
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
title: "Documentation",
|
2023-03-23 10:24:48 -04:00
|
|
|
items: [
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
label: "Java",
|
|
|
|
to: "/java",
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
label: "Robot",
|
|
|
|
to: "/robot",
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
title: "Communauté",
|
2023-03-23 10:24:48 -04:00
|
|
|
items: [
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
label: "Facebook",
|
|
|
|
href: "https://www.facebook.com/PLS5618",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Twitter",
|
|
|
|
href: "https://twitter.com/pls5618",
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
{
|
2023-03-23 11:19:56 -04:00
|
|
|
label: "Site Internet",
|
|
|
|
href: "https://pls5618.com/",
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2023-03-23 11:19:56 -04:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} PLS 5618. Fait avec Docusaurus.`,
|
2023-03-23 10:24:48 -04:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|