Skip to content

Commit

Permalink
oicp 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aasanchez committed Oct 11, 2024
1 parent 9a3678a commit de1187d
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 309 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ help:

default: server

bootstrap: ## is used solely for fulfilling dependencies of the project
@cd $(current-dir)/site; npm install
# bootstrap: ## is used solely for fulfilling dependencies of the project
# @cd $(current-dir)/site; npm install

setup: bootstrap ## is used to set up a project in an initial state
@echo "is used to set up a project in an initial state"
setup: ## is used to set up a project in an initial state
@cd $(current-dir)/site; npm install

update: setup ## is used to update the project after a fresh pull
@echo "is used to update the project after a fresh pull"
Expand All @@ -44,4 +44,4 @@ test: ## is used to run the test suite of the application
@echo "is used to run the test suite of the application"

clean: ## is used to reset the infrastructure o an inditial state
@echo "is used to reset the infrastructure o an inditial state"
@git clean -xfd
49 changes: 18 additions & 31 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: 'EV Protocols',
tagline: 'EV Protocols documentation',
title: 'My Site',
tagline: 'Dinosaurs are cool',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://ev-protocols.com/',
url: 'https://your-docusaurus-site.example.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: 'aasanchez', // Usually your GitHub org/user name.
projectName: 'ev-`protocols', // Usually your repo name.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // 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/aasanchez/ev-protocols/tree/master/site/',
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
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/aasanchez/ev-protocols/tree/master/site/',
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
Expand All @@ -63,29 +63,24 @@ 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: 'EV Protocols',
title: 'My Site',
logo: {
alt: 'EV Protocols logo',
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Protocols',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/aasanchez/ev-protocols',
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
},
Expand All @@ -95,32 +90,24 @@ const config: Config = {
style: 'dark',
links: [
{
title: 'Protocols Oficial Sites',
title: 'Docs',
items: [
{
label: 'OCPI - EVRoaming Foundation',
href: 'https://evroaming.org/',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Slack',
href: '#',
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: '#',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
Expand All @@ -142,7 +129,7 @@ const config: Config = {
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} EV Protocols, Inc. Built with Docusaurus.`,
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
Expand Down
Loading

0 comments on commit de1187d

Please sign in to comment.