| 1 |
############################################################################ |
| 2 |
# Copyright (C) Internet Systems Consortium, Inc. ("ISC") |
| 3 |
# |
| 4 |
# SPDX-License-Identifier: MPL-2.0 |
| 5 |
# |
| 6 |
# This Source Code Form is subject to the terms of the Mozilla Public |
| 7 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
| 8 |
# file, you can obtain one at https://mozilla.org/MPL/2.0/. |
| 9 |
# |
| 10 |
# See the COPYRIGHT file distributed with this work for additional |
| 11 |
# information regarding copyright ownership. |
| 12 |
############################################################################ |
| 13 |
|
| 14 |
""" |
| 15 |
Sphinx domain "namedconf". See iscconf.py for details. |
| 16 |
|
| 17 |
""" |
| 18 |
|
| 19 |
from docutils import nodes |
| 20 |
|
| 21 |
import iscconf |
| 22 |
import mergegrammar |
| 23 |
|
| 24 |
|
| 25 |
class ToBeReplacedStatementList(nodes.General, nodes.Element): |
| 26 |
""" |
| 27 |
Placeholder, does nothing, but must be picklable |
| 28 |
(= cannot be in generated class). |
| 29 |
""" |
| 30 |
|
| 31 |
|
| 32 |
def setup(app): |
| 33 |
grammar = mergegrammar.combine() |
| 34 |
return iscconf.setup( |
| 35 |
app, "namedconf", "named.conf", ToBeReplacedStatementList, grammar |
| 36 |
) |