Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docs through MKDocs, hosted on Github Pages #72

Merged
merged 12 commits into from
Jun 25, 2024
Merged

Conversation

Snailed
Copy link
Collaborator

@Snailed Snailed commented May 21, 2024

This PR adds type hints and docs through mkdocs and mkdocstrings. The docs are hosted on Github Pages through Github Actions. A current version can be seen on https://snailed.github.io/carbontracker/ and the final version will be seen on http://lfwa.github.io/carbontracker/.
I plan to change the DNS settings such that the page is accessible through docs.carbontracker.info or similar and then make a link at carbontracker.info.

@PedramBakh PedramBakh marked this pull request as ready for review May 21, 2024 20:33
Snailed and others added 9 commits June 25, 2024 16:02
When the tracker thread is stopped in Python 3.11 in Github Actions, the last message logged to the INFO channel is not "Monitoring thread ended." but instead "The following components were found: [...]".
This breaks our tests only in Github Actions. My hypothesis is that this happens due to a race, so this commit tests that in CI.

added informative comment
Add Python 3.8-3.11 in CI test setup, and fix several version-related bugs.
Fixed syntax error
type hints

code formatting
When the tracker thread is stopped in Python 3.11 in Github Actions, the
last message logged to the INFO channel is not "Monitoring thread
ended." but instead "The following components were found: [...]".
This breaks our tests only in Github Actions. My hypothesis is that this
happens due to a race, so this commit tests that in CI.

added informative comment

Added doc infrastructure using mkdocs and mkdocstrings

added parsing docs

added better CLI docs

Improved CarbonTracker docs

Redid first page of docs

Fix on python3.8 and add slightly more documentation

HPC documentation

Parsing documentation

align spelling of carbontracker in docs

move HPC to index.md

Expand Getting Started

added Github action for pushing docs

fix yml formatting

Many type improvements

more type hints
type hints

code formatting

fix test
make tests time-independent

fixed some typing
@Snailed Snailed merged commit 8fcb54a into lfwa:dev Jun 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants