Skip to main content

Sphinx extension to document OCaml libraries

Project description

sphinxcontrib-ocaml is a Sphinx (1.6.3+) extension to document OCaml libraries. It provides a Sphinx domain for OCaml and autodoc-like directives to generate documentation from source code.

It’s licensed under the MIT license. It’s available in two parts, on the Python package index and OPAM (both are required). Its documentation and its source code are on GitHub.

Questions? Remarks? Bugs? Want to contribute? Open an issue!

https://img.shields.io/travis/jacquev6/sphinxcontrib-ocaml/master.svg https://img.shields.io/github/issues/jacquev6/sphinxcontrib-ocaml.svg https://img.shields.io/github/forks/jacquev6/sphinxcontrib-ocaml.svg https://img.shields.io/github/stars/jacquev6/sphinxcontrib-ocaml.svg

Status

sphinxcontrib-ocaml is still highly experimental. Interfaces may be changed unannounced. We welcome all feedback from our daring early users.

Quick start

Install both packages:

$ pip3 install sphinxcontrib-ocaml
$ opam install sphinxcontrib-ocaml

Enable and configure the Sphinx extension in your conf.py file:

extensions.append("ocaml")
primary_domain = "ocaml"  # Optional
ocaml_source_directories = ["src"]
ocaml_findlib_packages = ["batteries", "js_of_ocaml"]

And document your module (in an .rst file):

.. autoocamlmodule:: MyModule

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-ocaml-0.3.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file sphinxcontrib-ocaml-0.3.0.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-ocaml-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3b7d50dd6639118065de5dfb806ee66bfa9f08d5310c346b0988fe2249370dc2
MD5 3fc47156ffff0da457f8add8c97ea51b
BLAKE2b-256 14e7b50aef92b56d52744fca00aac6e2c4c1bee9678b71fecfc154d3dda81265

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page