chiark / gitweb /
docs: wip markdown
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Sep 2022 22:39:34 +0000 (23:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Sep 2022 22:39:34 +0000 (23:39 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
docs/config.md [moved from docs/config.rst with 53% similarity]
docs/index.rst

similarity index 53%
rename from docs/config.rst
rename to docs/config.md
index 08d5d779bd6061e896832cf9c3fdcc5de2e64aae..49a9b331e3c5b353aed3682d22a3b9d0ad86b188 100644 (file)
@@ -2,12 +2,12 @@ Configuration scheme
 ====================
 
 Configuration is in an INI-like format.  Sections start with lines
-``[...]``.  Every setting must be in a section.  ``#`` and ``;``
-comment lines are supported.  Settings ``nmae = value``.  Whitespace
+`[...]`.  Every setting must be in a section.  `#` and `;`
+comment lines are supported.  Settings are `nmae = value`.  Whitespace
 around the name and value is ignored.
 
 The configuration files are resolved to a configuration for each
-pairwise link between a client and a server.
+pairwise **link** between a client and a server.
 
 Sections
 --------
@@ -19,36 +19,36 @@ Unless otherwise specified, any particular config setting for a
 particular link is the value from the first of the following
 applicable sections, or failing that the built-in default:
 
-  * ``[<servername> <client>]``
-  * ``[<client>]``
-  * ``[<servername>]`` (often ``[SERVER]``)
-  * ``[COMMON]``
+  * `[<servername> <client>]`
+  * `[<client>]`
+  * `[<servername>]` (often `[SERVER]`)
+  * `[COMMON]`
 
-``<client>`` is the client's virtual address in IPv4 or IPv6 literal
-syntax (without any surrounding ``[..]``.
+`<client>` is the client's virtual address in IPv4 or IPv6 literal
+syntax (without any surrounding `[..]`.
 
-``<servername>`` must be in the syntrax of a valid lowercase DNS
-hostname (and not look like an address), or be literally ``SERVER``.
+`<servername>` must be in the syntrax of a valid lowercase DNS
+hostname (and not look like an address), or be literally `SERVER`.
 
 There are also these special sections:
 
- * ``[<servername> LIMIT]``
- * ``[LIMIT]``
+ * `[<servername> LIMIT]`
+ * `[LIMIT]`
 
 Files
 -----
 
 Both client and server read the files
 
- * ``/etc/hippotat/main.cfg`` (if it exists)
- * ``/etc/hippotat/config.d/*``
- * ``/etc/hippotat/secrets.d/*``
+ * `/etc/hippotat/main.cfg` (if it exists)
+ * `/etc/hippotat/config.d/*`
+ * `/etc/hippotat/secrets.d/*`
 
-Here ``*`` means all contained files whose names consists of only
-ascii alphanumerics plus ``-`` and ``_``.
+Here `*` means all contained files whose names consists of only
+ascii alphanumerics plus `-` and `_`.
 
-The ``--config`` option can be used to override the directory (usually
-``/etc/hippotat``).  Additonally each ``--extra-config`` option names
+The `--config` option can be used to override the directory (usually
+`/etc/hippotat`).  Additonally each `--extra-config` option names
 an existing file or directory to be processed analagously.
 
 The ini file format sections from these files are all unioned.  Later
@@ -60,5 +60,5 @@ server or client to be in a file named after that endpoint, there is
 no semantic link: all the files are always read and the appropriate
 section from each is applied to every link.
 
-(If ``main.cfg`` does not exist, ``master.cfg`` will be tried for
+(If `main.cfg` does not exist, `master.cfg` will be tried for
 backward compatibility reasons.)
index 31973faea830c916c1aecd98b95794e73f66a3f7..2f4ff63a195e069cd7ba459493baaca068e5efc2 100644 (file)
@@ -6,7 +6,7 @@ Hippotat - Asinine IP over HTTP
    :caption: Contents:
 
    README
-   config.rst
+   config.md
    settings.rst
 
 Indices and tables