diff --git a/ci/jenkins/bin/docs.sh b/ci/jenkins/bin/docs.sh new file mode 100644 index 00000000000..6754040a8c8 --- /dev/null +++ b/ci/jenkins/bin/docs.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# These shenanigans are here to allow it to run both manually, and via Jenkins +test -z "${ATS_MAKE}" && ATS_MAKE="make" +test ! -z "${WORKSPACE}" && cd "${WORKSPACE}/src" + +# This avoids redoing the configure on every doc build, which is somewhat annoying +[ ! -f configure ] && autoreconf -fi +[ ! -f config.nice ] && ./configure + +cd doc + +echo "Building English version" +rm -rf docbuild/html +${ATS_MAKE} -e SPHINXOPTS="-D language='en'" html +[ $? != 0 ] && exit 1 +/usr/bin/rsync --delete -av docbuild/html/ /home/docs/en/${ATS_BRANCH} + +echo "Building JA version" +rm -rf docbuild/html +${ATS_MAKE} -e SPHINXOPTS="-D language='ja'" html +[ $? != 0 ] && exit 1 +/usr/bin/rsync --delete -av docbuild/html/ /home/docs/ja/${ATS_BRANCH} diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html new file mode 100644 index 00000000000..3033ee8dcad --- /dev/null +++ b/doc/_templates/layout.html @@ -0,0 +1,41 @@ +{# + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +#} +{% extends "!layout.html" %} +{% block footer %} +
+{{ super() }} +{% endblock %} diff --git a/doc/static/override.css b/doc/static/override.css index 1ab1e713768..b7940a31929 100644 --- a/doc/static/override.css +++ b/doc/static/override.css @@ -23,3 +23,8 @@ dd { span.pre { line-height: initial; } + +/* Fix for nav bottom padding with flyout */ +nav.wy-nav-side { + padding-bottom: 3em; +}