Skip to content

Commit 2444a92

Browse files
Openblocks-docsgitbook-bot
Openblocks-docs
authored andcommitted
GitBook: [#64] No subject
1 parent 06f4319 commit 2444a92

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* [App editor](build-apps/app-editor.md)
2323
* [Event handlers](build-apps/event-handlers.md)
2424
* [Write JavaScript](build-apps/write-javascript/README.md)
25-
* [Use third-party libraries](build-apps/write-javascript/use-third-party-libraries.md)
25+
* [Use third-party libraries](build-apps/use-third-party-libraries.md)
2626
* [Version and release management](build-apps/version-and-release-management.md)
2727

2828
## Workspace management

docs/build-apps/write-javascript/use-third-party-libraries.md renamed to docs/build-apps/use-third-party-libraries.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Every developer learns one of the most important principles of software engineering early in their career: DRY (Don’t Repeat Yourself). Using third-party libraries can save your time as you do not need to develop the functionality that the library provides. Openblocks provides some built-in third-party libraries for common uses, and you can manually import other libraries on demand.
44

5-
### Built-in libraries
5+
## Built-in libraries
66

77
Openblocks provides some JavaScript built-in libraries for use:
88

@@ -14,7 +14,7 @@ Openblocks provides some JavaScript built-in libraries for use:
1414
| numbro | [https://numbrojs.com/format.html](https://numbrojs.com/format.html) | 2.3.6 |
1515
| papaparse | [https://www.papaparse.com/docs](https://www.papaparse.com/docs) | 5.3.2 |
1616

17-
### Manually import libraries
17+
## Manually import libraries
1818

1919
Openblocks supports setting up preloaded JavaScript and libraries which can be **app-level** or **workspace-level**.
2020

@@ -65,25 +65,25 @@ Now let's take **cowsay** as an example and import it on app-level and workspace
6565

6666
### Import on App-level
6767

68-
Navigate to the left sidebar, click <img src="../../.gitbook/assets/image (1).png" alt="" data-size="line"> > **Other** > **Scripts and style** > **Add a library**. Then paste the **cowsay** link here.
68+
Navigate to the left sidebar, click <img src="../.gitbook/assets/image (1).png" alt="" data-size="line"> > **Other** > **Scripts and style** > **Add a library**. Then paste the **cowsay** link here.
6969

70-
<figure><img src="../../.gitbook/assets/Add a library (2).png" alt=""><figcaption></figcaption></figure>
70+
<figure><img src="../.gitbook/assets/Add a library (2).png" alt=""><figcaption></figcaption></figure>
7171

7272
Now you can write code in **JS query** to test its usage with `cowsay.say`:
7373

74-
<figure><img src="../../.gitbook/assets/write code in JS query (2).png" alt=""><figcaption></figcaption></figure>
74+
<figure><img src="../.gitbook/assets/write code in JS query (2).png" alt=""><figcaption></figcaption></figure>
7575

7676
or in component **Properties**:
7777

78-
<figure><img src="../../.gitbook/assets/or in Properties (2).png" alt=""><figcaption></figcaption></figure>
78+
<figure><img src="../.gitbook/assets/or in Properties (2).png" alt=""><figcaption></figcaption></figure>
7979

8080
And since you have set up cowsay just for **Openblocks's new application 1,** you can not use cowsay in another app.
8181

82-
<figure><img src="../../.gitbook/assets/in another app (1).png" alt=""><figcaption></figcaption></figure>
82+
<figure><img src="../.gitbook/assets/in another app (1).png" alt=""><figcaption></figcaption></figure>
8383

8484
### Import on Workspace-level libraries
8585

8686
Navigate to **Workspace settings** > **Advanced** > **JavaScript library** > **Add a library**. Then paste the **cowsay** link here and click **Save**. Now you can use **cowsay** library **** in any app of your workspace.\
87-
![](<../../.gitbook/assets/Import on Workspace-level libraries (1).png>)
87+
![](<../.gitbook/assets/Import on Workspace-level libraries (1).png>)
8888

89-
<figure><img src="../../.gitbook/assets/Import on Workspace-level libraries-advanced.png" alt=""><figcaption></figcaption></figure>
89+
<figure><img src="../.gitbook/assets/Import on Workspace-level libraries-advanced.png" alt=""><figcaption></figcaption></figure>

0 commit comments

Comments
 (0)