Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.67 KB

CONTRIBUTING.md

File metadata and controls

57 lines (38 loc) · 2.67 KB

Contributing

Thank you for your interest in contributing to sphinx-mcp. Pull requests are welcome. However, for major changes, please open an issue first to discuss what you would like to change.

Prerequisites

Install uv and just, then install all dependency groups:

just install-all

Enable pre-commit hooks by running the following in the directory where you cloned this project:

just install-pre-commit-hooks

Common tasks

Run just --list to see all available recipes. The most common ones:

just format               # format the code
just lint                 # run all pre-commit hooks against all files
just test                 # run the test suite
just docs-html            # build the HTML documentation
just docs-pdf             # build the PDF documentation and copy it to the project root
just upgrade-dependencies  # upgrade locked dependencies to their latest compatible versions
just vulnerability-scan   # scan dependencies for known vulnerabilities with osv-scanner

To build the PDF documentation with just docs-pdf, you will also need a LaTeX distribution providing xelatex and latexmk (e.g. texlive-xetex and texlive-latex-base on Debian/Ubuntu), plus the Noto Sans JP font installed on your system, since docs/conf.py configures xelatex as the LaTeX engine with Noto Sans JP as the main font.

To run just vulnerability-scan, you will also need osv-scanner installed on your system.

Licensing & Contributions

By contributing to this project, you agree to the following:

  1. License: Your contributions will be licensed under the project's BSD 3-Clause License.
  2. Developer Certificate of Origin (DCO): To ensure a clear chain of ownership, all commits must be "signed-off." This is enforced on pull requests by the dco.yml workflow.

Developer Certificate of Origin (DCO)

By adding Signed-off-by: Your Name <email@example.com> to your commit message (git commit -s), you certify that you have the right to submit the work under the terms of the Developer Certificate of Origin 1.1.

To protect your privacy, you may use your GitHub-provided no-reply email address or any other alias for your sign-off.

If you use the GitHub-provided no-reply email, every signed-off commit will look similar to Signed-off-by: Real Name <username@users.noreply.github.com>.

Contributors are added to CONTRIBUTORS.md.