Skip to content

Commit

Permalink
Theme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Aug 9, 2022
1 parent 2cd19bc commit 0f9e149
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 194 deletions.
230 changes: 115 additions & 115 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,124 +1,124 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/nightOwlLight')
const darkCodeTheme = require('prism-react-renderer/themes/vsDark')
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/vsDark');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Uppy',
tagline: 'Dinosaurs are cool',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.svg',
organizationName: 'transloadit', // Usually your GitHub org/user name.
projectName: 'uppy.io', // Usually your repo name.
title: 'Uppy',
tagline: 'Dinosaurs are cool',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.svg',
organizationName: 'transloadit', // Usually your GitHub org/user name.
projectName: 'uppy.io', // Usually your repo name.

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
breadcrumbs: false,
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/transloadit/uppy.io/tree/main',
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/transloadit/uppy.io/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
breadcrumbs: false,
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/transloadit/uppy.io/tree/main',
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/transloadit/uppy.io/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
docs: { sidebar: { autoCollapseCategories: true } },
colorMode: { disableSwitch: true },
navbar: {
title: 'Uppy',
logo: {
alt: 'Uppy Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'quick-start',
position: 'left',
label: 'Docs',
},
{ to: '/examples', label: 'Examples', position: 'left' },
{ to: '/blog', label: 'Blog', position: 'left' },
{
href: 'https://github.com/transloadit/uppy',
label: 'GitHub',
position: 'left',
},
{
href: 'https://community.transloadit.com/',
label: 'Community Support Forum',
position: 'left',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/quick-start',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
}
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
docs: { sidebar: { autoCollapseCategories: true } },
colorMode: { disableSwitch: true },
navbar: {
title: 'Uppy',
logo: {
alt: 'Uppy Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'quick-start',
position: 'left',
label: 'Docs',
},
{ to: '/examples', label: 'Examples', position: 'left' },
{ to: '/blog', label: 'Blog', position: 'left' },
{
href: 'https://github.com/transloadit/uppy',
label: 'GitHub',
position: 'left',
},
{
href: 'https://community.transloadit.com/',
label: 'Community Support Forum',
position: 'left',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/quick-start',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};

module.exports = config
module.exports = config;
Loading

0 comments on commit 0f9e149

Please sign in to comment.