summaryrefslogtreecommitdiff
path: root/doc/source/config.rst
diff options
context:
space:
mode:
authorjvoisin2022-08-18 20:48:05 +0200
committerjvoisin2022-08-18 20:48:05 +0200
commitc99c1a1a349ce442445536cacd54529c2b3632bd (patch)
tree6049338dcb5d8fd2e6481c8e788fefff49d346b3 /doc/source/config.rst
parentee1e741f6230f299b28d26cc6321e8bb6f916a0c (diff)
Fix some formatting in the documentation
Diffstat (limited to '')
-rw-r--r--doc/source/config.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst
index ac8aef1..9d2d0ed 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -82,6 +82,7 @@ It's possible to use conditions to have configuration portable across
82several setups. 82several setups.
83 83
84:: 84::
85
85 @condition PHP_VERSION_ID < 80000; 86 @condition PHP_VERSION_ID < 80000;
86 # some rules 87 # some rules
87 @condition PHP_VERSION_ID >= 80000; 88 @condition PHP_VERSION_ID >= 80000;
@@ -91,6 +92,7 @@ several setups.
91Conditions accept variables and the special function ``extension_loadod()``. 92Conditions accept variables and the special function ``extension_loadod()``.
92 93
93:: 94::
95
94 @condition extension_loaded("sqlite3"); 96 @condition extension_loaded("sqlite3");
95 sp.ini.key("sqlite3.extension_dir").ro(); 97 sp.ini.key("sqlite3.extension_dir").ro();
96 @end_condition; 98 @end_condition;
@@ -98,6 +100,7 @@ Conditions accept variables and the special function ``extension_loadod()``.
98Conditions cannot be nested, but arithmetic and logical operations can be applied. 100Conditions cannot be nested, but arithmetic and logical operations can be applied.
99 101
100:: 102::
103
101 @condition extension_loaded("session") && PHP_VERSION_ID <= 80200; 104 @condition extension_loaded("session") && PHP_VERSION_ID <= 80200;
102 set whitelist "my_fun,cos" 105 set whitelist "my_fun,cos"
103 sp.eval_whitelist.list(whitelist).simulation().dump("/tmp/dump_result/"); 106 sp.eval_whitelist.list(whitelist).simulation().dump("/tmp/dump_result/");
@@ -109,6 +112,7 @@ variables
109You may set a configuration variable using the ``set`` keyword (or ``@set``) and use it instead of arguments. 112You may set a configuration variable using the ``set`` keyword (or ``@set``) and use it instead of arguments.
110 113
111:: 114::
115
112 @set CMD "ls" 116 @set CMD "ls"
113 sp.disable_function.function("system").pos("0").value(CMD).allow(); 117 sp.disable_function.function("system").pos("0").value(CMD).allow();
114 118