Skip to content

Add MkDocs-based GitHub Pages documentation site with PR preview#175

Merged
Ki-Seki merged 9 commits into
mainfrom
copilot/add-github-page-docs
May 5, 2026
Merged

Add MkDocs-based GitHub Pages documentation site with PR preview#175
Ki-Seki merged 9 commits into
mainfrom
copilot/add-github-page-docs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 2, 2026

GIMKit lacked a dedicated documentation page, limiting discoverability and onboarding. Adds a MkDocs documentation site (using the Material theme) deployable via GitHub Pages, with live PR previews for docs changes.

Changes

  • mkdocs.yml — MkDocs configuration with Material theme, dark/light mode toggle, code copy buttons, and a structured nav
  • docs/index.md — Home page with feature overview and design philosophy
  • docs/installation.md — Installation instructions (standard and vLLM variant)
  • docs/quickstart.md — Quick start guide with code examples
  • docs/usage.md — Full usage guide covering masked tags, queries, accessing results, and vLLM backends
  • docs/api.md — API reference tables and examples
  • docs/requirements.txt — Pins mkdocs and mkdocs-material for CI
  • .github/workflows/docs.yml — Installs MkDocs, runs mkdocs build --strict, and deploys site/ to the gh-pages branch on push to main (path-filtered to docs/** and mkdocs.yml) and on workflow_dispatch, using peaceiris/actions-gh-pages@v4 with keep_files: true so PR preview subdirectories are preserved
  • .github/workflows/docs-preview.yml — Builds docs and deploys a live preview to https://sculptai.github.io/GIMKit/pr-preview/pr-{number}/ on every PR touching docs/** or mkdocs.yml; posts a bot comment with the preview URL and cleans up the preview when the PR is closed
  • pyproject.tomlDocumentation URL updated to https://sculptai.github.io/GIMKit

💡 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.

Co-authored-by: Ki-Seki <60967965+Ki-Seki@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub page documentation for GIMKit tool Add simple GitHub Pages documentation site Mar 2, 2026
@Ki-Seki
Copy link
Copy Markdown
Member

Ki-Seki commented Mar 2, 2026

@copilot I mean you should not use complicated doc frameworks, but you have to use frameworks (eg. mkdocs). Choose a proper one and implement it.

Copilot AI and others added 2 commits March 2, 2026 03:29
Co-authored-by: Ki-Seki <60967965+Ki-Seki@users.noreply.github.com>
Co-authored-by: Ki-Seki <60967965+Ki-Seki@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 2, 2026

@copilot I mean you should not use complicated doc frameworks, but you have to use frameworks (eg. mkdocs). Choose a proper one and implement it.

Replaced the plain HTML/CSS approach with MkDocs (Material theme) in commit 2bdf744.

The setup is:

  • mkdocs.yml — config with Material theme, dark/light mode toggle, code copy buttons
  • docs/ — Markdown source files: index.md, installation.md, quickstart.md, usage.md, api.md
  • docs/requirements.txt — pins mkdocs and mkdocs-material
  • .github/workflows/docs.yml — runs mkdocs build --strict and deploys site/ to GitHub Pages

The site builds cleanly with mkdocs build --strict and site/ is already excluded via .gitignore.

Copilot AI changed the title Add simple GitHub Pages documentation site Add MkDocs-based GitHub Pages documentation site Mar 2, 2026
@Ki-Seki
Copy link
Copy Markdown
Member

Ki-Seki commented May 5, 2026

@copilot make pr branch’s MkDocs docs previewable

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 5, 2026

@copilot make pr branch’s MkDocs docs previewable

Done in commit a051894. Here's what was added:

  • .github/workflows/docs-preview.yml — triggers on PRs that touch docs/** or mkdocs.yml, builds the docs with mkdocs build --strict, and deploys a live preview via rossjrw/pr-preview-action@v1. When the PR is closed the preview is automatically cleaned up.
  • .github/workflows/docs.yml — switched production deployment from GitHub Pages environments to the gh-pages branch (peaceiris/actions-gh-pages@v4 with keep_files: true) so production and PR previews can coexist on the same branch.

Once the repo's GitHub Pages source is set to the gh-pages branch, each PR will get a bot comment with a link to https://sculptai.github.io/GIMKit/pr-preview/pr-{number}/.

Copilot AI changed the title Add MkDocs-based GitHub Pages documentation site Add MkDocs-based GitHub Pages documentation site with PR preview May 5, 2026
Copilot finished work on behalf of Ki-Seki May 5, 2026 07:26
Copilot AI requested a review from Ki-Seki May 5, 2026 07:26
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://SculptAI.github.io/GIMKit/pr-preview/pr-175/

Built to branch gh-pages at 2026-05-05 09:04 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Ki-Seki and others added 4 commits May 5, 2026 16:33
…ve commands; enhance mkdocs.yml with plugins and theme adjustments

Co-authored-by: Copilot <copilot@github.com>
…for docs preview and deployment

Co-authored-by: Copilot <copilot@github.com>
@Ki-Seki Ki-Seki marked this pull request as ready for review May 5, 2026 09:07
@Ki-Seki Ki-Seki merged commit ac15042 into main May 5, 2026
17 checks passed
@Ki-Seki Ki-Seki deleted the copilot/add-github-page-docs branch May 5, 2026 09:07
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