Skip to content

green-coding-solutions/documentation

Repository files navigation

Documentation of the Green Metrics Tool

This is only the source.

Here is the Live Version

Updating

The theme is a child-theme of Doks.

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:

  • /layouts/partials/* (Removed integrity protection to run on Cloudflare CDN)
  • /layouts/index.headers (Removed CSP netlify)
  • /layouts/sitemap.xml (was not rendering without)

Local build

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published