|
|
@ -52,7 +52,7 @@ def document_scripts():
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
# First, we collect the commands and paths to include in our docs
|
|
|
|
# First, we collect the commands and paths to include in our docs
|
|
|
|
scripts = []
|
|
|
|
scripts = []
|
|
|
|
for root, _, files in os.walk('scripts'):
|
|
|
|
for root, _, files in os.walk('library/scripts'):
|
|
|
|
scripts.extend(doc_dir(root, files))
|
|
|
|
scripts.extend(doc_dir(root, files))
|
|
|
|
# Next we split by type and create include directives sorted by command
|
|
|
|
# Next we split by type and create include directives sorted by command
|
|
|
|
kinds = {'base': [], 'devel': [], 'fix': [], 'gui': [], 'modtools': []}
|
|
|
|
kinds = {'base': [], 'devel': [], 'fix': [], 'gui': [], 'modtools': []}
|
|
|
@ -84,7 +84,7 @@ def write_script_docs():
|
|
|
|
'modtools': 'Scripts for Modders'}
|
|
|
|
'modtools': 'Scripts for Modders'}
|
|
|
|
for k in head:
|
|
|
|
for k in head:
|
|
|
|
title = ('.. _{k}:\n\n{l}\n{t}\n{l}\n\n'
|
|
|
|
title = ('.. _{k}:\n\n{l}\n{t}\n{l}\n\n'
|
|
|
|
'.. include:: /scripts/{a}about.txt\n\n'
|
|
|
|
'.. include:: /library/scripts/{a}about.txt\n\n'
|
|
|
|
'.. contents::\n\n').format(
|
|
|
|
'.. contents::\n\n').format(
|
|
|
|
k=k, t=head[k],
|
|
|
|
k=k, t=head[k],
|
|
|
|
l=len(head[k])*'#',
|
|
|
|
l=len(head[k])*'#',
|
|
|
@ -179,7 +179,6 @@ exclude_patterns = [
|
|
|
|
'README.md',
|
|
|
|
'README.md',
|
|
|
|
'docs/html*',
|
|
|
|
'docs/html*',
|
|
|
|
'depends/*',
|
|
|
|
'depends/*',
|
|
|
|
'scripts/3rdparty/*',
|
|
|
|
|
|
|
|
'build*',
|
|
|
|
'build*',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|