-
Notifications
You must be signed in to change notification settings - Fork 6
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 #41 from blaylockbk/11ty-test
Use 11ty for web app
- Loading branch information
Showing
50 changed files
with
70,978 additions
and
24 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 |
---|---|---|
|
@@ -22,3 +22,5 @@ _version.py | |
.gitpod.yml | ||
|
||
.DS_Store | ||
node_modules | ||
dev |
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,6 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.python", | ||
"bungcip.better-toml" | ||
"bungcip.better-toml", | ||
"ginfuru.better-nunjucks" | ||
] | ||
} |
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
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 @@ | ||
// const eleventyPluginFilesMinifier = require("@sherby/eleventy-plugin-files-minifier"); | ||
|
||
module.exports = function(eleventyConfig) { | ||
// eleventyConfig.addPlugin(eleventyPluginFilesMinifier, { | ||
// ignoreCustomFragments: [/<py-[\s\S]*?<\/py-.*?>/gm] | ||
// }); | ||
eleventyConfig.addPassthroughCopy("pages/app/assets"); | ||
return { | ||
dir: { | ||
input: "pages", | ||
layouts: "_includes/_layouts", | ||
markdownTemplateEngine: "njk", | ||
htmlTemplateEngine: "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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Developer Guide | ||
|
||
**TL;DR** To build the pages, do the following: | ||
|
||
1. Install Node.js (version 16+). | ||
``` | ||
conda install -c conda-forge nodejs | ||
``` | ||
2. `cd 11ty-site` - Every time | ||
3. `npm install` - Do once, or anytime a NPM dependency changes | ||
4. `npm run dev` - Builds the full site in _develop mode_, (not tracked by Git). | ||
5. `npm run dev:` - Builds the site without pyscrip in _develop mode_, (not tracked by Git). | ||
6. `npm run build` - Builds the full site in _production mode_, (tracked by Git). | ||
|
||
# SynopticPy App Organization | ||
|
||
- `11ty-site/` contains all the files used to create the SynopticPy app pages. | ||
- `pages/app/` Main page content | ||
- `app/` contains the published site. Don't change anything in this directory; 11ty builds this for you. | ||
|
||
Uses [Nunjucks](https://www.11ty.dev/docs/languages/nunjucks/) as the template language. |
Oops, something went wrong.