updated navigation

This commit is contained in:
Zsolt Viczian
2021-05-08 20:42:11 +02:00
parent 7455405425
commit 045ee288d5
12 changed files with 65 additions and 48 deletions

View File

@@ -1,3 +1,4 @@
# [◀ Excalidraw Automate How To](../readme.md)
## Applying an Excalidraw Template to a New Drawing
This example is similar to the one in the introduction, only rotated 90°, and using a template, plus specifying a filename and folder to save the drawing, and opening the new drawing in a new pane.

View File

@@ -1,4 +1,5 @@
# Connect Objects
# [◀ Excalidraw Automate How To](../readme.md)
## Connect Objects
This [Templater](https://github.com/SilentVoid13/Templater) template demonstrates how to connect two objects using ExcalidrawAutomate.
*Use CTRL+Shift+V to paste code into Obsidian!*

View File

@@ -1,6 +1,11 @@
# Family tree from Tasklist using dataviewjs
# [◀ Excalidraw Automate How To](../readme.md)
## Family tree from Tasklist using dataviewjs
This is similar to the mindmap script using dataviewjs, but the output is rendered vertically.
### Output
![image](https://user-images.githubusercontent.com/14358394/117549637-d3ecc280-b03b-11eb-952a-840a9a75b6ca.png)
### Input file
Task List looks like:
```markdown
- [ ] OBSIDIAN
@@ -12,6 +17,7 @@ Task List looks like:
- [ ] MeeMaw Li
```
### dataviewjs script
Code to render the excalidraw looks like:
```javascript
function crawl(subtasks) {
@@ -58,6 +64,4 @@ buildMindmap(tasks.subtasks, 2, 0, tasks.objectID);
const el=document.querySelector("div.block-language-dataviewjs");
el.appendChild(svg);
})();
```
And the output is:
![image](https://user-images.githubusercontent.com/14358394/117549637-d3ecc280-b03b-11eb-952a-840a9a75b6ca.png)
```

View File

@@ -1,6 +1,11 @@
# Mindmap from Tasklist using dataviewjs
# [◀ Excalidraw Automate How To](../readme.md)
## Mindmap from Tasklist using dataviewjs
This is similar to the mindmap script using templater, but because dataview already returns tasks in a tree, it is slightly simpler
### Output
![image](https://user-images.githubusercontent.com/14358394/117548665-71dd8e80-b036-11eb-8a45-4169fdd7cc05.png)
### Input file
The input file is `Demo.md` with the following contents:
```markdown
- [ ] Root task
@@ -12,6 +17,7 @@ The input file is `Demo.md` with the following contents:
- [ ] task 1.3.1
```
### dataviewjs script
The `dataviewjs` script looks like this:
*Use CTRL+Shift+V to paste code into Obsidian!*
```javascript
@@ -51,7 +57,4 @@ buildMindmap(tasks.subtasks, 1, 0, tasks.objectID);
const el=document.querySelector("div.block-language-dataviewjs");
el.appendChild(svg);
})();
```
And the output is:
![image](https://user-images.githubusercontent.com/14358394/117548665-71dd8e80-b036-11eb-8a45-4169fdd7cc05.png)
```

View File

@@ -1,4 +1,5 @@
# Insert new drawing into currently edited document
# [◀ Excalidraw Automate How To](../readme.md)
## Insert new drawing into currently edited document
This [Templater](https://github.com/SilentVoid13/Templater) template will prompt you for the title of the drawing. It will create a new drawing with the provided title, and in the folder of the document you were editing. It will then transclude the new drawing at the cursor location and open the new drawing in a new workspace leaf by splitting the current leaf.
*Use CTRL+Shift+V to paste code into Obsidian!*

View File

@@ -1,8 +1,11 @@
# Generating a simple mindmap from a text outline
# [◀ Excalidraw Automate How To](../readme.md)
## Generating a simple mindmap from a text outline
This is a slightly more elaborate example. This will generate an a mindmap from a tabulated outline.
### Output
![Drawing 2021-05-05 20 52 34](https://user-images.githubusercontent.com/14358394/117194124-00a69d00-ade4-11eb-8b75-5e18a9cbc3cd.png)
### Input file
Example input:
```
- Test 1
@@ -18,8 +21,7 @@ Example input:
- Test 3.1
```
The script:
### Templater script
*Use CTRL+Shift+V to paste code into Obsidian!*
```javascript
<%*