Skip to content
Snippets Groups Projects
Commit fd9b9e0d authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: do not use dockerbuild for auto gen screenshot

parent f6f9b51c
No related branches found
No related tags found
No related merge requests found
# TODO using dockerfile will not work for readthedocs ...
# need to consider how to build for read the docs
FROM xgui3783/pptr-docker:4383e79bc83452e4bdaf098039635c36c55ffb8f as img_autogen
COPY . /iav
WORKDIR /iav
# build aot first && install webdriver & pptr
RUN npm i
# build-aot
RUN npm run build-aot
# for selenium web driver
# RUN apt-get update && apt-get install default-jre -y
# update webdriver
RUN npm run wd -- update --versions.chrome=80.0.3987.106
# install pptr
RUN npm i --no-save puppeteer@2.1.0
# install deploy folder
RUN cd deploy && \
npm i
# auto generate screenshots
RUN npm run e2e -- --specs ./e2e/screenshots/gen.js
FROM python:3.7 as builder
COPY . /iav
WORKDIR /iav
RUN pip install mkdocs mkdocs-material mdx_truly_sane_lists
COPY --from=img_autogen /iav/docs/autogen_images /iav/docs/autogen_images
RUN pip install mkdocs mkdocs-material mdx_truly_sane_lists errandkun
RUN mkdocs build
......
......@@ -14,6 +14,16 @@ markdown_extensions:
- footnotes
- mdx_truly_sane_lists
plugins:
- search
- errandkun:
extract_path: docs/autogen_images
external_resources:
- type: github
owner: fzj-inm1-bda
repo: interactive-viewer
workflow_name: e2e
pages:
- Home: 'index.md'
- System requirements: 'requirements.md'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment