Skip to content

add documentation publishing through github-pages - #6380

Merged
mergify[bot] merged 5 commits into
ceph:develfrom
nixpanic:docs/mkdocs
Jul 10, 2026
Merged

mergify[bot] merged 5 commits into
ceph:develfrom
nixpanic:docs/mkdocs

Conversation

@nixpanic

@nixpanic nixpanic commented Jul 3, 2026 •

Copy link
Copy Markdown
Member

The result of the PR is available for review at https://ceph.github.io/ceph-csi/

New documentation like docs/index.md has been written by IBM Bob. Scripts and
configuration to render the site was initially created by Bob as well, but
needed some modifications and cleanups.

The design and tooling is based on what Rook uses for https://rook.io/docs/

@nixpanic nixpanic added ci/skip/e2e skip running e2e CI jobs ci/skip/multi-arch-build skip building on multiple architectures component/docs Issues and PRs related to documentation labels Jul 3, 2026
@nixpanic
nixpanic requested a review from a team July 6, 2026 08:16
Comment thread .github/workflows/publish-docs.yaml Outdated
push:
branches:
- devel
- staging/docs # TODO: remove me

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TODO?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, it's there for generating the published docs when pushing to that branch as a maintainer of the repository. I'll drop it when there are no other comments to address anymore.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@Madhu-1 , this is removed now.

@nixpanic
nixpanic requested review from a team and Madhu-1 July 6, 2026 08:38
Comment thread .github/workflows/publish-docs.yaml Outdated
path: ~/.cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we tag it by hash to make it more secure ? 😅

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, added the version to build.env.

Also did a test run with the specified version.

Madhu-1
Madhu-1 previously approved these changes Jul 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a MkDocs (Material theme) documentation site for Ceph-CSI and publishes it to GitHub Pages, integrating docs-site generation into the repo’s build/developer tooling.

Changes:

  • Add MkDocs configuration (mkdocs.yml) and a new documentation landing page (docs/index.md).
  • Add a GitHub Actions workflow to publish docs to GitHub Pages on pushes to devel.
  • Introduce a make mkdocs target and add MkDocs tooling/version wiring via build.env and the development container image.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
scripts/Dockerfile.devel Installs Python/pip and MkDocs Material in the dev image (currently unpinned).
mkdocs.yml New MkDocs site configuration and navigation for the docs/ tree.
Makefile Adds mkdocs build target; expands clean to remove _output/.
docs/index.md New docs homepage content and links.
build.env Adds pinned MKDOCS_MATERIAL version variable.
.github/workflows/publish-docs.yaml New workflow to install MkDocs Material and deploy to GitHub Pages via mkdocs gh-deploy.

Comment thread scripts/Dockerfile.devel
Comment thread mkdocs.yml Outdated
site_name: Ceph-CSI Documentation
site_description: Container Storage Interface (CSI) drivers for Ceph storage
site_author: Ceph-CSI Contributors
site_url: https://ceph.github.com/ceph-csi
Comment thread docs/index.md Outdated
Comment thread docs/index.md Outdated
Comment thread .github/workflows/publish-docs.yaml
@mergify
mergify Bot dismissed Madhu-1’s stale review July 9, 2026 12:42

Pull request has been modified.

@nixpanic
nixpanic requested a review from Madhu-1 July 9, 2026 12:42
@nixpanic

nixpanic commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

@Rakshith-R , addressed Copilots comments too now.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Comment thread Makefile Outdated
Comment thread scripts/Dockerfile.devel
nixpanic added 5 commits July 10, 2026 09:19
Add mkdocs-material to the development container and create
infrastructure for building documentation:

- Install python3-pip and mkdocs-material in Dockerfile.devel
- Create mkdocs.yml with Material theme and navigation structure
- Add 'make containerized-build TARGET=mkdocs' support to build
  documentation in container with output to _output/docs

The documentation can now be built with:
  make containerized-build TARGET=mkdocs

Assisted-by: AskBob <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Create a comprehensive landing page (docs/index.md) that provides:
- Overview of Ceph-CSI and supported storage types
- Quick links to key documentation sections
- Architecture overview
- Contributing and support information

Assisted-by: AskBob <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
@nixpanic

Copy link
Copy Markdown
Member Author

@Rakshith-R , addressed Copilots comments too now.

And again!

@Rakshith-R Rakshith-R left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks

@Rakshith-R
Rakshith-R requested a review from a team July 10, 2026 07:31
@black-dragon74

Copy link
Copy Markdown
Member

@nixpanic, LGTM. Can we add dark mode while we are at it?

theme:
  name: material
  favicon: images/favicon.ico
  palette:
    - scheme: slate
      media: "(prefers-color-scheme: dark)"
      toggle:
        icon: material/toggle-switch
        name: Bring back the sunshine
    - scheme: default
      media: "(prefers-color-scheme: light)"
      toggle:
        icon: material/toggle-switch-off-outline
        name: Turn off the lights

@nixpanic

Copy link
Copy Markdown
Member Author

@nixpanic, LGTM. Can we add dark mode while we are at it?

Tried this locally, but the toggle between dark/light does not work. We can look into adding a dark theme later.

@mergify

mergify Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Deprecation notice: This pull request comes from a fork and was queued with update_method=rebase and update_bot_account impersonation. This capability will be removed on July 1, 2026. After this date, the merge queue will no longer be able to rebase fork pull requests with this configuration. To avoid disruption, switch to update_method=merge in your queue rule.

@mergify

mergify Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-07-10 07:59 UTC · Rule: default · triggered by merge protections
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged — 2026-07-10 08:00 UTC · at d878fe8ca364e6fea07a8e731d49f1643de9ec4d · rebase

This pull request spent 9 seconds in the queue, including 1 second running CI.

Required conditions to merge

@mergify
mergify Bot merged commit 7e9580b into ceph:devel Jul 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/skip/e2e skip running e2e CI jobs ci/skip/multi-arch-build skip building on multiple architectures component/docs Issues and PRs related to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants