An open API service indexing awesome lists of open source software.

https://github.com/green-coding-solutions/documentation

Source files for the documentation which can be found under https://docs.green-coding.io
https://github.com/green-coding-solutions/documentation

Last synced: about 2 months ago
JSON representation

Source files for the documentation which can be found under https://docs.green-coding.io

Awesome Lists containing this project

README

          

# Documentation of the Green Metrics Tool

This is only the source.

Here is the [Live Version](https://docs.green-coding.io)

## Updating

The theme is a child-theme of [Doks](https://getdoks.org/docs/).

The main theme is referenced as node_module and thus updating is handled via npm.

Following files have been overloaded and should be checked if they are changed on an update:

- `assets/js/flexsearch.js` (commented out one line due to an Firefox-related issue)
- `/layouts/partials/*` (Removed integrity protection to run on Cloudflare CDN)
- `/layouts/index.headers` (Removed CSP netlify)

## Local build

```bash
npm install
npm run build
```

## Deploying to Cloudflare

- Framework preset: `hugo`
- Build command: `npm install && hugo`
- HUGO_VERSION: `0.99.0`
- NODE_VERSION: `NODE_VERSION`

## Measuring energy for build

If you want to measure the energy just use the `usage_scenario.yml` file inside
which will tell you how much Joules / kWh the build will cost.

You can find all the measurements on https://metrics.green-coding.io/ by searching
for the repository URL.