Repository navigation
add documentation publishing through github-pages - #6380
Conversation
| push: | ||
| branches: | ||
| - devel | ||
| - staging/docs # TODO: remove me |
There was a problem hiding this comment.
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.
| path: ~/.cache | ||
| restore-keys: | | ||
| mkdocs-material- | ||
| - run: pip install mkdocs-material |
There was a problem hiding this comment.
Can we tag it by hash to make it more secure ? 😅
There was a problem hiding this comment.
Sure, added the version to build.env.
Also did a test run with the specified version.
There was a problem hiding this comment.
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 mkdocstarget and add MkDocs tooling/version wiring viabuild.envand 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. |
| 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 |
|
@Rakshith-R , addressed Copilots comments too now. |
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]>
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
And again! |
|
@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 |
Tried this locally, but the toggle between dark/light does not work. We can look into adding a dark theme later. |
|
Deprecation notice: This pull request comes from a fork and was queued with |
Merge Queue Status
This pull request spent 9 seconds in the queue, including 1 second running CI. Required conditions to merge
|
The result of the PR is available for review at https://ceph.github.io/ceph-csi/
New documentation like
docs/index.mdhas been written by IBM Bob. Scripts andconfiguration 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/