Skip to content

Commit

Permalink
fix 11ty build
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Jul 15, 2023
1 parent 9290055 commit eede511
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
// const UpgradeHelper = require("@11ty/eleventy-upgrade-help");

module.exports = function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
// eleventyConfig.addPlugin(UpgradeHelper);
eleventyConfig.addPassthroughCopy({ "favicon.ico": "favicon.ico" });
eleventyConfig.addPassthroughCopy({ "docs/main.css": "dist/main.css" });
eleventyConfig.addPassthroughCopy({ dist: "dist" });
Expand Down Expand Up @@ -53,10 +55,11 @@ module.exports = function (eleventyConfig) {
});

eleventyConfig["dir"] = {
input: "./",
ouput: "docs/_site",
includes: "docs/_includes",
data: "docs/_data",
input: ".",
ouput: "_site",
includes: "_includes",
layouts: "_includes",
data: "_data",
};
return eleventyConfig;
};
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./docs/_site
publish_dir: ./_site
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh_docs_deploy
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ docs/mockup/patterns
node_modules/
stamp-yarn
stats.json
/_site/*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"nwsapi": "Since version 2.2.3 some selectors do not work anymore. See https://github.com/dperini/nwsapi/issues/83"
},
"dependencies": {
"@11ty/eleventy-upgrade-help": "2",
"@patternslib/pat-code-editor": "4.0.1",
"@patternslib/patternslib": "^9.9.4",
"backbone": "1.4.1",
Expand Down Expand Up @@ -68,7 +69,7 @@
"build:webpack:dev": "NODE_ENV=development webpack --config webpack.config.js",
"build:webpack:plone": "NODE_ENV=production DEPLOYMENT=plone webpack --config webpack.config.js",
"build:webpack:dev:plone": "NODE_ENV=development DEPLOYMENT=plone webpack --config webpack.config.js",
"build:docs": "ELEVENTY_ENV=production npx @11ty/eleventy --output docs/_site/ --pathprefix=mockup",
"build:docs": "ELEVENTY_ENV=production npx @11ty/eleventy --pathprefix=mockup",
"build:stats": "NODE_ENV=production webpack --config webpack.config.js --json > stats.json",
"build:stats:plone": "NODE_ENV=production DEPLOYMENT=plone webpack --config webpack.config.js --json > stats.json",
"build": "run-s clean build:webpack build:docs",
Expand All @@ -77,7 +78,7 @@
"postinstall": "patch --forward node_modules/select2/select2.js < patches/select2.patch || true",
"collect:externaldocs": "copyup -V node_modules/@patternslib/patternslib/src/pat/**/documentation.md node_modules/@patternslib/pat-*/README.md node_modules/pat-*/README.md docs/external/",
"start:webpack": "NODE_ENV=development webpack serve --config webpack.config.js",
"start:docs": "ELEVENTY_ENV=development npx @11ty/eleventy --serve --port 8001 --output docs/_site/",
"start:docs": "ELEVENTY_ENV=development npx @11ty/eleventy --serve --port 8001 ",
"start": "npm-run-all clean --parallel start:*",
"test": "jest",
"testwatch": "jest --watch",
Expand Down
1 change: 1 addition & 0 deletions src/pat/autotoc/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: layout.liquid
permalink: "pat/autotoc/"
title: Autotoc
---
Expand Down
10 changes: 9 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
linkedom "^0.14.19"
prismjs "^1.29.0"

"@11ty/eleventy-upgrade-help@2":
version "2.0.5"
resolved "https://registry.yarnpkg.com/@11ty/eleventy-upgrade-help/-/eleventy-upgrade-help-2.0.5.tgz#2db0a2971aaaf40d5da2d8cfea5b4a15c93433ce"
integrity sha512-sIH/ObNN2QDyd9Tqzb4N5gKuhgmq7VDO5o/GNpD+jMwCmMFumUiCoNcpp1tlRonuNp7IAVrXIg6SYDp6aqvQUw==
dependencies:
chalk "^4.1.1"
semver "^7.3.5"

"@11ty/eleventy-utils@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@11ty/eleventy-utils/-/eleventy-utils-1.0.1.tgz#e89dc94b475284e5003525db5078663c5087db82"
Expand Down Expand Up @@ -3452,7 +3460,7 @@ chalk@^2.0.0, chalk@^2.4.1:
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"

chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0:
chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1:
version "4.1.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
Expand Down

0 comments on commit eede511

Please sign in to comment.