aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-24 11:48:02 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:41 +0100
commitec99e8486af6aab5a8affa2e7b9088635647b2ce (patch)
tree00c2ba0ddd687a102ed7d5f164ab79e463468008 /support/doc
parent7bd455cb7ff05568944db070f3548b88728ecc67 (diff)
downloadPeerTube-ec99e8486af6aab5a8affa2e7b9088635647b2ce.tar.gz
PeerTube-ec99e8486af6aab5a8affa2e7b9088635647b2ce.tar.zst
PeerTube-ec99e8486af6aab5a8affa2e7b9088635647b2ce.zip
Add server config helper in plugin guide
Diffstat (limited to 'support/doc')
-rw-r--r--support/doc/plugins/guide.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index bc10e624d..20cbec5c7 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -22,6 +22,7 @@
22 - [Custom Modal](#custom-modal) 22 - [Custom Modal](#custom-modal)
23 - [Translate](#translate) 23 - [Translate](#translate)
24 - [Get public settings](#get-public-settings) 24 - [Get public settings](#get-public-settings)
25 - [Get server config](#get-server-config)
25 - [Add custom fields to video form](#add-custom-fields-to-video-form) 26 - [Add custom fields to video form](#add-custom-fields-to-video-form)
26 - [Publishing](#publishing) 27 - [Publishing](#publishing)
27- [Write a plugin/theme](#write-a-plugintheme) 28- [Write a plugin/theme](#write-a-plugintheme)
@@ -470,6 +471,15 @@ peertubeHelpers.getSettings()
470 }) 471 })
471``` 472```
472 473
474#### Get server config
475
476```js
477peertubeHelpers.getServerConfig()
478 .then(config => {
479 console.log('Fetched server config.', config)
480 })
481```
482
473#### Add custom fields to video form 483#### Add custom fields to video form
474 484
475To add custom fields in the video form (in *Plugin settings* tab): 485To add custom fields in the video form (in *Plugin settings* tab):