mirror of https://github.com/CGAL/cgal
also fill user manual txt with some basic content
This commit is contained in:
parent
8cb53ceb9d
commit
fae38e2a15
|
|
@ -76,6 +76,32 @@ The package provides ... }
|
||||||
*/
|
*/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
usermanstring = \
|
||||||
|
r"""namespace CGAL {
|
||||||
|
/*!
|
||||||
|
|
||||||
|
\mainpage User Manual
|
||||||
|
\anchor Chapter_PACKAGE_NAME
|
||||||
|
\anchor chaptermine
|
||||||
|
\cgalAutoToc
|
||||||
|
\author AUTHOR1, AUTHOR2
|
||||||
|
|
||||||
|
This chapter describes the ...
|
||||||
|
|
||||||
|
\section secmydefinitions Definitions
|
||||||
|
|
||||||
|
Section on definitions here ...
|
||||||
|
|
||||||
|
\section secmyexamples Examples
|
||||||
|
|
||||||
|
\subsection myFirstExample First Example
|
||||||
|
|
||||||
|
The following example shows ...
|
||||||
|
|
||||||
|
*/
|
||||||
|
} /* namespace CGAL */
|
||||||
|
"""
|
||||||
|
|
||||||
if re.match("^[A-Za-z_][A-Za-z0-9_]*$", packagename):
|
if re.match("^[A-Za-z_][A-Za-z0-9_]*$", packagename):
|
||||||
os.mkdir(packagename)
|
os.mkdir(packagename)
|
||||||
open(os.path.join(packagename, 'dont_submit'), 'w').close()
|
open(os.path.join(packagename, 'dont_submit'), 'w').close()
|
||||||
|
|
@ -122,7 +148,11 @@ if re.match("^[A-Za-z_][A-Za-z0-9_]*$", packagename):
|
||||||
figpath = os.path.join(docpath, 'fig')
|
figpath = os.path.join(docpath, 'fig')
|
||||||
os.mkdir(figpath)
|
os.mkdir(figpath)
|
||||||
open(os.path.join(docpath, 'examples.txt'), 'w').close()
|
open(os.path.join(docpath, 'examples.txt'), 'w').close()
|
||||||
open(os.path.join(docpath, (packagename + '.txt')), 'w').close()
|
|
||||||
|
usermanpath = os.path.join(docpath, (packagename + '.txt'))
|
||||||
|
usermanfile = open(usermanpath, 'w')
|
||||||
|
usermanfile.write(usermanstring)
|
||||||
|
usermanfile.close()
|
||||||
|
|
||||||
xmlpath = os.path.join(docpath, (packagename + '.xml'))
|
xmlpath = os.path.join(docpath, (packagename + '.xml'))
|
||||||
xmlfile = open(xmlpath, 'w')
|
xmlfile = open(xmlpath, 'w')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue