NOTE: This could be simplified in the future to allow fully automatic builds.
- Git clone the talks repo https://github.com/Greenheart/talks
- Run
npm install
in the subdirectory of each talk you want to build. - From the root of the
talks
project, runnpm i && npm run build
- Back in the website project, run
pnpm build
to build project with all talks - Verify build output and deploy.
- Make a copy of
.env.example
and name it.env
. - Add your email to
VITE_EMAIL
in.env
. - Add a strong password to encrypt/decrypt your email to
VITE_PASSWORD
in.env
. - Open a terminal and run
pnpm encrypt:text
. Then copy the output (make sure you get every character) and add it toVITE_PAYLOAD
in.env
. - Now, the email should be accessible in the
<EncryptedEmail />
component. Easily available for users, but most basic spam bots will not be able to extract the email.
- Use
node scripts/title-case.js
to format headings. - Use
node scripts/format-code.js
to ensure code has a consistent style. - Use
<!-- prettier-ignore-start -->
and<!-- prettier-ignore-end -->
to wrap code blocks in blog posts to prevent the main Prettier instance of the codebase to re-format the code blocks after they already have been formatted withnode scripts/format-code.js
. - It's possible to prevent post drafts from rendering by prefixing the file with
_
.
- Font Awesome: LinkedIn & GitHub SVG icons. Licensed under CC BY 4.0