diff options
author | arcadia-devtools <[email protected]> | 2022-03-15 13:35:56 +0300 |
---|---|---|
committer | arcadia-devtools <[email protected]> | 2022-03-15 13:35:56 +0300 |
commit | 094638589de6a6c9f91fad0005843fc1c1adc957 (patch) | |
tree | 7d55b9e950eb724da222548997547bf6710b1b58 /build/plugins/docs.py | |
parent | bc921e787bed8a51a43725b78382e806800c44c1 (diff) |
intermediate changes
ref:ca7a95e8c9a9d780f96497136a152091d54e61b5
Diffstat (limited to 'build/plugins/docs.py')
-rw-r--r-- | build/plugins/docs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/plugins/docs.py b/build/plugins/docs.py index 4d49863839a..09cb8c040b3 100644 --- a/build/plugins/docs.py +++ b/build/plugins/docs.py @@ -28,6 +28,8 @@ def onprocess_docs(unit, *args): if build_tool: if build_tool not in ['mkdocs', 'yfm']: unit.message(['error', 'Unsupported build tool {}'.format(build_tool)]) + if build_tool == 'mkdocs' and not unit.get('MODDIR').startswith('devtools/ymake/tests'): + unit.message(['error', '`mkdocs` builder is prohibited to use in `DOCS` multimodule. Use `MKDOCS` multimodule instead of `DOCS`.']) else: build_tool = 'yfm' unit.ondocs_builder([build_tool]) |