Unix style: # to end of line
-.. configblock:: options
+.. literalinclude:: ../../doc/misc/options
Any of these zone statements can also be set inside the view statement.
-.. configblock:: primary.zoneopt
-.. configblock:: secondary.zoneopt
-.. configblock:: mirror.zoneopt
-.. configblock:: forward.zoneopt
-.. configblock:: hint.zoneopt
-.. configblock:: redirect.zoneopt
-.. configblock:: static-stub.zoneopt
-.. configblock:: stub.zoneopt
-.. configblock:: in-view.zoneopt
+.. literalinclude:: ../../doc/misc/primary.zoneopt
+.. literalinclude:: ../../doc/misc/secondary.zoneopt
+.. literalinclude:: ../../doc/misc/mirror.zoneopt
+.. literalinclude:: ../../doc/misc/forward.zoneopt
+.. literalinclude:: ../../doc/misc/hint.zoneopt
+.. literalinclude:: ../../doc/misc/redirect.zoneopt
+.. literalinclude:: ../../doc/misc/static-stub.zoneopt
+.. literalinclude:: ../../doc/misc/stub.zoneopt
+.. literalinclude:: ../../doc/misc/in-view.zoneopt
Files
~~~~~
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, make it absolute.
-#
+
sys.path.append(str(Path(__file__).resolve().parent / "_ext"))
sys.path.append(str(Path(__file__).resolve().parent.parent / "misc"))
-sys.path.append(str(Path(__file__).resolve().parent.parent / "ext"))
# -- Project information -----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ["namedconf", "rndcconf", "configblock"]
+extensions = ["namedconf", "rndcconf"]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
+++ /dev/null
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-from pathlib import Path
-
-from docutils import nodes
-
-from sphinx.application import Sphinx
-from sphinx.util.docutils import SphinxDirective
-from sphinx.util.typing import ExtensionMetadata
-
-
-misc_path = Path(__file__).resolve().parent.parent.parent / "misc"
-
-
-class ConfigBlockDirective(SphinxDirective):
- required_arguments = 1
-
- def run(self) -> list[nodes.Node]:
- target = misc_path / self.arguments[0]
-
- block = "{}" if not target.exists() else target.read_text()
-
- return [nodes.literal_block(text=block)]
-
-
-def setup(app: Sphinx) -> ExtensionMetadata:
- app.add_directive("configblock", ConfigBlockDirective)
-
- return {
- "version": "0.1",
- "parallel_read_safe": True,
- "parallel_write_safe": True,
- }
+++ /dev/null
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-manrst_srcset.add(
- files(
- 'configblock.py',
- ),
-)
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
-sys.path.append(str(Path(__file__).resolve().parent.parent / "ext"))
sys.path.append(str(Path(__file__).resolve().parent.parent / "misc"))
# -- Project information -----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ["configblock"]
+extensions = []
# Add any paths that contain templates here, relative to this directory.
templates_path = ["../arm/_templates"]