Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to docusaurus 2 #193

Merged
merged 6 commits into from Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@
/* global module */
module.exports = {
title: 'Stylelint',
tagline: 'A mighty, modern style linter',
url: 'https://stylelint.io',
baseUrl: '/',
organizationName: 'stylelint',
projectName: 'stylelint',
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',
},
},
};