Skip to content

Commit fad8d99

Browse files
committed
feat: Allow user to specify docs source
ref: #8 fixes #7
1 parent 4e38e5f commit fad8d99

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ RUN cd /tmp/python_modules; \
4747
FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
4848

4949

50+
ENV MKDOCS_SRC_DIRECTORY='docs'
51+
52+
5053
COPY --from=build /tmp/python_builds /tmp/python_builds
5154

5255

includes/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ merge_child() {
107107

108108
# rm -rf ${HOME_DIR}/docs/${docs_path}/*;
109109

110-
cp -afr ${HOME_DIR}/artifacts/${child_repo_user}/${child_repo_name}/docs/${docs_path}/. ${HOME_DIR}/docs/${docs_path}/
110+
cp -afr ${HOME_DIR}/artifacts/${child_repo_user}/${child_repo_name}/docs/${docs_path}/. ${HOME_DIR}/${MKDOCS_SRC_DIRECTORY}/${docs_path}/
111111

112112
echo "Merge Child Docs: docs/${docs_path}/";
113113

@@ -174,7 +174,7 @@ if [ -n "${IS_BUILD}" ]; then
174174

175175
echo "Copy Source docs";
176176

177-
cp -a ${HOME_DIR}/docs/. ${HOME_DIR}/artifacts/source/;
177+
cp -a ${HOME_DIR}/${MKDOCS_SRC_DIRECTORY}/. ${HOME_DIR}/artifacts/source/;
178178

179179
fi
180180

0 commit comments

Comments
 (0)