Skip to content

Commit b14abe8

Browse files
committed
Merge branch 'docs'
2 parents 3c35897 + ea4c617 commit b14abe8

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ before_script:
180180

181181
script:
182182
- echo "script"
183+
- ci/run_build_docs.sh &
183184
- ci/script.sh
184185
# nothing here, or failed tests won't fail travis
185186

ci/build_docs.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
43
cd "$TRAVIS_BUILD_DIR"
4+
echo "inside $0"
55

66
git show --pretty="format:" --name-only HEAD~5.. --first-parent | grep -P "rst|txt|doc"
77

@@ -16,18 +16,20 @@ if [ x"$DOC_BUILD" != x"" ]; then
1616

1717
# we're running network tests, let's build the docs in the meantime
1818
echo "Will build docs"
19-
pip install sphinx==1.1.3 ipython
19+
conda install -n pandas sphinx=1.1.3 pygments ipython=2.4 --yes
20+
21+
source activate pandas
2022

2123
mv "$TRAVIS_BUILD_DIR"/doc /tmp
2224
cd /tmp/doc
2325

2426
rm /tmp/doc/source/api.rst # no R
2527
rm /tmp/doc/source/r_interface.rst # no R
2628

27-
echo ############################### > /tmp/doc.log
28-
echo # Log file for the doc build # > /tmp/doc.log
29-
echo ############################### > /tmp/doc.log
30-
echo "" > /tmp/doc.log
29+
echo ###############################
30+
echo # Log file for the doc build #
31+
echo ###############################
32+
3133
echo -e "y\n" | ./make.py --no-api 2>&1
3234

3335
cd /tmp/doc/build/html

ci/run_build_docs.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
echo "inside $0"
4+
5+
"$TRAVIS_BUILD_DIR"/ci/build_docs.sh 2>&1 > /tmp/doc.log &
6+
7+
# wait until subprocesses finish (build_docs.sh)
8+
wait
9+
10+
exit 0

ci/script.sh

-7
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ if [ -n "$LOCALE_OVERRIDE" ]; then
1212
python -c "$pycmd"
1313
fi
1414

15-
# conditionally build and upload docs to GH/pandas-docs/pandas-docs/travis
16-
"$TRAVIS_BUILD_DIR"/ci/build_docs.sh 2>&1 > /tmp/doc.log &
17-
# doc build log will be shown after tests
18-
1915
if [ "$BUILD_TEST" ]; then
2016
echo "We are not running nosetests as this is simply a build test."
2117
else
@@ -25,7 +21,4 @@ fi
2521

2622
RET="$?"
2723

28-
# wait until subprocesses finish (build_docs.sh)
29-
wait
30-
3124
exit "$RET"

doc/source/enhancingperf.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ First we're going to need to import the cython magic function to ipython:
9898

9999
.. ipython:: python
100100
101-
%load_ext Cython
101+
%load_ext cythonmagic
102102
103103
104104
Now, let's simply copy our functions over to cython as is (the suffix

0 commit comments

Comments
 (0)