This is README.md for QUAK.COM.PL website maintenance.
Please don't complain about this code base, I'm writing it in my free time mostly, still... code contains seniorish flavors.
Codebase is focused on MDX -> static HTML export (with Nextra, Next.js, Markdown, React) + CD
$ pnpm i
$ pnpm dev # localhost:3000
$ cd scripts/deploy
$ pnpm i
To run the deploy script to the CPanel, you need to have the following environment variables set:
Store variables in
quak-docs/sripts/deploy/.env
# Username and password for the CPanel USERNAME=your-username PASSWORD=your-password
Use when you want to deploy the website for the first time or when you want to deploy a new version of the website.
$ sh scripts/build-deploy.sh 'Archive_19_05_2024_3.zip'
Use to deploy another version of the website. Useful when the website is already deployed and you want to deploy another version from given zip package.
Remember to put
Archive_17_05_2024.zip
in thequak-docs/out/
directory.
$ sh scripts/change-version.sh 'Archive_17_05_2024.zip'