From 95f9ec8d1d88867ad532b2230ffe3a4ba9baf452 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Tue, 11 Jun 2024 12:32:42 +0200 Subject: [PATCH 01/13] Add documentation of snippts --- _layouts/faq.html | 64 +++++++++++++++++++++---- _plugins/snippet.rb | 2 +- faqs/galaxy/datasets_change_datatype.md | 5 ++ faqs/galaxy/workflows_run_ds.md | 5 ++ 4 files changed, 65 insertions(+), 11 deletions(-) diff --git a/_layouts/faq.html b/_layouts/faq.html index 1f38a2af74b499..25fc967d5e7fa5 100644 --- a/_layouts/faq.html +++ b/_layouts/faq.html @@ -56,6 +56,11 @@

{{page.title}}

+ {% if page.short_id %} +
Persistent URL
+ Resource {% icon purl %}PURL: https://gxy.io/GTN:{{ page.short_id }} + {% endif %} +
Still have questions?
{% include _includes/button.html link="https://gitter.im/Galaxy-Training-Network/Lobby" label="Gitter Chat Support" colour="yellow" buttonsize="medium" %} @@ -63,16 +68,10 @@
Still have questions?
{% include _includes/button.html link="https://help.galaxyproject.org" label="Galaxy Help Forum" colour="purple" buttonsize="medium" %} -
Want to embed this snippet (FAQ) in your GTN Tutorial?
-
{% raw %}{% snippet  {% endraw %}{{ page.path }}{% raw %} %}{% endraw %}
-
- - {% if page.short_id %} -
Persistent URL
- Resource {% icon purl %}PURL: https://gxy.io/GTN:{{ page.short_id }} - {% endif %} - - + +
@@ -85,3 +84,48 @@

{{locale['references']| default: "References" }}

+ + + + + diff --git a/_plugins/snippet.rb b/_plugins/snippet.rb index a2b0994457d88f..bb065d78c6e3fe 100644 --- a/_plugins/snippet.rb +++ b/_plugins/snippet.rb @@ -80,7 +80,7 @@ def render(context) box_end = "\n{: .#{box_type}}" end end - y = x.gsub(/\A---(.|\n)*?---/, '') + y = x.split("\n---\n", 2).last # if y =~ /contribute/ # puts "=== step 1 ===\n#{y}\n\n" # end diff --git a/faqs/galaxy/datasets_change_datatype.md b/faqs/galaxy/datasets_change_datatype.md index 32fe8f7a33abd0..86fe73c9a9d88c 100644 --- a/faqs/galaxy/datasets_change_datatype.md +++ b/faqs/galaxy/datasets_change_datatype.md @@ -5,6 +5,11 @@ area: datasets box_type: tip layout: faq contributors: [bebatut,nsoranzo,hexylena,shiltemann,ajadi-abiola,lldelisle,nekrut] +parameters: + datatype: A string representing the Galaxy datatype +examples: + Assign datatype without specifying the datatype: {} + Assign datatype with a specific datatype: {datatype: 'fastqsanger'} --- * Click on the {% icon galaxy-pencil %} **pencil icon** for the dataset to edit its attributes diff --git a/faqs/galaxy/workflows_run_ds.md b/faqs/galaxy/workflows_run_ds.md index f52404d96f8607..b8fa708cf74694 100644 --- a/faqs/galaxy/workflows_run_ds.md +++ b/faqs/galaxy/workflows_run_ds.md @@ -4,6 +4,11 @@ area: workflows box_type: hands_on layout: faq contributors: [hexylena] +parameters: + dockstore_id: The Dockstore ID of the workflow you want to import + title: The title of the workflow you want to import, can be any text +examples: + Load a workflow by Dockstore ID: {dockstore_id: "github.com/jmchilton/galaxy-workflow-dockstore-example-1/mycoolworkflow", title: "My Cool Workflow"} --- {% if include.dockstore_id %} From 52ecb60e9c6f44776325b2d29bca723990e44090 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Tue, 11 Jun 2024 12:35:49 +0200 Subject: [PATCH 02/13] fix close --- _layouts/faq.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_layouts/faq.html b/_layouts/faq.html index 25fc967d5e7fa5..d0f0488d19174c 100644 --- a/_layouts/faq.html +++ b/_layouts/faq.html @@ -123,8 +123,7 @@
Examples
From f1a3ce54690e2ed77d859828a33a4f5645e1f57a Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Tue, 11 Jun 2024 13:29:42 +0200 Subject: [PATCH 03/13] optional and mandatory parameters --- .gitignore | 1 + _layouts/faq.html | 20 ++++++++++--- bin/schema-faq.yaml | 30 +++++++++++++++++++ faqs/galaxy/datasets_convert_datatype.md | 5 ++++ faqs/galaxy/datasets_create_new_file.md | 11 +++++++ faqs/galaxy/datasets_import_via_link.md | 27 +++++++++++++++++ faqs/galaxy/datasets_rename.md | 6 ++++ faqs/galaxy/interactive_tools_open.md | 6 ++++ faqs/galaxy/workflows_run_trs.md | 8 +++++ topics/admin/faqs/git-commit.md | 5 ++++ topics/admin/faqs/missed-something.md | 5 ++++ .../tutorials/zauberkugel/tutorial.md | 2 +- 12 files changed, 121 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index dd488489dc4505..9b9fdbac27c2a9 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ tool_test_output* plnmotmp*.json # Planemo output for workflow autoupdate tools.yml +api/** diff --git a/_layouts/faq.html b/_layouts/faq.html index d0f0488d19174c..833cfb670af053 100644 --- a/_layouts/faq.html +++ b/_layouts/faq.html @@ -103,11 +103,20 @@
Want to embed this snippet (FAQ) in your GTN Tutorial?
{% raw %}{% snippet  {% endraw %}{{ page.path }}{% raw %} %}{% endraw %}
 
- {% if page.parameters %} -
Parameters
+ {% if page.required_parameters %} +
Mandatory Parameters
    - {% for parameter in page.parameters %} -
  • {{ parameter[0] }}: {{ parameter[1]}}
  • + {% for parameter in page.required_parameters %} +
  • {{ parameter[0] }}: {{ parameter[1] }}
  • + {% endfor %} +
+ {% endif %} + + {% if page.optional_parameters %} +
Optional Parameters
+
    + {% for parameter in page.optional_parameters %} +
  • {{ parameter[0] }}: {{ parameter[1] }}
  • {% endfor %}
{% endif %} @@ -121,6 +130,9 @@
Examples
{% endfor %} {% endif %} +
See other uses
+Search on GitHub (must be logged in) +