Better handling for explain snippet in docs output.

development
Shawn Davis 3 years ago
parent 7ecdb3c1f3
commit 7a0c450662
  1. 4
      sandbox/cli.py
  2. 11
      scripttease/data/inventory/radicale/steps.ini

@ -216,6 +216,10 @@ This command is used to parse configuration files and output the commands.
continue continue
if snippet.name == "explain": if snippet.name == "explain":
if snippet.header:
output.append("## %s" % snippet.name.title())
output.append("")
output.append(snippet.args[0]) output.append(snippet.args[0])
output.append("") output.append("")
elif snippet.name == "screenshot": elif snippet.name == "screenshot":

@ -1,12 +1,23 @@
[introduction]
explain: "In this tutorial, we are going to install Radicale."
header: yes
[make sure a maintenance root exists] [make sure a maintenance root exists]
mkdir: /var/www/maint/www mkdir: /var/www/maint/www
group: www-data group: www-data
owner: www-data owner: www-data
recursive: yes recursive: yes
[about maintenance root]
explain: "The maintenance root is used to register an SSL certificate (below) before the site is completed and (later) after the site is live."
[install radicale] [install radicale]
pip3: radicale pip3: radicale
;[install radicale screenshot]
;screenshot: images/install.png
;caption: Radical Installed
[create radicale configuration directory] [create radicale configuration directory]
mkdir: /etc/radicale/config mkdir: /etc/radicale/config
owner: radicale owner: radicale

Loading…
Cancel
Save