Skip to content

Commit

Permalink
Merge pull request #33 from chuva-io/Update-config
Browse files Browse the repository at this point in the history
Update config
  • Loading branch information
nnascim authored Mar 28, 2024
2 parents fa0fa15 + f5c9d40 commit bd15e73
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 20 deletions.
30 changes: 26 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {themes as prismThemes} from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Less Documentation',
title: 'Less',
tagline: 'Less is more',
favicon: 'img/favicon.ico',

Expand All @@ -24,7 +24,7 @@ const config = {
projectName: 'less-site', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
onBrokenMarkdownLinks: 'throw',

// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
Expand All @@ -44,6 +44,13 @@ const config = {
sidebarPath: './sidebars.js',
editUrl: 'https://github.com/chuva-io/less-site/blob/main',
},
blog: {
blogTitle: 'Less Blog',
blogDescription: 'Blog discussing Less including updates, roadmaps, news, and more.',
postsPerPage: 'ALL',
blogSidebarTitle: 'All articles',
blogSidebarCount: 'ALL',
},
theme: {
customCss: './src/css/custom.css',
},
Expand All @@ -66,13 +73,28 @@ const config = {
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
metadata: [
{name: 'keywords', content: 'fault tolerant, event-driven, microservices, javascript, typescript, rust, go, python, serverless, aws, google cloud, gcp, azure, terraform, infrastructure as code, devops, cloud, distributed systems'},
],
navbar: {
title: 'Less Documentation (beta)',
title: 'Less Documentation',
logo: {
alt: 'Chuva logo',
src: 'img/chuva-logo-h-light.svg',
srcDark: 'img/chuva-logo-h-dark.svg',
}
},
items: [
{
to: 'blog',
label: 'Blog',
position: 'right',
},
{
to: '/',
label: 'Documentation',
position: 'right',
},
]
},
footer: {
style: 'dark',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
]
},
"engines": {
"node": "20.9.0"
"node": "^20.0.0"
}
}
2 changes: 2 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--ifm-color-primary-light: #ffa01a;
--ifm-color-primary-lighter: #ffa526;
--ifm-color-primary-lightest: #ffb54d;
--docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 15%);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
Expand All @@ -24,4 +25,5 @@
--ifm-color-primary-light: #8ddf9e;
--ifm-color-primary-lighter: #9ae3a9;
--ifm-color-primary-lightest: #c1eeca;
--docusaurus-highlighted-code-line-bg: rgb(66 66 66 / 65%);
}
43 changes: 28 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1437,18 +1437,7 @@
"@docusaurus/utils-validation" "3.0.0"
tslib "^2.6.0"

"@docusaurus/[email protected]":
version "3.0.0"
resolved "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.0.0.tgz#a4c407b80cb46773bea070816ebb547c5663f0b3"
integrity sha512-asEKavw8fczUqvXu/s9kG2m1epLnHJ19W6CCCRZEmpnkZUZKiM8rlkDiEmxApwIc2JDDbIMk+Y2TMkJI8mInbQ==
dependencies:
"@docusaurus/core" "3.0.0"
"@docusaurus/types" "3.0.0"
"@docusaurus/utils-validation" "3.0.0"
"@types/gtag.js" "^0.0.12"
tslib "^2.6.0"

"@docusaurus/plugin-google-gtag@^3.0.0":
"@docusaurus/[email protected]", "@docusaurus/plugin-google-gtag@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.0.0.tgz#a4c407b80cb46773bea070816ebb547c5663f0b3"
integrity sha512-asEKavw8fczUqvXu/s9kG2m1epLnHJ19W6CCCRZEmpnkZUZKiM8rlkDiEmxApwIc2JDDbIMk+Y2TMkJI8mInbQ==
Expand Down Expand Up @@ -1503,7 +1492,7 @@
"@docusaurus/theme-search-algolia" "3.0.0"
"@docusaurus/types" "3.0.0"

"@docusaurus/[email protected]", "react-loadable@npm:@docusaurus/[email protected]":
"@docusaurus/[email protected]":
version "5.5.2"
resolved "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
Expand Down Expand Up @@ -7389,6 +7378,14 @@ react-loadable-ssr-addon-v5-slorber@^1.0.1:
dependencies:
"@babel/runtime" "^7.10.3"

"react-loadable@npm:@docusaurus/[email protected]":
version "5.5.2"
resolved "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
dependencies:
"@types/react" "*"
prop-types "^15.6.2"

react-router-config@^5.1.1:
version "5.1.1"
resolved "https://registry.npmjs.org/react-router-config/-/react-router-config-5.1.1.tgz#0f4263d1a80c6b2dc7b9c1902c9526478194a988"
Expand Down Expand Up @@ -8147,7 +8144,16 @@ stdin-discarder@^0.1.0:
dependencies:
bl "^5.0.0"

"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -8205,7 +8211,14 @@ stringify-object@^3.3.0:
is-obj "^1.0.1"
is-regexp "^1.0.0"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down

0 comments on commit bd15e73

Please sign in to comment.