File tree 2 files changed +4
-2
lines changed
{{cookiecutter.project_name}}
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ LINKML_SCHEMA_SOURCE_PATH="{{cookiecutter.__source_path}}"
14
14
LINKML_SCHEMA_GOOGLE_SHEET_MODULE ="{{cookiecutter.__google_sheet_module}}"
15
15
LINKML_SCHEMA_GOOGLE_SHEET_ID ="{{cookiecutter.google_sheet_id}}"
16
16
LINKML_SCHEMA_GOOGLE_SHEET_TABS ="{{cookiecutter.google_sheet_tabs}}"
17
+ LINKML_USE_SCHEMASHEETS ={{cookiecutter.use_schemasheets}}
17
18
18
19
# ##### linkml generator variables, used by makefile
19
20
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ shebang := if os() == 'windows' {
23
23
schema_name := env_var_or_default (" LINKML_SCHEMA_NAME" , " " )
24
24
source_schema_path := env_var_or_default (" LINKML_SCHEMA_SOURCE_PATH" , " " )
25
25
26
+ use_schemasheets := env_var_or_default (" LINKML_USE_SCHEMASHEETS" , " No" )
26
27
sheet_module := env_var_or_default (" LINKML_SCHEMA_GOOGLE_SHEET_MODULE" , " " )
27
28
sheet_ID := env_var_or_default (" LINKML_SCHEMA_GOOGLE_SHEET_ID" , " " )
28
29
sheet_tabs := env_var_or_default (" LINKML_SCHEMA_GOOGLE_SHEET_TABS" , " " )
@@ -93,8 +94,8 @@ deploy: site
93
94
mkd-gh-deploy
94
95
95
96
_ compile_sheets :
96
- @ if [ ! -z " $ {{ sheet_module }} " ]; then \
97
- poetry run sheets2linkml --gsheet-id {{ sheet_ID}} {{ sheet_tabs}} > {{ sheet_module_path}} .tmp && \
97
+ @ if [ " {{ use_schemasheets }} " != " No " ]; then \
98
+ poetry run sheets2linkml --gsheet-id {{ sheet_ID}} {{ sheet_tabs}} > {{ sheet_module_path}} .tmp && \
98
99
mv {{ sheet_module_path}} .tmp {{ sheet_module_path}} ; \
99
100
fi
100
101
You can’t perform that action at this time.
0 commit comments