Skip to content

Commit ccc8d09

Browse files
committed
Register prf:example directive in prf domain
Added app.add_directive_to_domain to ensure the 'prf:example' directive is registered within the 'prf' domain using CodexDirective. This improves compatibility with domain-specific directive handling.
1 parent 1958534 commit ccc8d09

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/sphinx_code_examples/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def replace_prf_example(app: Sphinx, config: Config) -> None:
126126
# only called if merge_with_proof is True
127127
# overrides the prf:example directive to use codex directive
128128
app.add_directive('prf:example', CodexDirective,override=True)
129+
app.add_directive_to_domain('prf','example', CodexDirective,override=True)
129130

130131
def check_config(app: Sphinx, config: Config) -> None:
131132
# check validity of config and act accordingly

0 commit comments

Comments
 (0)