summaryrefslogtreecommitdiff
path: root/docs/modules/api
diff options
context:
space:
mode:
Diffstat (limited to 'docs/modules/api')
-rw-r--r--docs/modules/api/pages/set-safe-mode.adoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/modules/api/pages/set-safe-mode.adoc b/docs/modules/api/pages/set-safe-mode.adoc
index eca166a3..5548f24c 100644
--- a/docs/modules/api/pages/set-safe-mode.adoc
+++ b/docs/modules/api/pages/set-safe-mode.adoc
@@ -8,14 +8,14 @@ You can change the safe mode using a string, symbol or integer value.
The value must be set in the document constructor using the `:safe` option.
- result = Asciidoctor.convert_file('master.adoc', safe: 'server')
+ result = Asciidoctor.convert_file 'doc.adoc', safe: 'server'
or
- result = Asciidoctor.convert_file('master.adoc', safe: :server)
+ result = Asciidoctor.convert_file 'doc.adoc', safe: :server
or
- result = Asciidoctor.convert_file('master.adoc', safe: 10)
+ result = Asciidoctor.convert_file 'doc.adoc', safe: 10
You can also set the xref:cli:set-safe-mode.adoc[safe mode from the CLI] and xref:ROOT:reference-safe-mode.adoc[enable or disable content based on the current safe mode].