Commit 9eb254f2 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[package/doc] added beat.editor and updated before_build script and conf

parent 2ffcb94a
Pipeline #20801 passed with stage
in 26 minutes and 4 seconds
......@@ -6,8 +6,18 @@ set -ex
GITLAB_CHECKOUT_STRATEGY="${GITLAB_CHECKOUT_STRATEGY:-git@gitlab.idiap.ch:}"
# Clone all packages
for pkg in beat `cat requirements.txt | sed -e '/^\s*#.*/d;/^\s*$/d'`; do
git clone --depth 1 ${GITLAB_CHECKOUT_STRATEGY}beat/${pkg}.git doc/$pkg || \
for pkg in `cat requirements.txt | sed -e '/^\s*#.*/d;/^\s*$/d'`; do
version=master
if [[ $pkg == "beat.cmdline" ]]; then
version=1.4.x
fi
if [[ $pkg == "beat.core" ]]; then
version=1.6.x
fi
if [[ $pkg == "beat.backend.python" ]]; then
version=1.5.x
fi
git clone --depth 1 -b $version ${GITLAB_CHECKOUT_STRATEGY}beat/${pkg}.git doc/$pkg || \
{ git -C doc/$pkg reset --hard HEAD && \
git -C doc/$pkg checkout master && \
git -C doc/$pkg pull; }
......
......@@ -16,6 +16,7 @@ requirements:
- beat.core
- beat.cmdline
- beat.backend.python
- beat.editor
- gridtk
test:
......
......@@ -77,12 +77,13 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'beat.core'
project = u'beat'
project_beat_core = u'beat.core'
import time
copyright = u'%s, Idiap Research Institute' % time.strftime('%Y')
# Grab the setup entry
distribution = pkg_resources.require(project)[0]
distribution = pkg_resources.require(project_beat_core)[0]
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
......
......@@ -10,6 +10,7 @@ Beat Packages
* :ref:`beat_core`
* :ref:`beat_cmdline_introduction`
* :ref:`beat_backend_python`
* :ref:`beat_editor`
Index of all Packages
=====================
......@@ -21,4 +22,5 @@ Index of all Packages
beat.core <beat.core/doc/index.rst>
beat.cmdline <beat.cmdline/doc/index.rst>
beat.backend.python <beat.backend.python/doc/index.rst>
beat.editor <beat.editor/doc/index.rst>
readme_index.rst
......@@ -9,3 +9,5 @@ README of all Packages
beat.core <beat.core/README.rst>
beat.cmdline <beat.cmdline/README.rst>
beat.backend.python <beat.backend.python/README.rst>
beat.editor <beat.editor/README.rst>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment