Skip to content

Commit

Permalink
Update noeval doc. (#915)
Browse files Browse the repository at this point in the history
* Update page var for `noeval`.

Add description.

* Add `noeval` note.

Add note and fix style.

* Update new addition

Remove multi-negation form.
  • Loading branch information
luraess authored Oct 29, 2021
1 parent da7c927 commit 52e94f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/code/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ As per Common Mark specifications, you have multiple ways of inserting code:
This is some `inline code` or ``inline ` code with a tick``.
`````

NOTE: To use backslash (`\ `) at the end of inline code, you must include a trailing space to ensure the trailing tick is parsed correctly, eg `` `some code with \ ` ``. The trailing space will be trimmed in the rendered html.
**Note**: To use backslash (`\ `) at the end of inline code, you must include a trailing space to ensure the trailing tick is parsed correctly, eg `` `some code with \ ` ``. The trailing space will be trimmed in the rendered html.

* **code blocks**: it is recommended to use triple backticks (\`\`\`) optionally followed by a language name for highlighting like so:

Expand Down Expand Up @@ -53,6 +53,8 @@ In Franklin there are two approaches that help you for this:
1. For all languages, you can run the script separately and use Franklin to insert the code file and/or the output generated by the code.
@@

**Note**: Disabling code evaluation (e.g., when presenting incomplete code snippets in tutorials or courses that would error upon evaluation), can be specified with the local page variable `noeval = true` (default `false`).

## Live evaluation (Julia)

Julia code blocks can be evaluated on the fly and their output either displayed as code or re-interpreted as Markdown.
Expand Down
1 change: 1 addition & 0 deletions docs/syntax/page-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ For more informations on these, see the section on [inserting and evaluating cod
@@lalign
| Name | Type | Default value | Comment
| ---- | ---- | ------------- | -------
| `noeval` | `Bool` | `false` | if set to `true`, disable code block evaluation on the page
| `reeval` | `Bool` | `false` | whether to reevaluate all code blocks on the page
| `showall` | `Bool` | `false` | notebook mode if `true` where the output of the code block is shown below
| `fd_eval` | `Bool` | `false` | internal variable to keep track of whether the scope is stale (in which case all subsequent blocks are re-evaluated)
Expand Down

0 comments on commit 52e94f3

Please sign in to comment.