mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +01:00
Add documentation updates.
This commit is contained in:
parent
3d881add82
commit
58615e1b15
@ -67,6 +67,36 @@ if __name__ == '__main__':
|
||||
print 'Tagging release.'
|
||||
system('cvs tag -F release-%s' % v.replace('.', '_'))
|
||||
|
||||
print 'Generating documentation.'
|
||||
# docFiles is in the format {directory: files}
|
||||
docFiles = {'.': ('README', 'INSTALL', 'ChangeLog'),
|
||||
'docs': ('config.html', 'CAPABILITIES', 'commands.html',
|
||||
'CONFIGURATION', 'FAQ', 'GETTING_STARTED',
|
||||
'INTERFACES', 'OVERVIEW', 'PLUGIN-EXAMPLE',
|
||||
'plugins', 'plugins.html', 'STYLE'),
|
||||
}
|
||||
system('python sandbox/generate-plugin-documentation.py')
|
||||
pwd = os.getcwd()
|
||||
sh = 'tar rf %s/docs.tar %%s' % pwd
|
||||
for (dir, L) in docFiles.iteritems():
|
||||
os.chdir(os.path.join(pwd, dir))
|
||||
system(sh % ' '.join(L))
|
||||
os.chdir(pwd)
|
||||
system('bzip2 docs.tar')
|
||||
|
||||
print 'Uploading documentation to webspace.'
|
||||
system('scp docs.tar.bz2 %s@supybot.sf.net:/home/groups/s/su/supybot'
|
||||
'/htdocs/docs/.' % u)
|
||||
system('ssh %s@supybot.sf.net "cd /home/groups/s/su/supybot/htdocs/docs; '
|
||||
'tar jxf docs.tar.bz2"')
|
||||
|
||||
print 'Cleaning up generated documentation.'
|
||||
shutil.rmtree('docs/plugins')
|
||||
configFiles = ('docs/config.html', 'docs/plugins.html',
|
||||
'docs/commands.html', 'docs.tar.bz2')
|
||||
for fn in configFiles:
|
||||
os.remove(fn)
|
||||
|
||||
print 'Removing test, sandbox, CVS, and .cvsignore.'
|
||||
shutil.rmtree('test')
|
||||
shutil.rmtree('sandbox')
|
||||
|
Loading…
Reference in New Issue
Block a user