Skip to content

Commit

Permalink
docusaurus config
Browse files Browse the repository at this point in the history
  • Loading branch information
aasanchez committed Oct 10, 2024
1 parent 542911c commit 9a3678a
Showing 1 changed file with 31 additions and 18 deletions.
49 changes: 31 additions & 18 deletions site/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

const config: Config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
title: 'EV Protocols',
tagline: 'EV Protocols documentation',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
url: 'https://ev-protocols.com/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'aasanchez', // Usually your GitHub org/user name.
projectName: 'ev-`protocols', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand All @@ -38,7 +38,7 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://github.com/aasanchez/ev-protocols/tree/master/site/',
},
blog: {
showReadingTime: true,
Expand All @@ -49,7 +49,7 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://github.com/aasanchez/ev-protocols/tree/master/site/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
Expand All @@ -63,24 +63,29 @@ const config: Config = {
],

themeConfig: {
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
},
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
title: 'EV Protocols',
logo: {
alt: 'My Site Logo',
alt: 'EV Protocols logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
label: 'Protocols',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/aasanchez/ev-protocols',
label: 'GitHub',
position: 'right',
},
Expand All @@ -90,24 +95,32 @@ const config: Config = {
style: 'dark',
links: [
{
title: 'Docs',
title: 'Protocols Oficial Sites',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
label: 'OCPI - EVRoaming Foundation',
href: 'https://evroaming.org/',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
label: 'Slack',
href: '#',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
href: '#',
},
{
label: 'Twitter',
Expand All @@ -129,7 +142,7 @@ const config: Config = {
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
copyright: `Copyright © ${new Date().getFullYear()} EV Protocols, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
Expand Down

0 comments on commit 9a3678a

Please sign in to comment.