WARNING:
This repository was the previous home of the Fastify website till June 2023.
The new home is nowfastify/website-next
This project is used to build the website for fastify web framework and publish it online.
npm installTo trigger the build of the website you just need to run:
npm run buildThis will execute all the steps necessary to create a build (static website).
If you are developing you can run:
npm startThis will trigger the build and also start a live server that will allow you to visualize the changes you are performing on the website.
(note that every time you make a change to the assets that constitutes the content of the website you will need to launch npm run build:website to trigger a rebuild)
In case you are interested in knowing more about how the build process works, here are the main steps that are performed during its execution:
Checkout the Package scripts to understand which files trigger these actions in case you want to have a look at the code for any of the steps described above.
The website is published automatically Circle CI using GitHub pages (branch gh-pages).
Every time there's a change on master, if the build was created successfully, then it is automatically published on GitHub Pages.
In order for this to work, Circle CI will need to be configured correctly providing all the necessary environment variables:
DOMAIN: the custom domain to be used in GitHub pages (www.fastify.io)GH_EMAIL: the email of the GitHub user authorized in CircleCi to push to the gh-pages branchGH_NAME: the username of the GitHub user authorized in CircleCi to push to the gh-pages branchGH_TOKEN: (optional) a GitHub personal access token for the user specified in GH_NAME.
If this is present the API calls to GitHub will be authenticated.CLOUDFLARE_EMAIL: the email of the CloudFlare accountCLOUDFLARE_AUTH_KEY: the authorization key to perform API calls on CLoudFlare APIsCLOUDFLARE_ZONE: the ID of the CloudFlare Zone associated to the current domainEveryone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue or by sending a pull request.
Licensed under MIT License. © OpenJS Foundation and The Fastify team.