Skip to content

Commit

Permalink
Merge pull request #40 from genai-impact/docs/branding
Browse files Browse the repository at this point in the history
Branding of the documentation
  • Loading branch information
samuelrince authored Apr 19, 2024
2 parents d2236fe + 7438581 commit 6c9d724
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 16 deletions.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
EcoLogits
============

**EcoLogits** tracks and estimates the energy consumption and environmental impacts of using generative AI models through APIs.
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./docs/assets/logo_dark.png">
<img alt="EcoLogits" width="500" height="118" src="./docs/assets/logo_light.png">
</picture>
</p>

🌱 **EcoLogits** tracks the energy and environmental footprint of using generative AI models through APIs.


## ⚙️ Installation
Expand Down
1 change: 1 addition & 0 deletions docs/assets/leaf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/assets/logo.png
Binary file not shown.
Binary file added docs/assets/logo_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/logo_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/coming_soon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

!!! warning

This page is under construction.
32 changes: 32 additions & 0 deletions docs/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*:root {*/
/* --md-primary-fg-color: #0b3b36;*/
/* !*--md-primary-fg-color: #0b3b36;*!*/
/* !*--md-primary-fg-color--light: #ff0000;*!*/
/* !*--md-primary-fg-color--dark: #ffea00;*!*/
/* --md-primary-bg-color--light: #0b3b36*/
/*}*/

/*
Dark green: 0b3b36
Light green: 00bf63
*/


[data-md-color-scheme="ecologits"] {
--md-primary-fg-color: #0b3b36;
--md-typeset-a-color: #00914b;
--md-accent-fg-color: #00bf63;
}

[data-md-color-scheme="ecologits"] img[src$="#only-dark"],
[data-md-color-scheme="ecologits"] img[src$="#gh-dark-mode-only"] {
display: none; /* Hide dark images in light mode */
}

[data-md-color-scheme="slate"] {
--md-primary-fg-color: #0b3b36;
--md-hue: 200;
--md-default-fg-color: hsla(var(--md-hue), 15%, 95%, 1);
--md-typeset-a-color: #00bf63 !important;
--md-accent-fg-color: #008343;
}
10 changes: 8 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Getting Started
#

<figure markdown="span">
![EcoLogits](assets/logo_light.png#only-light)
![EcoLogits](assets/logo_dark.png#only-dark)
</figure>

**EcoLogits** tracks the energy consumption and environmental impacts of using generative AI models through APIs.

**EcoLogits** tracks and estimates the energy consumption and environmental impacts of using generative AI models through APIs.

## Installation

Expand Down
10 changes: 10 additions & 0 deletions docs/js/katex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
})
})
29 changes: 20 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,59 @@ site_url: https://ecologits.ai
repo_name: genai-impact/ecologits
repo_url: https://github.com/genai-impact/ecologits


nav:
- 'Getting Started': index.md
- 'Get Started':
- 'Welcome to EcoLogits': index.md
- 'Tutorial': coming_soon.md
- 'Methodology': coming_soon.md
- 'API Reference': coming_soon.md


theme:
name: material
logo: assets/logo.png
logo: assets/leaf.svg
favicon: assets/leaf.svg
font:
text: Roboto
palette:
- scheme: default
primary: green
- scheme: ecologits
primary: custom
accsent: custom
toggle:
icon: material/lightbulb-outline
name: Switch to dark mode
- scheme: slate
primary: green
toggle:
icon: material/lightbulb
name: Switch to light mode
features:
- navigation.tabs
- content.tabs.link
- content.code.copy
- content.code.annotate

extra_css:
- css/extra.css
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.css

extra_javascript:
- js/katex.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/contrib/auto-render.min.js

watch:
- docs


plugins:
- search


markdown_extensions:
- attr_list
- md_in_html
- tables
- admonition
- pymdownx.arithmatex:
generic: true
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
Expand All @@ -57,4 +69,3 @@ markdown_extensions:
- pymdownx.details
- pymdownx.tabbed:
alternate_style: true

0 comments on commit 6c9d724

Please sign in to comment.