This website is built using Hugo, a static website editor, and uses Node.js.
To build it, install Hugo (>= v0.114.0) and Node.js, and then:
git clone https://github.com/clementbiron/clementbiron.com
cd clementbiron.com
npm install
hugohugoThe website will be built in the public directory.
For development purposes:
npm run start:devTo lint the Markdown files use the following command:
npm run lint:markdownTo apply automatic corrections use the following command:
npm run lint:markdown -- --fixTo lint the CSS files use the following command:
npm run lint:cssTo apply automatic corrections use the following command:
npm run lint:css -- --fixTo lint the JavaScript files use the following command:
npm run lint:jsTo automatically fix, where possible, problems reported:
npm run lint:js -- --fixTo lint the HTML files use the following command:
npm run lint:htmlTo automatically fix, where possible, problems reported:
npm run lint:html -- --fixRun the entire test set
npm run testnpm run test:linksnpm run test:htmlNote that because of CloudFlare protection, tests on external links are not run in CI so as not to block on 503 errors.
The main branch is used on production and automatically deployed through GitHub pages. Refer to the configuration file .github/workflows/gh-pages.yml.
For each pull request, a preview is automatically deployed through Netlify and a comment on the GitHub pull request display the necessary information, such as the preview URL. The configuration can be found in netlify.toml file.
The code for this software is distributed under the European Union Public Licence (EUPL) v1.2. Contact the author if you have any specific need or question regarding licensing.