Skip to content

Commit 7aeff65

Browse files
committed
Add doc generation to docker-compose
1 parent 185cba8 commit 7aeff65

5 files changed

Lines changed: 50 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ MANIFEST
3737
*.iml
3838

3939
cpp/.idea/
40+
cpp/apidoc/xml/
4041
python/.eggs/
4142
.vscode
4243
.idea/

ci/conda_env_python.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ pytest
2323
python
2424
setuptools
2525
setuptools_scm
26+
# Requirements for building the documentation
27+
breathe
28+
ipython
29+
recommonmark
30+
sphinx
31+
sphinx_rtd_theme

dev/docs/run_doc.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
19+
set -ex
20+
21+
arrow/ci/docker_build_cpp.sh
22+
arrow/ci/docker_build_python.sh
23+
24+
pushd /arrow/cpp/apidoc
25+
doxygen
26+
popd
27+
28+
pushd /arrow/python
29+
python setup.py build_sphinx -s ../doc/source --build-dir ../doc/_build
30+
popd
31+
32+
mkdir -p /arrow/site/asf-site/docs/latest
33+
rsync -r /arrow/doc/_build/html/ /arrow/site/asf-site/docs/latest/

dev/gen_apidocs/create_documents.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,6 @@ rsync -r doc/parquet-glib/html/ ../../site/asf-site/docs/c_glib/parquet-glib
8787
popd
8888
popd
8989

90-
# Now Python documentation can be built
91-
pushd arrow/python
92-
python setup.py build_ext --build-type=$ARROW_BUILD_TYPE \
93-
--with-plasma --with-parquet --inplace
94-
python setup.py build_sphinx -s ../doc/source
95-
mkdir -p ../site/asf-site/docs/python
96-
rsync -r doc/_build/html/ ../site/asf-site/docs/python
97-
popd
98-
9990
# Make C++ documentation
10091
pushd arrow/cpp/apidoc
10192
rm -rf html/*

docker-compose.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ services:
152152
######################### Tools and Linters #################################
153153

154154
# TODO(kszucs): site
155-
# TODO(kszucs): apidoc
155+
# TODO(kszucs): {cpp,java,glib,js}-apidoc
156156

157157
lint:
158158
# Usage:
@@ -186,6 +186,15 @@ services:
186186
command: arrow/dev/lint/run_clang_format.sh
187187
volumes: *ubuntu-volumes
188188

189+
docs:
190+
# Usage:
191+
# docker-compose build cpp
192+
# docker-compose build python
193+
# docker-compose run docs
194+
image: arrow:python-3.6
195+
command: arrow/dev/docs/run_doc.sh
196+
volumes: *volumes
197+
189198
######################### Integration Tests #################################
190199

191200
# impala:

0 commit comments

Comments
 (0)