Skip to content

Add GitHub Pages deployment workflow#137

Merged
monodera merged 1 commit into
mainfrom
u/monodera/deploy-docs-github-pages
Mar 25, 2026
Merged

Add GitHub Pages deployment workflow#137
monodera merged 1 commit into
mainfrom
u/monodera/deploy-docs-github-pages

Conversation

@monodera
Copy link
Copy Markdown
Contributor

Summary

  • Add .github/workflows/deploy_docs_github_pages.yml to deploy MkDocs documentation to GitHub Pages on every push to main (and via manual trigger)
  • Rename deploy_docs.ymldeploy_docs_naoj.yml to preserve the existing NAOJ server deployment
  • Update site_url in mkdocs.yml to https://subaru-pfs.github.io/ets_target_database/
  • Add /_site to .gitignore

Workflow details

The new workflow uses the GitHub Actions Pages API (build + deploy jobs) with minimal permissions (pages: write, id-token: write). System dependencies for mkdocs-material[imaging] (libcairo2-dev, libpango1.0-dev) are installed to support the social plugin.

Test plan

🤖 Generated with Claude Code

- Add deploy_docs_github_pages.yml using GitHub Actions Pages API (build + deploy jobs)
- Rename deploy_docs.yml to deploy_docs_naoj.yml to keep NAOJ server deployment
- Update site_url in mkdocs.yml to https://subaru-pfs.github.io/ets_target_database/
- Add /_site to .gitignore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds automated documentation deployment to GitHub Pages while keeping the existing NAOJ self-hosted deployment, and updates MkDocs configuration/output ignore patterns to match.

Changes:

  • Added a new GitHub Actions workflow to build and deploy MkDocs docs to GitHub Pages on pushes to main and via manual trigger.
  • Preserved the NAOJ deployment by introducing deploy_docs_naoj.yml for the self-hosted runner deployment.
  • Updated MkDocs site_url for the GitHub Pages URL and added /_site to .gitignore.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
mkdocs.yml Updates site_url to the GitHub Pages project URL.
.gitignore Ignores _site build output directory used by the new Pages workflow.
.github/workflows/deploy_docs_naoj.yml Adds/renames the NAOJ self-hosted deployment workflow.
.github/workflows/deploy_docs_github_pages.yml Introduces GitHub Pages build + deploy workflow using Pages actions and uv-based MkDocs build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@monodera monodera merged commit 995b180 into main Mar 25, 2026
5 of 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