Template repo for Fluid article. To create a new online article:
- Create a new repository from this template
- In the Workflow Permissions settings for the new repo, enable the following for GitHub Actions:
- Read and write permissions
- Create and approve pull requests
- Once the
test-deploy
workflow has succeeded, go to the Pages settings for the repo and configure GitHub Pages to deploy from thegh-pages
branch - When
pages-build-deployment
completes your website should be live
- git
- Node.js >=18.0.0
- yarn >= 1.22
Windows users may also require
- Ubuntu WSL
-
Run
yarn install
-
Run
yarn install-article
to copy the example site from@exploreable-viz/fluid
To bundle a website:
- Run
yarn bundle-website $WEBSITE_NAME
This will create a folder in dist
called $WEBSITE_NAME
.
To run the website in the browser:
- run
npx http-serve dist/$WEBSITE_NAME -a 127.0.0.1 -c-1
- Open browser at localhost
To run your website tests:
- Run
yarn website-test $WEBSITE_NAME
If you have a single website called article
, the following are synonyms for the above:
yarn bundle
yarn serve
yarn test