mirror of
https://github.com/microsoft/autogen.git
synced 2025-12-27 23:18:59 +00:00
Update base container for website (#1584)
* Add dependencies for website * Add a shell script to build the website
This commit is contained in:
parent
d675489352
commit
68337b9553
@ -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
17
website/build_website.sh
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user