mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-27 13:38:07 +00:00
Adding content from docusaurus
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
|
||||
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
||||
module.exports = {
|
||||
title: 'Rancher Manager',
|
||||
tagline: '',
|
||||
url: 'https://rancher.com/docs/rancher',
|
||||
baseUrl: '/',
|
||||
onBrokenLinks: 'throw',
|
||||
onBrokenMarkdownLinks: 'warn',
|
||||
favicon: 'img/favicon.png',
|
||||
organizationName: 'rancher', // Usually your GitHub org/user name.
|
||||
projectName: 'rancher-docs', // Usually your repo name.
|
||||
trailingSlash: false,
|
||||
themeConfig: {
|
||||
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: 'en/introduction',
|
||||
position: 'right',
|
||||
label: 'Docs',
|
||||
className: 'navbar__docs',
|
||||
},
|
||||
{
|
||||
href: 'https://github.com/kubewarden/',
|
||||
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/kubewarden/docs/edit/main/',
|
||||
lastVersion: 'current',
|
||||
versions: {
|
||||
current: {
|
||||
label: 'v2.6',
|
||||
path: 'en',
|
||||
},
|
||||
},
|
||||
},
|
||||
blog: false, // Optional: disable the blog plugin
|
||||
// ...
|
||||
theme: {
|
||||
customCss: [require.resolve("./src/css/custom.css")],
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user