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 ARG PYTHON_VERSION=3.9
FROM python:${PYTHON_VERSION} FROM python:${PYTHON_VERSION}
ENV FORCE_COLOR=1
WORKDIR /code/eland WORKDIR /code/eland
RUN python -m pip install nox RUN python -m pip install nox

View File

@ -1,15 +1,8 @@
#!/usr/bin/env bash #!/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 build --file .buildkite/Dockerfile --tag elastic/eland --build-arg PYTHON_VERSION=${PYTHON_VERSION} . docker run \
# docker run \ --name doc_build \
# --name doc_build \ --rm \
# --rm \ elastic/eland \
# elastic/eland \ bash -c "apt-get update && apt-get install --yes pandoc && nox -s docs"
# apt-get update && \
# sudo apt-get install --yes pandoc && \
# nox -s docs

View File

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

View File

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

View File

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