This directory can be used to save your own patterns, which then get made into a pattern swatch.
Example: https://felixroos.github.io/strudel/swatch/
1. fork the strudel repo on github
2. clone your fork to your machine git clone https://github.com/<your-username>/strudel.git strudel && cd strudel
6. edit website/astro.config.mjs to use site: https://<your-username>.github.io and base /strudel, like this
const site = 'https://<your-username>.github.io';
const base = '/strudel';git add . && git commit -m "site config" && git push --set-upstream origin- go to settings -> pages and select "Github Actions" as source
- go to settings -> environments -> github-pages and press the edit button next to
mainand type inpatternuary(under "Deployment branches") - go to Actions ->
Build and Deployand clickRun workflowwith branchpatternuary
Alternatively, github pages allows you to use a custom domain, like https://mycooldomain.org/swatch/. See their documentation for details.
If you want to automatically deploy your site on push, go to deploy.yml and change workflow_dispatch to push.
- install dependencies with
npm run setup - run dev server with
npm run repland openhttp://localhost:4321/strudel/swatch/
Your tests might fail if the code does not follow prettiers format.
In that case, run npm run codeformat. To disable that, remove npm run format-check from test.yml
To update your fork, you can pull the main branch and merge it into your patternuary branch.