1- volumes :
2- # This is a temporary directory that is used to store the test sets and results.
3- # It is mounted in the extractor and snapshotter containers.
4- # The results are then copied back to the plugins directories.
5- test-sets :
6- driver : local
7- driver_opts :
8- type : none
9- device : ./docker/build/test-sets
10- o : bind
11-
121services :
132 # Test server that has all the plugins loaded. Test sets are run against this server.
143 deephaven-plugins-docs-test-server :
@@ -38,7 +27,7 @@ services:
3827 volumes :
3928 - ./plugins/ui/docs/build/markdown:/extract/ui
4029 - ./plugins/plotly-express/docs/build/markdown:/extract/plotly-express
41- - test-sets:/results # Output to a temporary build directory
30+ - ./docker/build/ test-sets:/results # Output to a temporary build directory
4231
4332 # Read the test sets from the results directory and run them against the test server, taking a snapshot of the results.
4433 deephaven-plugins-docs-snapshotter :
@@ -58,7 +47,16 @@ services:
5847 ' node snapshot.cjs --directory /test-sets/plotly-express --output /results/plotly-express; node snapshot.cjs --directory /test-sets/ui --output /results/ui' ,
5948 ]
6049 volumes :
61- - test-sets:/test-sets
50+ - ./docker/build/ test-sets:/test-sets
6251 # Map all the results back to the snapshots directory for those docs
6352 - ./plugins/ui/docs/snapshots:/results/ui
6453 - ./plugins/plotly-express/docs/snapshots:/results/plotly-express
54+
55+ # Validate MDX and the snapshots that were written are valid
56+ deephaven-plugins-docs-validator :
57+ image : ghcr.io/deephaven/salmon-validator
58+ pull_policy : always
59+ volumes :
60+ - ./plugins/ui/docs/build/markdown:/validate/ui
61+ - ./plugins/plotly-express/docs/build/markdown:/validate/plotly-express
62+ - ./docker/build/validator-results:/results
0 commit comments