Skip to content

Commit a4cd98b

Browse files
committed
Update 0.4.5: suppress synopsis in module
1 parent 5acfebc commit a4cd98b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = 'sphinxfortran_ng'
3-
version = '0.4.4'
3+
version = '0.4.5'
44
authors = [{name = "Lorenzo Crippa", email="[email protected]"}]
55
description = "An improved version of the sphinx-fortran python module"
66
readme = "README.md"

src/sphinxfortran_ng/fortran_autodoc.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ def format_routines(self, block, indent=0):
16841684
'Subroutines and functions', indent=indent) + fdecs
16851685
return routines
16861686

1687-
def format_module(self, block, indent=0):
1687+
def format_module(self, block, indent=0, print_synopsis=False):
16881688
"""Recursively format a module and its declarations"""
16891689

16901690
# Declaration of the module
@@ -1724,8 +1724,12 @@ def format_module(self, block, indent=0):
17241724
if self.hide_output:
17251725
return declaration
17261726
else:
1727-
return declaration + synopsis + description + quickaccess + \
1728-
use + types + variables + routines
1727+
if print_synopsis:
1728+
return declaration + synopsis + description + quickaccess + \
1729+
use + types + variables + routines
1730+
else:
1731+
return declaration + description + quickaccess + \
1732+
use + types + variables + routines
17291733

17301734
def format_srcfile(
17311735
self,

0 commit comments

Comments
 (0)