Skip to content

Commit

Permalink
Collect content together for easier organization
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Jan 21, 2024
1 parent fe25a0e commit a8ab7a1
Show file tree
Hide file tree
Showing 355 changed files with 19 additions and 17 deletions.
23 changes: 13 additions & 10 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function (eleventyConfig) {
eleventyConfig.setLiquidOptions({
cache: true,
strictFilters: true,
// strictVariables: true, TODO(parlough): Enable
lenientIf: true
});

Expand All @@ -51,6 +50,7 @@ export default function (eleventyConfig) {
eleventyConfig.addFilter('breadcrumbsForPage', breadcrumbsForPage);

eleventyConfig.addTemplateFormats('scss');
eleventyConfig.addWatchTarget('src/_sass');
eleventyConfig.addExtension('scss', {
outputFileExtension: 'css',
compile: function (inputContent, inputPath) {
Expand All @@ -62,7 +62,7 @@ export default function (eleventyConfig) {
const result = sass.compileString(inputContent, {
style: isProduction ? 'compressed' : 'expanded',
quietDeps: true,
loadPaths: [parsedPath.dir, '_sass'],
loadPaths: [parsedPath.dir, 'src/_sass'],
});

const dependencies = result.loadedUrls
Expand All @@ -75,12 +75,12 @@ export default function (eleventyConfig) {
},
});

eleventyConfig.addPassthroughCopy('src/assets/dash');
eleventyConfig.addPassthroughCopy('src/assets/js');
eleventyConfig.addPassthroughCopy('src/assets/img', {expand: true});
eleventyConfig.addPassthroughCopy('src/assets/shared', {expand: true, filter: /^(?!_).+/});
eleventyConfig.addPassthroughCopy('src/f', {expand: true, filter: /^(?!_).+/});
eleventyConfig.addPassthroughCopy('src/guides/language/specifications');
eleventyConfig.addPassthroughCopy('src/content/assets/dash');
eleventyConfig.addPassthroughCopy('src/content/assets/js');
eleventyConfig.addPassthroughCopy('src/content/assets/img', {expand: true});
eleventyConfig.addPassthroughCopy('src/content/assets/shared', {expand: true, filter: /^(?!_).+/});
eleventyConfig.addPassthroughCopy('src/content/f', {expand: true, filter: /^(?!_).+/});
eleventyConfig.addPassthroughCopy('src/content/guides/language/specifications');

if (isProduction) {
// If building for production, minify/optimize the HTML output.
Expand All @@ -105,14 +105,17 @@ export default function (eleventyConfig) {

eleventyConfig.setServerOptions({
port: 4000,
watch: ['src/_sass'],
});

return {
htmlTemplateEngine: 'liquid',
dir: {
input: 'src',
input: 'src/content',
output: '_site',
layouts: '_layouts'
layouts: '../_layouts',
includes: '../_includes',
data: '../_data',
}
}
};
1 change: 0 additions & 1 deletion src/_11ty/plugins/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function _registerAsides(markdown) {
* @private
*/
function _registerContainers(markdown) {
// TODO(parlough): Consider a function to make this easier.
markdown.use(markdownItContainer, 'mini-toc', {
render: function (tokens, index) {
if (tokens[index].nesting === 1) {
Expand Down
5 changes: 0 additions & 5 deletions src/assets/css/main.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/img/shared

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions src/content/assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: none
---

@forward '../../../_sass/site';
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions src/content/assets/img/shared
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit a8ab7a1

Please sign in to comment.