Skip to content

feat: automate documentation deployment to GitHub Pages via CI/CD#91

Draft
Copilot wants to merge 3 commits into
devfrom
copilot/fix-30abd3be-3a7f-446a-97e0-85142c4faaf0
Draft

feat: automate documentation deployment to GitHub Pages via CI/CD#91
Copilot wants to merge 3 commits into
devfrom
copilot/fix-30abd3be-3a7f-446a-97e0-85142c4faaf0

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 1, 2025

Overview

Implements automated documentation publishing to GitHub Pages using GitHub Actions, following the Material for MkDocs deployment guide.

Closes #80

Changes

New GitHub Actions Workflow

Created .github/workflows/docs.yml that automatically:

  • Triggers on pushes to dev or main branches
  • Sets up Python 3.12 and installs dependencies using uv (consistent with project setup)
  • Builds documentation with Material for MkDocs
  • Deploys to the gh-pages branch using mkdocs gh-deploy

The workflow includes proper configuration with:

  • fetch-depth: 0 to ensure full git history for deployment
  • contents: write permission for pushing to gh-pages
  • Git user configuration for automated commits

Documentation Improvements

  • Fixed Repository URLs: Corrected references from oxytcmri-legacy to oxytcmri-dti-processing in:

    • mkdocs.yml - site_url configuration
    • README.md - CI badges and documentation links
  • Added Deployment Badge: New workflow status badge shows documentation deployment status at a glance

  • Updated Documentation Section: README now explains that documentation is automatically deployed via CI/CD, with manual deployment remaining as an optional fallback

Documentation Site

Once merged, documentation will be automatically published at:
https://tomboulier.github.io/oxytcmri-dti-processing/

Testing

  • ✅ Verified documentation builds successfully locally
  • ✅ Confirmed all dependencies install correctly via uv
  • ✅ Validated workflow follows GitHub Actions best practices
  • ✅ Tested that site directory is properly gitignored

The workflow will run automatically on the next push to dev or main branches.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • downloads.sourceforge.net
    • Triggering command: wget -O c3d.tar.gz REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Publish documentation online</issue_title>
<issue_description>- Use Read the docs

  • Automate via CI/CD pipeline</issue_description>

Comments on the Issue (you are @copilot in this section)

@tomboulier Instead of [Read the docs](https://about.readthedocs.com/), I used the [publishing capacities of Materials for MkDocs](https://squidfunk.github.io/mkdocs-material/publishing-your-site/). For the moment, it is done manually; to close the issue, the CI/CD pipeline remains to be implemented (follow [these steps](https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions)): see #80.
Fixes #35

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits October 1, 2025 06:51
Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com>
Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Oct 1, 2025

Copilot AI changed the title [WIP] Publish documentation online feat: automate documentation deployment to GitHub Pages via CI/CD Oct 1, 2025
Copilot AI requested a review from tomboulier October 1, 2025 06:54
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.

Automate documentation deployment Publish documentation online

2 participants