-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from camchenry/add-eleventy-site
Merge to main
- Loading branch information
Showing
11 changed files
with
6,228 additions
and
10 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,16 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Build | ||
run: "cd docs && npm run build" | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_site | ||
publish_branch: docs |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ pnpm-lock.yaml | |
yarn.lock | ||
.nyc_output | ||
*.map | ||
docs/_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,23 @@ | ||
module.exports = function (eleventyConfig) { | ||
// Copy assets to the output directory as-is | ||
eleventyConfig.addPassthroughCopy("img"); | ||
eleventyConfig.addPassthroughCopy("css"); | ||
eleventyConfig.addPassthroughCopy("js"); | ||
eleventyConfig.addPassthroughCopy("vendor"); | ||
eleventyConfig.addPassthroughCopy("favicon.ico"); | ||
|
||
return { | ||
// Control which files Eleventy will process | ||
// e.g.: *.md, *.njk, *.html, *.liquid | ||
templateFormats: ["html", "njk"], | ||
// Process .html files with nunjucks | ||
htmlTemplateEngine: "njk", | ||
// Path prefix for URLs | ||
pathPrefix: "/", | ||
// Config for input/output/data/etc. directories | ||
dir: { | ||
input: ".", | ||
output: "_site", | ||
}, | ||
}; | ||
}; |
4 changes: 4 additions & 0 deletions
4
docs/development/benchmark.html → docs/development/benchmark.njk
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
permalink: '/development/benchmark.html' | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
|
||
|
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
permalink: '/development/index.html' | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
|
||
|
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
permalink: '/development/test.html' | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
|
||
|
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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
permalink: '/index.html' | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
|
||
|
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
--- | ||
permalink: "/online.html" | ||
--- | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
|
Oops, something went wrong.