-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 826b98a
Showing
22 changed files
with
8,527 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// 11ty configuration | ||
module.exports = function(config) { | ||
// avoid ignoring generated files such as css | ||
config.setUseGitIgnore(false); | ||
|
||
config.addPassthroughCopy('./src/css/'); | ||
config.addPassthroughCopy('./src/js/'); | ||
config.addPassthroughCopy('./src/images/'); | ||
|
||
// Add the navigation plugin | ||
config.addPlugin( require('@11ty/eleventy-navigation') ); | ||
|
||
// We want the attrs and bracketed-spans extensions | ||
let markdownIt = require("markdown-it"); | ||
config.setLibrary("md", | ||
markdownIt({ html: true }) | ||
.use(require("markdown-it-attrs")) | ||
.use(require('markdown-it-div')) | ||
.use(require("markdown-it-bracketed-spans"))); | ||
|
||
return { | ||
markdownTemplateEngine: "njk", | ||
htmlTemplateEngine: "njk", | ||
dir: { | ||
input: 'src' | ||
//output: 'docs' // default: _site | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Eleventy Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
pull_request: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# The following are for the Eleventy build | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: npm ci | ||
|
||
- run: npm run build | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
_site |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
all: build | ||
|
||
build: | ||
npm run build | ||
|
||
update: | ||
npm update | ||
|
||
# serve up the site at http://localhost:8080/ | ||
serve: | ||
npm run watch | ||
|
||
# set up npm environment from package.json | ||
init: | ||
npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Template for an 11ty-generated site |
Oops, something went wrong.