Build documentation using Docker again (#746)

This commit is contained in:
Quentin Pradet 2025-01-14 18:16:39 +04:00 committed by GitHub
parent 7774a506ae
commit f99adce23f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 18 deletions

View File

@ -1,6 +1,8 @@
ARG PYTHON_VERSION=3.9
FROM python:${PYTHON_VERSION}
ENV FORCE_COLOR=1
WORKDIR /code/eland
RUN python -m pip install nox

View File

@ -1,15 +1,8 @@
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y pandoc python3 python3-pip
python3 -m pip install nox
/opt/buildkite-agent/.local/bin/nox -s docs
# I couldn't make this work, for some reason pandoc is not found in the docker container repository:
# docker build --file .buildkite/Dockerfile --tag elastic/eland --build-arg PYTHON_VERSION=${PYTHON_VERSION} .
# docker run \
# --name doc_build \
# --rm \
# elastic/eland \
# apt-get update && \
# sudo apt-get install --yes pandoc && \
# nox -s docs
docker build --file .buildkite/Dockerfile --tag elastic/eland --build-arg PYTHON_VERSION=${PYTHON_VERSION} .
docker run \
--name doc_build \
--rm \
elastic/eland \
bash -c "apt-get update && apt-get install --yes pandoc && nox -s docs"

View File

@ -1,5 +1,4 @@
# docs and example
docs/*
example/*
# Git
@ -18,9 +17,6 @@ dist/
# Build folder
build/
# docs
docs/*
# pytest results
tests/dataframe/results/*csv
result_images/

View File

@ -1,5 +1,5 @@
eland.DataFrame.to\_json
=======================
========================
.. currentmodule:: eland

View File

@ -17,6 +17,7 @@
~MLModel.delete_model
~MLModel.exists_model
~MLModel.export_model
~MLModel.import_ltr_model
~MLModel.import_model
~MLModel.predict