Skip to content

Commit 5449acb

Browse files
authored
Merge pull request #40 from seatable/scripts-doc-rework
Adding examples material databases
2 parents a832f8b + d97fabf commit 5449acb

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed

docs/includes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,19 @@ Please note the specific format for link-type columns (structure of the array ob
448448
449449
<!--rowstructure-end-->
450450
451+
<!--examplesmaterial-start-->
452+
453+
For each example, you'll need a special base structure so that you can just copy&paste the scripts into SeaTable and run them.
454+
455+
If you don't want to recreate the tables, here are two bases containing the tables required for each example, depending on whether you want to recreate the scripts yourself or you prefer them to already be present:
456+
457+
- [Examples material (without scripts)](/media/SeaTable examples material (without scripts).dtable)
458+
- [Examples material (scripts included)](/media/SeaTable examples material (scripts included).dtable)
459+
460+
Once downloaded, you can easily [create a base from the DTABLE file](https://seatable.com/help/erstellen-einer-base-aus-einer-dtable-datei/).
461+
462+
<!--examplesmaterial-end-->
463+
451464
<!--add-row-example-start-->
452465
# Add rows
453466
606 KB
Binary file not shown.
593 KB
Binary file not shown.

docs/scripts/javascript/examples/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Examples
22

3-
This documentation currently contains three easy-to-follow examples of JavaScript scripts. For each example, you'll need a special base structure so that you can just copy&paste the scripts into SeaTable and run them.
3+
This documentation currently contains three easy-to-follow examples of JavaScript scripts.
4+
5+
{%
6+
include-markdown "includes.md"
7+
start="<!--examplesmaterial-start-->"
8+
end="<!--examplesmaterial-end-->"
9+
%}
410

511
## Add rows
612

docs/scripts/python/examples/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ This section contains some examples of Python Scripts. The **first three scripts
44

55
Even if Python scripts are capable of checking if the base structure (tables and columns) needed exist and of creating it if necessary, we didn't implement this feature in the scripts so you can focus on the actual goal of each script.
66

7-
For each example, you'll then need a special base structure so that you can just copy&paste the scripts into SeaTable and run them.
7+
{%
8+
include-markdown "includes.md"
9+
start="<!--examplesmaterial-start-->"
10+
end="<!--examplesmaterial-end-->"
11+
%}
812

913
# Add rows
1014

0 commit comments

Comments
 (0)