Skip to content

Commit

Permalink
Add Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah-Silvera committed Mar 5, 2020
1 parent 1f90cda commit fe1cc29
Show file tree
Hide file tree
Showing 8 changed files with 223 additions and 87 deletions.
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package.json
package-lock.json
yarn.lock
.docusaurus
build
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 100,
"tabWidth": 4,
"trailingComma": "es5"
}
11 changes: 0 additions & 11 deletions blog/2019-05-28-hola.md

This file was deleted.

17 changes: 0 additions & 17 deletions blog/2019-05-29-hello-world.md

This file was deleted.

13 changes: 0 additions & 13 deletions blog/2019-05-30-welcome.md

This file was deleted.

72 changes: 34 additions & 38 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,39 @@
const title = 'Developer Center'
const title = "Developer Center";
module.exports = {
title,
tagline: 'The tagline of my site',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
favicon: 'img/favicon.png',
organizationName: 'geocortex', // Usually your GitHub org/user name.
projectName: 'Geocortex Developer Center', // Usually your repo name.
themeConfig: {
navbar: {
title,
logo: {
alt: 'Geocortex Logo',
src: 'img/logo.png',
},
links: [
{to: 'docs/web/overview', label: 'Web', position: 'left'}
],
},
footer: {
style: 'dark',
links: [
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/geocortex/dev-center/edit/master/website/',
title,
tagline: "The tagline of my site",
url: "https://your-docusaurus-test-site.com",
baseUrl: "/",
favicon: "img/favicon.png",
organizationName: "geocortex", // Usually your GitHub org/user name.
projectName: "Geocortex Developer Center", // Usually your repo name.
themeConfig: {
navbar: {
title,
logo: {
alt: "Geocortex Logo",
src: "img/logo.png",
},
links: [{ to: "docs/web/overview", label: "Web", position: "left" }],
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
footer: {
style: "dark",
links: [],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/geocortex/dev-center/edit/master/website/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
],
};
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"@docusaurus/core": "^2.0.0-alpha.43",
"@docusaurus/preset-classic": "^2.0.0-alpha.43",
"classnames": "^2.2.6",
"husky": "^4.2.3",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"react": "^16.8.4",
"react-dom": "^16.8.4"
},
Expand All @@ -26,5 +29,10 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}
}
Loading

0 comments on commit fe1cc29

Please sign in to comment.