Boilerplate (framework?) for creating printable developer cheatsheets. See src/eleventy/cheatsheets directory for examples.
- Node.js
- Docker
Download the latest release. Run following commands in the top level directory of the project:
npm ci
bash setup-docker.sh
npm run serve
If you want to modify the stylesheets you have to execute following command in separated terminal:
npm run serve:styles
-
Generate an API key on the Google Fonts. Rename config.js.dist to config.js and fill with your api key.
-
Download fonts. Ex.:
node bin/dlfonts.js Roboto 'Open Sans'
- Add font imports to src/styles/includes/fonts.postcss
@import url(fonts/Roboto-Black.postcss);
@import url(fonts/Roboto-BlackItalic.postcss);
/* etc. */
- Rebuild the container
bash setup-docker.sh
And finally build your own beautiful, printable stylesheets. :) You can find the generated pdf files in the dist/pdf directory.
npm run build