mirror of https://github.com/kivy/kivy.git
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:
parent
57fe6b504f
commit
45e90bf9b3
|
@ -3,7 +3,8 @@
|
|||
|
||||
# You can set these variables from the command line.
|
||||
PYTHON = python
|
||||
SPHINXOPTS = -W
|
||||
#SPHINXOPTS = -W
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -11,3 +11,4 @@ Packaging your application
|
|||
packaging-android
|
||||
packaging-ios
|
||||
|
||||
android
|
||||
|
|
Loading…
Reference in New Issue