/kepler-doc

Kepler uses eBPF to probe energy related system stats and exports as Prometheus metrics

Primary LanguageHTMLApache License 2.0Apache-2.0

Documentation for Kepler

Follow https://sustainable-computing.io/ to see documentation

Install MkDocs

Requirements:

  • Python 3.8
pip install mkdocs
pip install mkdocs-material

Commands

  • mkdocs new [dir-name] - Create a new project.
  • mkdocs serve - Start the live-reloading docs server.
  • mkdocs build - Build the documentation site.
  • mkdocs -h - Print help message and exit.

Layout

The website layout can be found in ./mkdocs.yml.

Running in GitHub Codespaces

GitHub codespaces is a pre-configured, virtual, temporary and throwaway environment that you can use to build, modify and contribute to the Kepler docs. GitHub codespaces provides a generous free tier but always delete your environment after use to avoid bill shock.

  1. Fork this repo
  2. In your fork, click the green Code button
  3. Switch across to the Codespaces tab
  4. Click "Create codespace on main"
  5. A new tab will open and your environment will be built
  6. Once built, type mkdocs serve
  7. A box will appear informing you that the site is available on port 8000. Click the link to view the site
  8. Make your changes as normal to the files within the docs/ folder. The preview site will live reload
  9. When you're satisfied with your updates, commit them to your fork: git add -A && git commit -sm "docs: a commit message here" && git push
  10. Create a PR and you're done