Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
chasemccoy committed Jun 28, 2020
1 parent 9b2bdb7 commit e6d744c
Show file tree
Hide file tree
Showing 18 changed files with 78 additions and 208 deletions.
33 changes: 0 additions & 33 deletions .codesandbox/workspace.json

This file was deleted.

2 changes: 0 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const ErrorOverlay = require('eleventy-plugin-error-overlay');
const markdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
const pluginTOC = require('eleventy-plugin-nesting-toc');
const docGridShortcode = require('./src/shortcodes/doc-grid');
const excerpt = require('./src/shortcodes/excerpt');

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

config.addShortcode('excerpt', excerpt);
config.addShortcode('docs', docGridShortcode);
config.addFilter('log', thing => console.log(thing));

config.addPassthroughCopy({
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@ yarn-error.log
# Yarn Integrity file
.yarn-integrity

_site
dist
dist

# Hide compiled CSS
src/includes/css/*
2 changes: 1 addition & 1 deletion docs/docs.11tydata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
layout: 'doc',
layout: 'post',
permalink: '{{page.fileSlug}}/index.html'
};
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
"devDependencies": {
"@11ty/eleventy": "^0.11.0",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
"autoprefixer": "^9.7.6",
"autoprefixer": "^9.8.4",
"concurrently": "^5.2.0",
"cssnano": "^4.1.10",
"eleventy-plugin-error-overlay": "^0.1.2",
"eleventy-plugin-nesting-toc": "^1.2.0",
"markdown-it-anchor": "^5.2.7",
"postcss": "^7.0.30",
"markdown-it-anchor": "^5.3.0",
"postcss": "^7.0.32",
"postcss-cli": "^7.1.1",
"postcss-import": "^12.0.1",
"postcss-nested": "^4.2.1",
"prettier": "^2.0.5",
"resetti": "^1.1.3"
},
Expand All @@ -34,8 +35,6 @@
"bugs": {
"url": "https://github.com/chasemccoy/designsystems.dev/issues"
},
"dependencies": {
"postcss-nested": "^4.2.1"
},
"dependencies": {},
"keywords": []
}
}
6 changes: 0 additions & 6 deletions sandbox.config.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/data/layout.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = 'base-layout';
module.exports = 'base';
1 change: 0 additions & 1 deletion src/includes/css/styles.css

This file was deleted.

11 changes: 0 additions & 11 deletions src/includes/doc-list.html

This file was deleted.

7 changes: 6 additions & 1 deletion src/index.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ exports.data = {
};

exports.render = function(data) {
return `${this.docs(data.collections.docs)}`;
return data.collections.docs.map(doc => `
<article>
<h2><a href="/${doc.fileSlug}">${doc.data.title}</a></h2>
${doc.templateContent}
</article>
`, this).join('')
};
File renamed without changes.
5 changes: 5 additions & 0 deletions src/layouts/page.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: base
---

{{ content | safe }}
8 changes: 2 additions & 6 deletions src/layouts/doc.njk → src/layouts/post.njk
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
layout: base-layout
layout: page
---

<article>
<header><h1>{{ title }}</h1></header>

{# <img class='doc-header-image doc-image' src="/img/{{ title | slug }}.png" /> #}

{% if content | toc %}
<h2>Table of contents</h2>
Expand All @@ -14,6 +12,4 @@ layout: base-layout
{% endif %}

{{ content | safe }}
</article>

{% include 'doc-list.html' %}
</article>
11 changes: 0 additions & 11 deletions src/shortcodes/doc-grid.js

This file was deleted.

36 changes: 0 additions & 36 deletions src/styles/doc.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "resetti";
@import "tokens.css";
@import "typography.css";
@import "global.css";
@import "layout.css";
@import "prism.css";
@import "doc.css";
3 changes: 3 additions & 0 deletions src/styles/tokens.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:root {
--gray-0: #000;
}
Loading

0 comments on commit e6d744c

Please sign in to comment.