Files
mraa/scripts/build-doc.sh
Mihai Tudor Panu 1a66c6dc6a python2: remove ability to build python2 bindings from project
This removes Python 2 package generation from the project to encourage safer development with Python 3 instead. Documentation for the generated modules switched to Python 3. Default interpreter is now Python 3 but can be overridden if needed for running the tests only on older environments.

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2020-10-28 09:41:43 -07:00

34 lines
970 B
Bash
Executable File

#!/usr/bin/env bash
# Author: Nicolas Oliver <dario.n.oliver@intel.com>
# Copyright (c) 2017 Intel Corporation.
# SPDX-License-Identifier: MIT
set -x
set -e
# Install doxygen2jsdoc dependencies
cd doxygen2jsdoc && npm install && cd ..
# Install doxyport dependencies
cd doxyport && make setup && cd ..
# Make Documentation
make -j8 -Cbuild
# Make Java Documentation
cd build/src/java && echo ../../../src/mraa.i > mraa.i.list && \
../../../doxyport/doxyport mraa.i.list \
--cmake ../../compile_commands.json \
--source ../../../api,../../../api/mraa \
--destination $(pwd)/ \
--convert-protected-to-private \
--output mraa-java-files.txt \
--mapping ../../../examples/samples.mapping.txt && \
doxygen Doxyfile && cd ../../../
# Copy output to build/html/ directory
cp -r build/src/python/python3/docs/html build/html/python && \
cp -r build/src/java/html build/html/java && \
cp build/jsdoc/ternjs/mraa/doc.js build/html/node/mraa_tern.js