mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
[fix] went to fast chaging json to javascript for highlighting
This commit is contained in:
parent
2503c2f22c
commit
60c359c45f
1 changed files with 14 additions and 14 deletions
|
@ -1,13 +1,13 @@
|
||||||
# YunoHost Arguments Format
|
# YunoHost Arguments Format
|
||||||
|
|
||||||
In YunoHost application developpement there are several places where you end up
|
In YunoHost application developpement there are several places where you end up
|
||||||
writting questions for your user like in the `manifest.javascript/toml`, the
|
writting questions for your user like in the `manifest.json/toml`, the
|
||||||
`config_panel.javascript/toml` or `actions.json/toml`.
|
`config_panel.json/toml` or `actions.json/toml`.
|
||||||
|
|
||||||
This page documents this format and all available kind of questions you can ask
|
This page documents this format and all available kind of questions you can ask
|
||||||
your user. Unless it's stated otherwise, this format applies to everyplace it's
|
your user. Unless it's stated otherwise, this format applies to everyplace it's
|
||||||
usable (for now: installation arguments in `manifest.javascript/toml`,
|
usable (for now: installation arguments in `manifest.json/toml`,
|
||||||
`config_panel.javascript/toml` and `actions.json/toml`)
|
`config_panel.json/toml` and `actions.json/toml`)
|
||||||
|
|
||||||
## YunoHost arguments general format
|
## YunoHost arguments general format
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ example = "an example value" # optional
|
||||||
default = "some stuff" # optional, not available for all types
|
default = "some stuff" # optional, not available for all types
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -60,7 +60,7 @@ example = "an example value" # optional
|
||||||
default = "some stuff" # optional
|
default = "some stuff" # optional
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -91,7 +91,7 @@ choices = ["fr", "en"]
|
||||||
default = "en" # optional
|
default = "en" # optional
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -120,7 +120,7 @@ ask.en = "the question in english"
|
||||||
ask.fr = "the question in french"
|
ask.fr = "the question in french"
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -148,7 +148,7 @@ ask.fr = "the question in french"
|
||||||
default = "/my_app"
|
default = "/my_app"
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -177,7 +177,7 @@ ask.en = "the question in english"
|
||||||
ask.fr = "the question in french"
|
ask.fr = "the question in french"
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -204,7 +204,7 @@ ask.en = "the question in english"
|
||||||
ask.fr = "the question in french"
|
ask.fr = "the question in french"
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -231,7 +231,7 @@ ask.fr = "the question in french"
|
||||||
default = true
|
default = true
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -259,7 +259,7 @@ ask.en = "the question in english"
|
||||||
ask.fr = "the question in french"
|
ask.fr = "the question in french"
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
@ -284,7 +284,7 @@ ask.en = "the text in english"
|
||||||
ask.fr = "the text in french"
|
ask.fr = "the text in french"
|
||||||
```
|
```
|
||||||
|
|
||||||
And in javascript:
|
And in json:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue