Skip to content

Commit e0d6ebe

Browse files
fix: add CNAME to deploy script and set site_url for docs.codecarbon.io (#1086)
- deploy-docs.sh: write CNAME file so every deploy includes custom domain - mkdocs.yml: set site_url to docs.codecarbon.io for correct asset paths Merging to master will trigger the deploy-docs workflow, which will push to gh-pages with CNAME included. Made-with: Cursor
1 parent db0d749 commit e0d6ebe

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
site_name: CodeCarbon
22
site_description: Measure and reduce carbon emissions from computing - Official Documentation
3-
site_url: https://mlco2.github.io/codecarbon/
3+
site_url: https://docs.codecarbon.io/
44
docs_dir: docs
55
site_dir: site
66
repo_url: https://github.com/mlco2/codecarbon

scripts/deploy-docs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ cat > index.html << 'HTMLEOF'
6868
</html>
6969
HTMLEOF
7070

71+
echo "docs.codecarbon.io" > CNAME
72+
7173
git config user.name "github-actions[bot]"
7274
git config user.email "github-actions[bot]@users.noreply.github.com"
7375
git add -A

0 commit comments

Comments
 (0)