Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pipelines/Docusaurus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ RUN apk add --no-cache \
make \
tar \
jq

# copy the modules first, as they rarily change
# this improves the build times for testing the templates
COPY ./node_modules /node_modules

RUN mkdir /templates
COPY ./templates /templates
COPY ./node_modules /node_modules

EXPOSE 3000

Expand Down
10 changes: 10 additions & 0 deletions pipelines/Docusaurus/templates/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ function configure_site() {
# back to the archive folder with link dereference. We'll do this in docusaurus-action. That's why we don't use links here.
cp -r ../archive/* .

# we're in site-config, so handle the spec files
if [ -d "${docs}/spec" ]; then
if [ ! -d "${static}/spec" ]; then
mkdir -p "${static}/spec"
fi

cp -r "${docs}/spec/" static/spec/next
cp -r versioned_spec/* static/spec/
fi

# link the current docs, it works fine
ln -s ../docs .

Expand Down