From 4754d018344aff7b70264cb52f89d1f1e14e9f24 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 8 Dec 2024 19:47:59 +0200 Subject: [PATCH 1/3] scoped style --- _includes/code_tabs.html | 177 ++++++++++++++++++++------------------- 1 file changed, 89 insertions(+), 88 deletions(-) diff --git a/_includes/code_tabs.html b/_includes/code_tabs.html index 1367297..9777381 100644 --- a/_includes/code_tabs.html +++ b/_includes/code_tabs.html @@ -1,98 +1,99 @@ - -
{% assign codes = "python,javascript,cpp,rust,java,bash" | split: "," %} {% for code_name in codes %} - {% if include[code_name] %} - - - {% endif %} + {% if include[code_name] %} + + + {% endif %} {% endfor %} {% for code_name in codes %} - {% if include[code_name] %} -
-
- -
{{ include[code_name] | escape }}
-
+ {% if include[code_name] %} +
+
+ +
{{ include[code_name] | escape }}
- {% endif %} +
+ {% endif %} {% endfor %} + + +
\ No newline at end of file From fe1424abfaa8c65f69d5f9ad94ed482df5c541bc Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 8 Dec 2024 19:54:36 +0200 Subject: [PATCH 2/3] name for radio --- _includes/code_tabs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/code_tabs.html b/_includes/code_tabs.html index 9777381..6c0fedb 100644 --- a/_includes/code_tabs.html +++ b/_includes/code_tabs.html @@ -3,8 +3,8 @@ {% for code_name in codes %} {% if include[code_name] %} - - + + {% endif %} {% endfor %} From 4092e6b1b0a1f57f8926948af6defa9c569c4368 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 8 Dec 2024 20:00:31 +0200 Subject: [PATCH 3/3] rename bash to shell --- _includes/code_tabs.html | 2 +- commands/graph.query.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_includes/code_tabs.html b/_includes/code_tabs.html index 6c0fedb..966128c 100644 --- a/_includes/code_tabs.html +++ b/_includes/code_tabs.html @@ -1,5 +1,5 @@
- {% assign codes = "python,javascript,cpp,rust,java,bash" | split: "," %} + {% assign codes = "python,javascript,cpp,rust,java,shell" | split: "," %} {% for code_name in codes %} {% if include[code_name] %} diff --git a/commands/graph.query.md b/commands/graph.query.md index f6cd6c4..06f9c0a 100644 --- a/commands/graph.query.md +++ b/commands/graph.query.md @@ -26,7 +26,7 @@ Query-level timeouts can be set as described in [the configuration section](/con example: -{% capture bash_0 %} +{% capture shell_0 %} GRAPH.QUERY us_government "MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p" {% endcapture %} @@ -34,7 +34,7 @@ GRAPH.QUERY us_government "MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) graph.query("MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p") {% endcapture %} -{% include code_tabs.html id="tabs_0" bash=bash_0 python=python_0 %} +{% include code_tabs.html id="tabs_0" shell=shell_0 python=python_0 %} #### Parametrized query structure: @@ -43,7 +43,7 @@ graph.query("MATCH (p:president)-[:born]->(:state {name:'Hawaii'}) RETURN p") example: -{% capture bash_1 %} +{% capture shell_1 %} GRAPH.QUERY us_government "CYPHER state_name='Hawaii' MATCH (p:president)-[:born]->(:state {name:$state_name}) RETURN p" {% endcapture %} @@ -51,7 +51,7 @@ GRAPH.QUERY us_government "CYPHER state_name='Hawaii' MATCH (p:president)-[:born graph.query("MATCH (p:president)-[:born]->(:state {name:$state_name}) RETURN p", {'state_name': 'Hawaii'}) {% endcapture %} -{% include code_tabs.html id="tabs_1" bash=bash_1 python=python_1 %} +{% include code_tabs.html id="tabs_1" shell=shell_1 python=python_1 %} ### Query language