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.

Files for sphinx-fortran, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size sphinx-fortran-1.1.1.tar.gz (36.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page