Skip to main content

Fortran domain and autodoc extensions to Sphinx

Project description


This package provides two Sphinx ( extensions to the Fortran (90) language:

  • sphinxfortran.fortran_domain: Sphinx domain for fortran.

  • sphinxfortran.fortran_autodoc: Auto-documenting fortran code.


This package has the same license as VACUMM ( from which it originates: CeciLL-A (, which is compatible with the GPL.


The sphinx and numpy packages.


With pip:

pip install sphinx-fortran

With conda:

conda install -c vacumm -c conda-forge sphinx-fortran

From sources:

git clone
cd sphinx-fortran
python install

Quick start

  1. Add this extension to your sphinx

  2. List you fortran source files in the variable fortran_src of your

  3. Generate their documentation in rst files using directives like:

    .. f:automodule:: mymodule

Bugs and requests

Please go to this GitHub page:


Stephane Raynaud (stephane.raynaud(at)

Thanks: Thomas Gastine and other pull request contributors.



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

sphinx-fortran-1.1.1.tar.gz (36.3 kB view hashes)

Uploaded Source

Supported by

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