mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-04-15 19:05:41 +00:00
131 lines
3.3 KiB
JavaScript
131 lines
3.3 KiB
JavaScript
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
module.exports = {
|
|
title: 'Rancher Manager',
|
|
tagline: '',
|
|
url: 'http://docs.ranchermanager.rancher.io/',
|
|
baseUrl: '/',
|
|
onBrokenLinks: 'warn',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
favicon: 'img/favicon.png',
|
|
organizationName: 'rancher', // Usually your GitHub org/user name.
|
|
projectName: 'rancher-docs', // Usually your repo name.
|
|
trailingSlash: false,
|
|
i18n: {
|
|
defaultLocale: "en",
|
|
locales: ["en", "zh"],
|
|
localeConfigs: {
|
|
en: {
|
|
label: "English",
|
|
},
|
|
zh: {
|
|
label: "简体中文",
|
|
},
|
|
},
|
|
},
|
|
themeConfig: {
|
|
algolia: {
|
|
// The application ID provided by Algolia
|
|
appId: '30NEY6C9UY',
|
|
|
|
// Public API key: it is safe to commit it
|
|
apiKey: '8df59222c0ad79fdacb4d45d11e21d2e',
|
|
|
|
indexName: 'docs_ranchermanager_rancher_io',
|
|
|
|
// Optional: see doc section below
|
|
contextualSearch: true,
|
|
|
|
// Optional: Algolia search parameters
|
|
searchParameters: {},
|
|
|
|
// Optional: path for search page that enabled by default (`false` to disable it)
|
|
searchPagePath: 'search',
|
|
|
|
//... other Algolia params
|
|
},
|
|
colorMode: {
|
|
// "light" | "dark"
|
|
defaultMode: "light",
|
|
|
|
// Hides the switch in the navbar
|
|
// Useful if you want to support a single color mode
|
|
disableSwitch: true,
|
|
},
|
|
prism: {
|
|
additionalLanguages: ['rust'],
|
|
},
|
|
navbar: {
|
|
title: "",
|
|
logo: {
|
|
alt: 'logo',
|
|
src: 'img/rancher-logo-horiz-color.svg',
|
|
// href: 'en',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'doc',
|
|
docId: 'rancher-manager',
|
|
position: 'right',
|
|
label: 'Docs',
|
|
className: 'navbar__docs',
|
|
},
|
|
{
|
|
type: "localeDropdown",
|
|
position: "right",
|
|
},
|
|
{
|
|
href: 'https://github.com/rancher/rancher-docs',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
className: 'navbar__github btn btn-secondary icon-github',
|
|
},
|
|
{
|
|
type: 'docsVersionDropdown',
|
|
position: 'left',
|
|
dropdownItemsAfter: [{to: '/versions', label: 'All versions'}],
|
|
dropdownActiveClassDisabled: false,
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [],
|
|
copyright: `Copyright © ${new Date().getFullYear()} SUSE Rancher. All Rights Reserved.`,
|
|
},
|
|
},
|
|
presets: [
|
|
[
|
|
'@docusaurus/preset-classic',
|
|
{
|
|
docs: {
|
|
routeBasePath: '/', // Serve the docs at the site's root
|
|
/* other docs plugin options */
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
showLastUpdateTime: true,
|
|
editUrl: 'https://github.com/rancher/rancher-docs/edit/main/',
|
|
lastVersion: 'current',
|
|
versions: {
|
|
current: {
|
|
label: 'v2.6'
|
|
},
|
|
2.5: {
|
|
label: 'v2.5',
|
|
path: 'v2.5'
|
|
},
|
|
'2.0-2.4': {
|
|
label: 'v2.0-v2.4',
|
|
path: 'v2.0-v2.4'
|
|
},
|
|
},
|
|
},
|
|
blog: false, // Optional: disable the blog plugin
|
|
// ...
|
|
theme: {
|
|
customCss: [require.resolve("./src/css/custom.css")],
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|