diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..e1da7dc04f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +sudo: false +language: python +python: + - "3.3" +# command to install dependencies +install: "pip install -q -r requirements.txt" +# command to run tests +script: ./build.sh +# Flags used here, not in `make html`: +# -n Run in nit-picky mode. Currently, this generates warnings for all missing references. +# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1. \ No newline at end of file diff --git a/aspnet/conf.py b/aspnet/conf.py index 07ecdc7328..a462419d99 100644 --- a/aspnet/conf.py +++ b/aspnet/conf.py @@ -147,7 +147,7 @@ def setup(app): # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -html_favicon = 'favicon.ico' +html_favicon = '../common/_static/favicon.ico' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, diff --git a/build.sh b/build.sh new file mode 100755 index 0000000000..45d98a3e62 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +echo "Trying to build the aspnet directory..." && cd aspnet && sphinx-build -nW -b html -d _build/doctrees . _build/html +echo "Trying to build the mvc directory..." && cd ../mvc && sphinx-build -nW -b html -d _build/doctrees . _build/html diff --git a/mvc/conf.py b/mvc/conf.py index 28e96cc80b..644f904254 100644 --- a/mvc/conf.py +++ b/mvc/conf.py @@ -155,7 +155,7 @@ def setup(app): # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -html_favicon = 'favicon.ico' +html_favicon = '../common/_static/favicon.ico' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000..b1d94fbb98 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Sphinx==1.3.1 \ No newline at end of file