4 import SENFSCons, glob, os.path, yaptu
6 ###########################################################################
8 sconscripts = sorted(glob.glob("*/SConscript"))
12 for script in sconscripts:
13 name = os.path.split(script)[0]
14 dox = os.path.join(name, 'Mainpage.dox')
16 if os.path.exists(dox):
17 title = ([''] + [ line.split('\\mainpage',1)[-1].strip() for line in file(dox)
18 if '\\mainpage' in line ])[-1]
19 EXTENSIONS.append((name, title))
23 /** \mainpage Extensions
25 This folder contains additional SENF extensions which are built
26 into the senf libarary but are not part of senf proper.
31 {{ for name, title in EXTENSIONS:
32 <dt><a href="../../${name}/doc/html/index.html">${name}</a></dt><dd>${title}</a></dd>
40 file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary()))
42 SConscript(sconscripts)
44 env.Clean('all','Mainpage.dox')
45 env.Clean('all_docs','Mainpage.dox')
47 SENFSCons.Doxygen(env)