Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 18268d0

Browse files
committedJan 11, 2025·
Fix use_schemasheet handling for just
1 parent adce466 commit 18268d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎{{cookiecutter.project_name}}/config.public.mk

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LINKML_SCHEMA_SOURCE_PATH="{{cookiecutter.__source_path}}"
1414
LINKML_SCHEMA_GOOGLE_SHEET_MODULE="{{cookiecutter.__google_sheet_module}}"
1515
LINKML_SCHEMA_GOOGLE_SHEET_ID="{{cookiecutter.google_sheet_id}}"
1616
LINKML_SCHEMA_GOOGLE_SHEET_TABS="{{cookiecutter.google_sheet_tabs}}"
17+
LINKML_USE_SCHEMASHEETS={{cookiecutter.use_schemasheets}}
1718

1819
###### linkml generator variables, used by makefile
1920

‎{{cookiecutter.project_name}}/justfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ shebang := if os() == 'windows' {
2323
schema_name := env_var_or_default("LINKML_SCHEMA_NAME", "")
2424
source_schema_path := env_var_or_default("LINKML_SCHEMA_SOURCE_PATH", "")
2525

26+
use_schemasheets := env_var_or_default("LINKML_USE_SCHEMASHEETS", "No")
2627
sheet_module := env_var_or_default("LINKML_SCHEMA_GOOGLE_SHEET_MODULE", "")
2728
sheet_ID := env_var_or_default("LINKML_SCHEMA_GOOGLE_SHEET_ID", "")
2829
sheet_tabs := env_var_or_default("LINKML_SCHEMA_GOOGLE_SHEET_TABS", "")
@@ -93,8 +94,8 @@ deploy: site
9394
mkd-gh-deploy
9495

9596
_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 && \
9899
mv {{sheet_module_path}}.tmp {{sheet_module_path}}; \
99100
fi
100101

0 commit comments

Comments
 (0)
Please sign in to comment.