From 742c516b084efef37f4aec17a3c944fc6a32221e Mon Sep 17 00:00:00 2001 From: Puja Trivedi Date: Fri, 4 Oct 2024 11:11:20 -0700 Subject: [PATCH 1/7] added 'edit on github' feature --- docs/conf.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 1826540..3770055 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -37,4 +37,12 @@ # other themes = 'sphinx_rtd_theme', 'classic', 'furo' html_theme = 'sphinx_rtd_theme' html_static_path = ['_static'] -source_suffix = ['.rst', '.md'] +html_show_sourcelink = False +html_context = { + "display_github": True, # Integrate GitHub + "github_user": "brain-bican", # Username + "github_repo": "bkbit", # Repo name + "github_version": "main", # Version + "conf_py_path": "/docs/", # Path in the checkout to the docs root +} +# source_suffix = ['.rst', '.md'] From 062966aaa1826d0386e261d0ebc4ac39a0343b3e Mon Sep 17 00:00:00 2001 From: Puja Trivedi Date: Sat, 5 Oct 2024 23:21:19 -0700 Subject: [PATCH 2/7] added rst for spreadsheet converter --- docs/spreadsheet_converter.rst | 89 ++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 docs/spreadsheet_converter.rst diff --git a/docs/spreadsheet_converter.rst b/docs/spreadsheet_converter.rst new file mode 100644 index 0000000..581e960 --- /dev/null +++ b/docs/spreadsheet_converter.rst @@ -0,0 +1,89 @@ +.. _spreadsheet_converter: + +Spreadsheet to LinkML Schema +============================= + +Overview +......... +Create a yaml linkml model from set of spreadsheets. It can use either tsv files or Google Sheet as an input. + +The default behavior is to run the converter starting with tsv files, specifying their paths as arguments, for example, model_spreadsheets/*tsv. + +If ``--gsheet`` option is used, the converter starts from downloading spreadsheets from Google Sheets. +The argument must be a YAML file that has ``gsheet_id`` and a list of ``sheets`` with ``gid`` (a unique identifier for each individual sheet) +and ``name`` (optionally) that will be used as a name of the downloaded TSV file (if not available ``gid`` wil be used). + +Command Line +............. + +``bkbit schema2model`` +,,,,,,,,,,,,,,,,,,,,,,, + +.. code-block:: bash + + $ bkbit schema2model [OPTIONS] SPREADSHEETS + +**Options** + + ``-o, --output `` + Path for the yaml output file. + + ``-t, --template