chore: doc: remove sparse trailing spaces from generated files

This commit is contained in:
Stéphane Lesimple 2022-12-16 18:15:21 +00:00 committed by Stéphane Lesimple
parent 76f25f287e
commit 9eac699954
50 changed files with 216 additions and 171 deletions

View file

@ -44,7 +44,7 @@ do
else
perl "$pluginfile" '' '' '' '' | perl -e 'undef $/; $_=<>; s/\n+$/\n/; print $_' | perl -ne '
if (m{^Usage: (.+)}) { print ".. admonition:: usage\n :class: cmdusage\n\n $1\n\n.. program:: '"$name"'\n\n"; }
elsif (m{^ (-[- ,a-z|/A-Z"'"'"']+) (.+)}) { print ".. option:: $1\n\n $2\n\n"; }
elsif (m{^ (-[- ,a-z|/A-Z"'"'"']+) (.+)}) { ($c,$t)=($1,$2); $c=~s/ +$//; print ".. option:: $c\n\n $t\n\n"; }
elsif ($l++ == 0) { chomp; print "$_\n"."="x(length($_))."\n\n"; }
else { print "$_"; }
'

View file

@ -0,0 +1,25 @@
==============
accountFreeze
==============
Freeze an account, to prevent it from connecting
================================================
.. admonition:: usage
:class: cmdusage
--osh accountFreeze --account ACCOUNT [--reason "'SOME REASON'"]
.. program:: accountFreeze
.. option:: --account ACCOUNT
Account to freeze
.. option:: --reason "'SOME REASON'"
Optional reason for the account to be frozen (will be displayed to the user),
if you are in a shell (and not in interactive mode), quote it twice as shown.

View file

@ -0,0 +1,20 @@
================
accountUnfreeze
================
Unfreeze a frozen account
=========================
.. admonition:: usage
:class: cmdusage
--osh accountUnfreeze --account ACCOUNT
.. program:: accountUnfreeze
.. option:: --account ACCOUNT
Account to unfreeze

View file

@ -141,7 +141,7 @@ then use ``<TAB>`` again to show you the required arguments. The complete comman
You'll notice that it didn't work. This is because first, you need to add your *personal egress key* to the
remote machine's *authorized_keys* file. If this seems strange, here is
:doc:`how it works <../presentation/principles>`.
:doc:`how it works </presentation/principles>`.
To get your *personal egress key*, you can use this command:
.. code-block:: shell
@ -267,4 +267,4 @@ Let's see what we did exactly during this session:
~ Starting from the next line, the Total Recall begins. Press CTRL+C to jolt awake.
Now that you've connected to your first server, using a personal access,
you may want to learn more about the :doc:`<access_management>`, or directly dive into the **PLUGINS** on the left menu.
you may want to learn more about the :doc:`access_management`, or directly dive into the **PLUGINS** on the left menu.