dont activate the warning as error on sphinx, we need the gettingstarted generated, even if its not referenced in the toc + optim to not rewrite rst file if the content didnt change, it prevent sphinx to reread the source.

This commit is contained in:
Mathieu Virbel 2012-07-28 08:05:05 +02:00
parent 57fe6b504f
commit 45e90bf9b3
4 changed files with 11 additions and 4 deletions

View File

@ -3,7 +3,8 @@
# You can set these variables from the command line.
PYTHON = python
SPHINXOPTS = -W
#SPHINXOPTS = -W
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =

View File

@ -61,8 +61,13 @@ examples_framework_dir = os.path.join(base_dir, '..', 'examples', 'framework')
def writefile(filename, data):
global dest_dir
print 'write', filename
# avoid to rewrite the file if the content didn't change
f = os.path.join(dest_dir, filename)
print 'write', filename
if os.path.exists(f):
with open(f) as fd:
if fd.read() == data:
return
h = open(f, 'w')
h.write(data)
h.close()

View File

@ -63,8 +63,8 @@ release = kivy.__version__
today_fmt = '%B %d, %Y'
# suppress exclusion warnings
exclude_patterns = ['gettingstarted/*', 'api-index.rst',
'api-kivy.lib.osc.*', 'guide/android.rst', 'guide/layouts.rst']
#exclude_patterns = ['gettingstarted/*', 'api-index.rst',
# 'api-kivy.lib.osc.*', 'guide/layouts.rst']
# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None

View File

@ -11,3 +11,4 @@ Packaging your application
packaging-android
packaging-ios
android