Skip to content

Commit 3459625

Browse files
committed
Merge pull request #69 from jacobwilliams/robodoc-tests
moved generic robodoc options into .rc file. updated scons file for the...
2 parents c1af80a + c924836 commit 3459625

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,11 @@ set ( SKIP_DOC_GEN FALSE CACHE BOOL
114114
if ( NOT SKIP_DOC_GEN )
115115
find_program ( ROBODOC robodoc )
116116
if ( ROBODOC ) # Found
117-
set ( ROBODOC_OPTIONS --rc ${CMAKE_SOURCE_DIR}/robodoc.rc --tabsize 4 --index --toc --sections --syntaxcolors --source_line_numbers
117+
set ( ROBODOC_OPTIONS --rc ${CMAKE_SOURCE_DIR}/robodoc.rc
118118
CACHE STRING "Options passed to robodoc to control building the documentation" )
119119
set ( DOC_DIR "${CMAKE_BINARY_DIR}/documentation" )
120120
set ( REQUIRED_ROBODOC_OPTIONS
121121
--src "${CMAKE_SOURCE_DIR}/src" --doc "${DOC_DIR}"
122-
--multidoc --html --ignore_case_when_linking
123122
--documenttitle "${CMAKE_PROJECT_NAME}" )
124123
# Dynamically generate the ROBODoc outputs list
125124
message ( STATUS "Dynamically computing ROBODoc output information..." )

SConstruct

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,10 @@ env.Alias('install', libinstall)
9999

100100
if find_executable('robodoc'):
101101

102-
docfiles = [join('documentation','json_module_f90.html'),
103-
join('documentation','masterindex.html'),
104-
join('documentation','robo_classes.html'),
105-
join('documentation','robo_definitions.html'),
106-
join('documentation','robo_functions.html'),
107-
join('documentation','robo_modules.html'),
108-
join('documentation','robo_sourcefiles.html'),
109-
join('documentation','robodoc.css'),
110-
join('documentation','toc_index.html'), ]
111-
112-
bld = Builder(action='robodoc --rc robodoc.rc --src src/ --doc documentation/ --multidoc --html'+
113-
' --ignore_case_when_linking --syntaxcolors --source_line_numbers --index --tabsize 4 --documenttitle jsonfortran --sections')
102+
docfiles = glob.glob('documentation/*.*') #main directory
103+
docfiles.append(glob.glob('documentation/tests/*.*')) #tests directory
104+
105+
bld = Builder(action='robodoc --rc robodoc.rc --src src/ --doc documentation/ --documenttitle jsonfortran')
114106
env = Environment(BUILDERS = {'RoboDoc' : bld})
115107
env.RoboDoc(docfiles, src)
116108
env.Depends(docfiles, src)

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fi
7070
#build the documentation with RoboDoc:
7171
echo ""
7272
echo "Building documentation..."
73-
robodoc --rc ./robodoc.rc --src ${SRCDIR} --doc ${DOCDIR} --multidoc --html --ignore_case_when_linking --syntaxcolors --source_line_numbers --index --tabsize 4 --documenttitle ${PROJECTNAME} --sections
73+
robodoc --rc ./robodoc.rc --src ${SRCDIR} --doc ${DOCDIR} --documenttitle ${PROJECTNAME}
7474
echo ""
7575

7676
# Run all the tests unless $JF_SKIP_TESTS

robodoc.rc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Jacob Williams, 12/6/2014
1111
#
1212
# HISTORY
13-
# Updated 1/6/2014
13+
# Updated 1/6/2014, 2/28/2025
1414
#
1515

1616
items:
@@ -41,6 +41,15 @@ headertypes:
4141
d "Parameters" robo_definitions 3
4242
c "Classes" robo_classes 2
4343
I "Interfaces" robo_interfaces 1
44+
options:
45+
--multidoc
46+
--html
47+
--ignore_case_when_linking
48+
--syntaxcolors
49+
--source_line_numbers
50+
--index
51+
--tabsize 4
52+
--sections
4453
keywords:
4554
abstract
4655
allocatable

0 commit comments

Comments
 (0)