The website that presents Open Terms Archive to the general public.
Set the UPTIMEROBOT_API_KEY environment variable:
- Locally: copy the
.env.examplefile to.envand set the value - On GitHub: Repository Settings → Secrets and variables → Actions → New repository secret
- On Netlify: Site configuration → Environment variables → Add a variable
Install Hugo in version 0.147.1 edition extended.
- Add Open Terms Archive homebrew tap:
brew tap OpenTermsArchive/homebrew-tap - Remove any previous installation of Hugo:
brew unlink hugo - Install Hugo:
brew install hugo@0.147.1
See Open Terms Archive homebrew tap for more information.
Install Node.js, then install npm dependencies with the following commands:
git clone https://github.com/OpenTermsArchive/opentermsarchive.org
cd docs
npm installhugoThe 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.
npm run test:e2eThe 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.
See our contributing guide.
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.