Skip to content

Commit 7cf9fd7

Browse files
committed
fix(commands): replace undefined :ref:occ with external link
The `occ` label is defined in the admin manual which is a separate Sphinx build, causing an undefined label warning. Replace with an absolute URL per the cross-manual linking convention. Also fix the style guide which incorrectly documented `/latest/` instead of `/server/latest/` as the cross-manual URL pattern. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 6cfa659 commit 7cf9fd7

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

developer_manual/app_development/commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
occ commands
55
============
66

7-
Nextcloud apps can register custom :ref:`occ <occ>` commands that administrators can run from the command line. Commands extend ``OC\Core\Command\Base``, which wraps
7+
Nextcloud apps can register custom `occ <https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html>`_ commands that administrators can run from the command line. Commands extend ``OC\Core\Command\Base``, which wraps
88
`Symfony Console <https://symfony.com/doc/current/console.html>`_ and adds bash completion support, so the full Symfony
99
Console API is available.
1010

style_guide.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,12 @@ page moves.
291291
See :doc:`../configuration_server/config_sample_php_parameters` for all
292292
available options.
293293

294-
**Different manual — use a** ``docs.nextcloud.com/latest/`` **URL**
294+
**Different manual — use a** ``docs.nextcloud.com/server/latest/`` **URL**
295295
When linking from one manual to a page in a different manual (e.g. from the
296296
User Manual to the Administration Manual), use an absolute URL with
297-
``/latest/`` as the version segment. The build system automatically replaces
298-
``/latest/`` with the correct version number for stable branches::
297+
``/server/latest/`` as the version segment::
299298

300-
See `Backup configuration <https://docs.nextcloud.com/latest/admin_manual/maintenance/backup.html>`_
299+
See `Backup configuration <https://docs.nextcloud.com/server/latest/admin_manual/maintenance/backup.html>`_
301300
for details.
302301

303302
``:doc:``

0 commit comments

Comments
 (0)