Skip to content

Commit

Permalink
Make the threelang examples display properly
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanmieghem committed Aug 24, 2023
1 parent 7185bb3 commit d312dba
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 37 deletions.
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/blockchain/money.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```md
!!web3gw.keys.define
mnemonic:'mom picnic deliver again rug night rabbit music motion hole lion where'
stellar_secret:'SAKRB7EE6H23EF733WFU76RPIYOPEWVOMBBUXDQYQ3OF4NF6ZY6B6VLW'
Expand All @@ -16,3 +17,4 @@
bridge_to:tfchain
to:28
amount:100
```
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/tfgrid/discourse.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- This example deployes, gets, and deletes a discourse instance on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
Expand All @@ -25,3 +26,4 @@

!!tfgrid.discourse.delete
name: discoursename
```
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/tfgrid/explorer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- This example uses the tfgrid explorer to retrieve information about the grid

```md
!!tfgrid.nodes.get
network: dev
count: true
Expand All @@ -27,3 +28,4 @@

!!tfgrid.twins.get
twin_id: 1234
```
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/tfgrid/funkwhale.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- This example deployes, gets, and deletes a Funkwhale instance on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
Expand All @@ -23,3 +24,4 @@

!!tfgrid.funkwhale.delete
name: funkwhale_instance
```
18 changes: 10 additions & 8 deletions manual/src/threelang/examples/tfgrid/gateway_fqdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

- This example deployes, gets, and deletes a gateway fqdn workload on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
mnemonic: 'YOUR MNEMONICS'
network: dev

!!tfgrid.gateway_fqdn.create
name: hamadafqdn
node_id: 11
backend: http://1.1.1.1:9000
fqdn: hamada1.3x0.me
name: hamadafqdn
node_id: 11
backend: http://1.1.1.1:9000
fqdn: hamada1.3x0.me

!!tfgrid.gateway_fqdn.get
name: hamadafqdn
name: hamadafqdn

!!tfgrid.gateway_fqdn.delete
name: hamadafqdn
name: hamadafqdn
```
14 changes: 8 additions & 6 deletions manual/src/threelang/examples/tfgrid/gateway_name.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

- This example deployes, gets, and deletes a gateway name workload on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
mnemonic: 'YOUR MNEMONICS'
network: dev

!!tfgrid.gateway_name.create
name: hamadagateway
backend: http://1.1.1.1:9000
name: hamadagateway
backend: http://1.1.1.1:9000

!!tfgrid.gateway_name.get
name: hamadagateway
name: hamadagateway

!!tfgrid.gateway_name.delete
name: hamadagateway
name: hamadagateway
```
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/tfgrid/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- This example deployes, gets, updates, and deletes a kubernetes cluster on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONIC'
network: dev
Expand Down Expand Up @@ -31,3 +32,4 @@

!!tfgrid.kubernetes.delete
name: myk8s
```
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/tfgrid/peertube.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- This example deployes, gets, and deletes a Peertube instance on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
Expand All @@ -23,3 +24,4 @@

!!tfgrid.peertube.delete
name: mypeertube
```
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/tfgrid/presearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- This example deployes, gets, and deletes a Presearch instance on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
Expand All @@ -21,3 +22,4 @@

!!tfgrid.presearch.delete
name: mypresearch
```
2 changes: 2 additions & 0 deletions manual/src/threelang/examples/tfgrid/taiga.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- This example deployes, gets, and deletes a Taiga instance on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
Expand All @@ -23,3 +24,4 @@

!!tfgrid.taiga.delete
name: hamadataiga
```
34 changes: 18 additions & 16 deletions manual/src/threelang/examples/tfgrid/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@

- This example deployes, gets, udpates, and deletes a network of machines on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
mnemonic: 'YOUR MNEMONICS'
network: dev

!!tfgrid.sshkeys.new
name: default
ssh_key: 'YOUR SSH KEY'
name: default
ssh_key: 'YOUR SSH KEY'

!!tfgrid.machine.create
network: skynet
capacity: small
times: 2
gateway: yes
add_wireguard_access: yes
disk_size: 10GB
network: skynet
capacity: small
times: 2
gateway: yes
add_wireguard_access: yes
disk_size: 10GB

!!tfgrid.machine.create
network: skynet
capacity: medium
network: skynet
capacity: medium

!!tfgrid.machine.remove
network: skynet
machine: ewbjpuqe
network: skynet
machine: ewbjpuqe

!!tfgrid.machine.get
network: skynet
network: skynet

!!tfgrid.machine.delete
network: skynet
network: skynet
```
16 changes: 9 additions & 7 deletions manual/src/threelang/examples/tfgrid/zdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

- This example deploys, gets, and deletes a ZDB workload on the tfgrid.

```md
!!tfgrid.core.login
mnemonic: 'YOUR MNEMONICS'
network: dev
mnemonic: 'YOUR MNEMONICS'
network: dev

!!tfgrid.zdbs.create
name: hamadazdb
size: 10GB
password: pass1
name: hamadazdb
size: 10GB
password: pass1

!!tfgrid.zdbs.get
name: hamadazdb
name: hamadazdb

!!tfgrid.zdbs.delete
name: hamadazdb
name: hamadazdb
```md

0 comments on commit d312dba

Please sign in to comment.