Skip to content
Merged
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
30 changes: 26 additions & 4 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
FROM python:3.12-slim AS builder

RUN apt-get update && apt-get install -y git make curl

COPY scripts/script-requirements.txt /scripts/script-requirements.txt
COPY docs docs
COPY scripts/docs/ /docs
COPY gooddata-api-client /gooddata-api-client
COPY gooddata-sdk /gooddata-sdk
COPY gooddata-pandas /gooddata-pandas

RUN pip install --no-cache-dir -r /scripts/script-requirements.txt

WORKDIR /docs

RUN python json_builder.py && \
python python_ref_builder.py api_spec.toml data.json latest content/en && \
mkdir versioned_docs/latest && \
mv -f data.json ./versioned_docs/latest/data.json && \
mv -f content/en/latest/links.json ./versioned_docs/latest/links.json

FROM node:20.18.0-bookworm-slim

COPY --from=builder /docs /docs

RUN apt-get update && \
apt-get install -y git make golang-go curl && \
npm install -g hugo-extended@0.117.0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY docs docs

WORKDIR docs
RUN npm install
WORKDIR /docs
RUN npm install && \
hugo mod get

# accessible on http://localhost:1313/latest/
ENTRYPOINT ["hugo", "server", "--bind", "0.0.0.0"]
5 changes: 5 additions & 0 deletions docs/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
# - "latestTag" - docker image tag for the latest patch version. Must be changed
# on every patch release of respective branch

[[versions]]
version = "Latest"
dirpath = "latest"
url = "/latest/"
productName = "Python SDK Latest"
10 changes: 5 additions & 5 deletions docs/config/public/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# - "latestTag" - docker image tag for the latest patch version. Must be changed
# on every patch release of respective branch

#[[versions]]
# version = "Latest"
# dirpath = "latest"
# url = "/latest/"
# productName = "Python SDK Latest"
[[versions]]
version = "Latest"
dirpath = "latest"
url = "/latest/"
productName = "Python SDK Latest"
Loading