You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -257,6 +257,13 @@ Nimib options:
257
257
The value of options are available in `nb.options` field which also
258
258
tracks further options in `nb.options.other: seq[tuple[kind: CmdLineKind; name, value: string]]`.
259
259
260
+
### define flags
261
+
262
+
nimib's behavior can be further turned via Nim's define flags:
263
+
264
+
*`-d:nimibQuiet`: Completely disables nimib's logging to stdout
265
+
*`-d:nimibCodeFromAst`: Makes nimib capture block code from AST of body (as opposed to from file source; see next section). Available since version 0.3
266
+
260
267
### Code capture
261
268
262
269
The code capture of a block like `nbCode` (or other custom blocks)
@@ -268,7 +275,6 @@ can happen in two different ways:
268
275
is rendered from AST of body. This means that only documentation comments
269
276
are shown (since normal comments are not part of the AST) and that the source show
270
277
might be different from original source.
271
-
Since version 0.3 this is available through compile time switch `nimibCodeFromAst`.
Copy file name to clipboardExpand all lines: docsrc/index.nim
+7-1
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,13 @@ nbText: hlMdF"""
220
220
The value of options are available in `nb.options` field which also
221
221
tracks further options in `nb.options.other: seq[tuple[kind: CmdLineKind; name, value: string]]`.
222
222
223
+
### define flags
224
+
225
+
nimib's behavior can be further turned via Nim's define flags:
226
+
227
+
* `-d:nimibQuiet`: Completely disables nimib's logging to stdout
228
+
* `-d:nimibCodeFromAst`: Makes nimib capture block code from AST of body (as opposed to from file source; see next section). Available since version 0.3
229
+
223
230
### Code capture
224
231
225
232
The code capture of a block like `nbCode` (or other custom blocks)
@@ -231,7 +238,6 @@ can happen in two different ways:
231
238
is rendered from AST of body. This means that only documentation comments
232
239
are shown (since normal comments are not part of the AST) and that the source show
233
240
might be different from original source.
234
-
Since version 0.3 this is available through compile time switch `nimibCodeFromAst`.
235
241
236
242
## :honeybee: API <!-- Api means bees in Italian -->
0 commit comments