mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Work around for the buildbot sphinx generator which seems unable to find tables and snippets (hopefully this will do the job)...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -784,20 +784,20 @@ def FormatContributedSnippets(kind, contrib_snippets):
|
||||
user = lines[0].replace('##', '').strip()
|
||||
onlyfile = os.path.split(snippet)[1]
|
||||
|
||||
download = os.path.join(SPHINXROOT, '_downloads', onlyfile)
|
||||
if not os.path.isfile(download):
|
||||
shutil.copyfile(snippet, download)
|
||||
|
||||
text += RAW_1%(spacer, spacer)
|
||||
text += '\n' + spacer + 'Example %d - %s (:download:`download <_downloads/%s>`):\n\n'%(indx+1, user, onlyfile)
|
||||
|
||||
text += spacer + '.. literalinclude:: %s\n'%snippet
|
||||
text += spacer + '.. literalinclude:: _downloads/%s\n'%onlyfile
|
||||
text += spacer + ' :lines: 2-\n\n'
|
||||
|
||||
text += RAW_2%(spacer, spacer)
|
||||
|
||||
text += '\n\n%s|\n\n'%spacer
|
||||
|
||||
download = os.path.join(SPHINXROOT, '_downloads', onlyfile)
|
||||
if not os.path.isfile(download):
|
||||
shutil.copyfile(snippet, download)
|
||||
|
||||
return text
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user