Skip to content

Commit e6d744c

Browse files
committed
clean up
1 parent 9b2bdb7 commit e6d744c

File tree

18 files changed

+78
-208
lines changed

18 files changed

+78
-208
lines changed

.codesandbox/workspace.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

.eleventy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const ErrorOverlay = require('eleventy-plugin-error-overlay');
33
const markdownIt = require('markdown-it');
44
const markdownItAnchor = require('markdown-it-anchor');
55
const pluginTOC = require('eleventy-plugin-nesting-toc');
6-
const docGridShortcode = require('./src/shortcodes/doc-grid');
76
const excerpt = require('./src/shortcodes/excerpt');
87

98
const markdownOptions = {
@@ -19,7 +18,6 @@ module.exports = function(config) {
1918
config.addPlugin(ErrorOverlay);
2019

2120
config.addShortcode('excerpt', excerpt);
22-
config.addShortcode('docs', docGridShortcode);
2321
config.addFilter('log', thing => console.log(thing));
2422

2523
config.addPassthroughCopy({

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ yarn-error.log
6464
# Yarn Integrity file
6565
.yarn-integrity
6666

67-
_site
68-
dist
67+
dist
68+
69+
# Hide compiled CSS
70+
src/includes/css/*

docs/docs.11tydata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
layout: 'doc',
2+
layout: 'post',
33
permalink: '{{page.fileSlug}}/index.html'
44
};

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@
1515
"devDependencies": {
1616
"@11ty/eleventy": "^0.11.0",
1717
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
18-
"autoprefixer": "^9.7.6",
18+
"autoprefixer": "^9.8.4",
1919
"concurrently": "^5.2.0",
2020
"cssnano": "^4.1.10",
2121
"eleventy-plugin-error-overlay": "^0.1.2",
2222
"eleventy-plugin-nesting-toc": "^1.2.0",
23-
"markdown-it-anchor": "^5.2.7",
24-
"postcss": "^7.0.30",
23+
"markdown-it-anchor": "^5.3.0",
24+
"postcss": "^7.0.32",
2525
"postcss-cli": "^7.1.1",
2626
"postcss-import": "^12.0.1",
27+
"postcss-nested": "^4.2.1",
2728
"prettier": "^2.0.5",
2829
"resetti": "^1.1.3"
2930
},
@@ -34,8 +35,6 @@
3435
"bugs": {
3536
"url": "https://github.com/chasemccoy/designsystems.dev/issues"
3637
},
37-
"dependencies": {
38-
"postcss-nested": "^4.2.1"
39-
},
38+
"dependencies": {},
4039
"keywords": []
41-
}
40+
}

sandbox.config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/data/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = 'base-layout';
1+
module.exports = 'base';

src/includes/css/styles.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/includes/doc-list.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/index.11ty.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ exports.data = {
33
};
44

55
exports.render = function(data) {
6-
return `${this.docs(data.collections.docs)}`;
6+
return data.collections.docs.map(doc => `
7+
<article>
8+
<h2><a href="/${doc.fileSlug}">${doc.data.title}</a></h2>
9+
${doc.templateContent}
10+
</article>
11+
`, this).join('')
712
};

0 commit comments

Comments
 (0)