Skip to content

Commit

Permalink
Update to docusaurus 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed May 30, 2021
1 parent b7ac0bf commit 359ceae
Show file tree
Hide file tree
Showing 25 changed files with 33,090 additions and 39,131 deletions.
12 changes: 8 additions & 4 deletions .editorconfig
Expand Up @@ -4,10 +4,14 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
[package.json]
indent_style = space
indent_size = 2

[*.{md,css,yml}]
indent_style = space
indent_size = 2
13 changes: 3 additions & 10 deletions .gitignore
@@ -1,15 +1,8 @@
/content/
/dist/
/docs/
.docusaurus/
docs/
build/
node_modules/
*.log
.DS_Store
.eslintcache
.stylelintcache

# Docusaurus
/website/build/
/website/i18n/*
/website/sidebars.json
/website/translated_docs
/website/yarn.lock
1 change: 0 additions & 1 deletion .npmpackagejsonlintignore

This file was deleted.

10 changes: 3 additions & 7 deletions .prettierignore
@@ -1,9 +1,5 @@
**/*.css
/content/
/dist/
/docs/
node_modules/
/website/build/
/website/i18n/*
/website/sidebars.json
/website/translated_docs
.docusaurus/
build/
docs/
64 changes: 64 additions & 0 deletions docusaurus.config.js
@@ -0,0 +1,64 @@
module.exports = {
title: 'Stylelint',
tagline: 'A mighty, modern style linter',
url: 'https://stylelint.io',
baseUrl: '/',
organizationName: 'stylelint',
projectName: 'stylelint',
scripts: ['/js/pattern-validity.js'],
favicon: 'img/favicon.ico',
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'log',
presets: [
[
'@docusaurus/preset-classic',
{
blog: false,
debug: undefined,
docs: {
routeBasePath: '/',
path: 'docs',
sidebarPath: './sidebars.json',
},
theme: {
customCss: '../src/css/custom.css',
},
},
],
],
themeConfig: {
navbar: {
logo: {
alt: 'Stylelint',
src: 'img/light.svg',
srcDark: 'img/dark.svg',
},
items: [
{
to: '/',
label: 'Docs',
position: 'left',
},
{
to: '/demo',
label: 'Demo',
position: 'left',
},
{
href: 'https://github.com/stylelint/stylelint',
label: 'GitHub',
position: 'right',
},
{
href: 'https://twitter.com/stylelint',
label: 'Twitter',
position: 'right',
},
],
},
algolia: {
apiKey: '29d680ce97507c5cd2836c6c74783c05',
indexName: 'stylelint',
},
},
};

0 comments on commit 359ceae

Please sign in to comment.