Skip to content

jalvesz/fspx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP THIS PROJECT IS A WORK IN PROGRESS.

Contributions are very much welcome!!

FSPX: Fortran SPhinX

fspx is a Sphinx extension that provides automatic documentation for Modern Fortran code, including docstrings and procedure argument descriptions.

Features

  • Parses Fortran modules, subroutines, functions, and types.
  • Supports docstrings using Fortran comments (!>).
  • Automatically generates documentation with Sphinx.

Installation

You can install the package using pip:

pip install fspx

If you want to install in developer mode for contributing, from the root folder:

pip install -e .

Usage

To use the extension, add it to your Sphinx configuration (conf.py):

extensions = [
    'fspx'
]

You can then use the autofortran directive as follows:

in your .rst files:

.. autofortran:: path/to/your/fortran/file.f90

in your .md files:

    ```{eval-rst}  
    .. autofortran:: path/to/your/fortran/file.f90
    ```

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages