-
-
Notifications
You must be signed in to change notification settings - Fork 269
docs: port documentation to Markdown with Zensical theme #1073
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
594bc3f
docs: port documentation to Markdown with Zensical theme
davidberenstein1957 9af956d
chore: update documentation and configuration for Zensical theme
davidberenstein1957 7cc4f50
fix: Cli OIDC fix (#1066)
prmths128 07d5c67
fix(api): logout flow in the dashboard (#1074)
inimaz b8487f1
Add i5-1335U
9584aa2
clean doc
6ab4d02
doc
38ec6f6
Fix You have a 13th Gen Intel(R) Core(TM) i5-1335U but we don't know it
cb27580
bump
f8bb890
Add more test
a5a08d1
coverage config
7f62740
doc rebase
527f5f2
Merge origin/master into docs/port-to-zensical
davidberenstein1957 49eeca4
fix(ci): resolve pre-commit isort and flaky test
davidberenstein1957 30c16a3
refactor(tests): format assertion for better readability in test_emis…
davidberenstein1957 ae58c82
docs: add standalone installer instructions for non-Python users
davidberenstein1957 fd4f7b4
ci: add GitHub Actions workflows for documentation build and deployment
davidberenstein1957 8b3ef28
ci: update deploy-docs workflow to include script path and fix pip co…
davidberenstein1957 0b1212e
ci: update deploy-docs workflow to include script path and fix pip co…
davidberenstein1957 d28d197
ci: refactor build-docs workflow to streamline documentation build pr…
davidberenstein1957 88aef32
ci: update workflows to enhance documentation build and deployment
davidberenstein1957 48a74d6
docs(quickstart): add login and no-api guidance in markdown docs
LarytheLord f002240
fix(docs): address PR review comments
davidberenstein1957 397726e
docs: update parameter documentation and fix formatting issues
davidberenstein1957 b5051b9
docs: enhance documentation and update mkdocs configuration
davidberenstein1957 c9ab24c
chore: update dependencies and workflow configurations
davidberenstein1957 41b51c1
Merge pull request #1081 from LarytheLord/docs/quickstart-login-step-…
davidberenstein1957 7640a86
Merge branch 'master' into docs/port-to-zensical
SaboniAmine 623eb40
fix: add new line back between 1: & 2:
SaboniAmine 9d7d42d
chore: add new lines for improved readability in various scripts
davidberenstein1957 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: Build Documentation | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| paths: | ||
| - "docs/**" | ||
| - "mkdocs.yml" | ||
| pull_request: | ||
| branches: [master] | ||
| paths: | ||
| - "docs/**" | ||
| - "mkdocs.yml" | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3.2.4 | ||
| with: | ||
| version: "latest" | ||
|
|
||
| - name: Set up Python | ||
| run: uv python install 3.11 | ||
|
|
||
| - name: Install dependencies | ||
| run: uv sync --group doc | ||
|
|
||
| - name: Build docs | ||
| run: uv run zensical build -f mkdocs.yml --clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # Deploys docs to GitHub Pages with versioning. | ||
| # Configure GitHub Pages: Settings > Pages > Source = "Deploy from a branch" > Branch = gh-pages | ||
|
|
||
| # Docs deploy to gh-pages with versioning. Set Pages: Settings > Pages > Source = gh-pages branch. | ||
|
|
||
| name: Deploy documentation | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| paths: | ||
| - "docs/**" | ||
| - "mkdocs.yml" | ||
| - "scripts/deploy-docs.sh" | ||
| - "codecarbon/_version.py" | ||
| - "pyproject.toml" | ||
| release: | ||
| types: [published] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: deploy-docs | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write # push to gh-pages | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3.2.4 | ||
| with: | ||
| version: "latest" | ||
|
|
||
| - name: Set up Python | ||
| run: uv python install 3.11 | ||
|
|
||
| - name: Install dependencies | ||
| run: uv sync --group doc | ||
|
|
||
| - name: Get version | ||
| id: version | ||
| run: | | ||
| if [[ "${{ github.event_name }}" == "release" ]]; then | ||
| VERSION="${{ github.event.release.tag_name }}" | ||
| VERSION="${VERSION#v}" | ||
| else | ||
| VERSION=$(uv run python -c "from codecarbon._version import __version__; print(__version__)") | ||
| fi | ||
| echo "full=$VERSION" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Build docs | ||
| run: uv run zensical build -f mkdocs.yml --clean | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| env: | ||
| GITHUB_REPOSITORY: ${{ github.repository }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| chmod +x scripts/deploy-docs.sh | ||
| scripts/deploy-docs.sh "${{ steps.version.outputs.full }}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,7 @@ venv.bak/ | |
|
|
||
| # mkdocs documentation | ||
| /site | ||
| /deploy | ||
|
|
||
| # mypy | ||
| .mypy_cache/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.