Commit 021885b3 authored by Sebastian Kaspari's avatar Sebastian Kaspari
Browse files

Issue #1995: Remove old script for generating API docs.

parent 353e0565
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Print commands and fail this script if a sub script fails
set -ex

# Get version number from Gradle
VERSION=`sed -n 's/.*componentsVersion: //p' < .buildconfig.yml`
echo "API reference for version: $VERSION"

# Generate API reference for the current state
./gradlew docs

# Move generated reference to destination
mkdir -p ./docs/api/$VERSION
cp -R ./build/javadoc/android-components/* ./docs/api/$VERSION/

# Generate a page that links to the reference pages for every module
python automation/docs/generate_reference_page.py $VERSION