File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ services:
7
7
context : ../
8
8
args :
9
9
- PACKAGE
10
- image : ${PACKAGE}-docs
10
+ image : ${PACKAGE}_python -docs
11
11
environment :
12
12
- PACKAGE
13
13
- UPSTREAM_REPO
14
14
- MODE
15
+ - PATCH_VERSION
15
16
volumes :
16
17
- ..:/main
17
18
user : ${HOST_UID}:anaconda
@@ -22,6 +23,7 @@ services:
22
23
- -c
23
24
- |
24
25
set -e
26
+ export PATCH_VERSION=$$(cat /main/$${PACKAGE}/version.py | grep -oE '\d+\.\d+\.[a-z0-9]+')
25
27
if echo "$${MODE}" | grep -i live &>/dev/null; then
26
28
mkdocs serve --config-file ./docs/mkdocs.yaml -a 0.0.0.0:80
27
29
elif echo "$${MODE}" | grep -iE "qa|build" &>/dev/null; then
Original file line number Diff line number Diff line change 51
51
name : Switch to light mode
52
52
plugins :
53
53
- search
54
- - redirects :
55
- redirect_maps :
56
- " index.md " : " getting-started/index.md"
57
54
- mkdocstrings :
58
55
default_handler : python
59
56
handlers :
@@ -97,6 +94,7 @@ markdown_extensions:
97
94
class : mermaid
98
95
format : !!python/name:pymdownx.superfences.fence_code_format
99
96
extra :
97
+ PATCH_VERSION : !ENV PATCH_VERSION
100
98
generator : false # Disable watermark
101
99
version :
102
100
provider : mike
You can’t perform that action at this time.
0 commit comments