Update base container for website (#1584)

* Add dependencies for website

* Add a shell script to build the website
This commit is contained in:
gagb 2024-02-07 17:25:43 -08:00 committed by GitHub
parent d675489352
commit 68337b9553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 1 deletions

View File

@ -14,9 +14,13 @@ RUN apt-get update \
&& apt-get -y install --no-install-recommends build-essential npm \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
&& wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.4.549/quarto-1.4.549-linux-amd64.deb \
&& dpkg -i quarto-1.4.549-linux-amd64.deb \
&& rm -rf /var/lib/apt/lists/* quarto-1.4.549-linux-amd64.deb
ENV DEBIAN_FRONTEND=dialog
# For docs
RUN npm install --global yarn
RUN pip install pydoc-markdown
RUN pip install pyyaml
RUN pip install colored

17
website/build_website.sh Normal file
View File

@ -0,0 +1,17 @@
#
# This script generates documentation using pydoc-markdown and renders the website using Quarto.
#
# Usage: bash build_website.sh
#
# Generate documentation using pydoc-markdown
pydoc-markdown
# Render the website using Quarto
quarto render ./docs
# Process notebooks using a Python script
python ./process_notebooks.py
# Start the website using yarn
yarn start