Skip to content

Commit 05aa044

Browse files
committed
fix(caddy): use language none for Caddyfile code blocks
Pygments has no Caddy lexer, so the nginx lexer was failing on Caddy's brace syntax, causing Sphinx to emit warnings treated as errors in CI. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 8383561 commit 05aa044

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

admin_manual/installation/caddy.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ webroot of your Caddy installation. In this example it is
4343
``/var/www/nextcloud`` and it is accessed via ``http(s)://cloud.example.com/``
4444

4545
.. literalinclude:: Caddyfile.sample
46-
:language: nginx
46+
:language: none
4747

4848
Nextcloud in a subdir of the Caddy webroot
4949
------------------------------------------
@@ -60,7 +60,7 @@ The recommended approach is:
6060
or use ``uri strip_prefix /nextcloud``.
6161
3. Capture the rewritten URI before the PHP handler and pass it as ``REQUEST_URI``:
6262

63-
.. code-block:: nginx
63+
.. code-block:: none
6464
6565
handle_path /nextcloud/* {
6666
# … (place the route block contents here) …
@@ -90,7 +90,7 @@ If you're seeing meaningless messages in your logfile, for example ``client
9090
denied by server configuration: /var/www/data/htaccesstest.txt``, add this
9191
section to your Caddy configuration to suppress them:
9292

93-
.. code-block:: nginx
93+
.. code-block:: none
9494
9595
route {
9696
# …

0 commit comments

Comments
 (0)