Skip to content

Commit

Permalink
Update base container for website (microsoft#1584)
Browse files Browse the repository at this point in the history
* Add dependencies for website

* Add a shell script to build the website
  • Loading branch information
gagb authored Feb 8, 2024
1 parent d675489 commit 68337b9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 17 additions & 0 deletions website/build_website.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 68337b9

Please sign in to comment.