Skip to content

Commit

Permalink
Build site to docs/ directory instead of _site
Browse files Browse the repository at this point in the history
GitHub Pages allows the site to be served from the root directory or
the docs/ directory.
  • Loading branch information
RayDeCampo committed Sep 28, 2021
1 parent a6a09f8 commit 1aa4e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = (eleventyConfig) => {
return {
dir: {
input: 'src',
output: '_site',
output: 'docs',
layouts: '_layouts',
},
templateFormats: ['html', 'liquid', 'md', 'njk']
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "rm -rf ./_site ./assets/css/style.css",
"clean": "rm -rf ./docs ./assets/css/style.css",
"build": "npm run clean && npm run sass && eleventy",
"sass": "sass assets/css/style.scss assets/css/style.css",
"start": "eleventy --serve --watch"
Expand Down

0 comments on commit 1aa4e97

Please sign in to comment.