mirror of
https://github.com/kernc/backtesting.py.git
synced 2024-01-28 15:29:30 +03:00
MNT: tests need matplotlib, doc/build needs pdoc3
This commit is contained in:
@@ -2,7 +2,7 @@ Backtesting.py Documentation
|
|||||||
============================
|
============================
|
||||||
After installing documentation dependencies:
|
After installing documentation dependencies:
|
||||||
|
|
||||||
pip install .[doc]
|
pip install .[doc,test]
|
||||||
|
|
||||||
build HTML documentation by running:
|
build HTML documentation by running:
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ IS_RELEASE=${TRAVIS_TAG+1}
|
|||||||
|
|
||||||
die () { echo "ERROR: $*" >&2; exit 2; }
|
die () { echo "ERROR: $*" >&2; exit 2; }
|
||||||
|
|
||||||
for cmd in pdoc \
|
for cmd in pdoc3 \
|
||||||
jupytext \
|
jupytext \
|
||||||
jupyter-nbconvert; do
|
jupyter-nbconvert; do
|
||||||
command -v "$cmd" >/dev/null ||
|
command -v "$cmd" >/dev/null ||
|
||||||
@@ -21,7 +21,7 @@ echo
|
|||||||
mkdir -p "$BUILDROOT"
|
mkdir -p "$BUILDROOT"
|
||||||
rm -r "$BUILDROOT" 2>/dev/null || true
|
rm -r "$BUILDROOT" 2>/dev/null || true
|
||||||
pushd "$DOCROOT/.." >/dev/null
|
pushd "$DOCROOT/.." >/dev/null
|
||||||
pdoc --html --html-no-source \
|
pdoc3 --html --html-no-source \
|
||||||
${IS_RELEASE+--template-dir "$DOCROOT/pdoc_template"} \
|
${IS_RELEASE+--template-dir "$DOCROOT/pdoc_template"} \
|
||||||
--html-dir "$BUILDROOT" \
|
--html-dir "$BUILDROOT" \
|
||||||
backtesting
|
backtesting
|
||||||
|
|||||||
Reference in New Issue
Block a user