Skip to content

Commit

Permalink
Merge pull request #24 from cgay/dev
Browse files Browse the repository at this point in the history
Update deprecated uses of sphinx.directives.DescDirective
  • Loading branch information
cgay authored May 23, 2022
2 parents 9abbc14 + 5017d31 commit e7bfe02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sphinxcontrib/dylan/domain/dylandomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from docutils.parsers.rst import Directive
from sphinx.domains import Domain, Index
from sphinx.domains import ObjType
from sphinx.directives import DescDirective
from sphinx.directives import ObjectDescription
from sphinx.roles import XRefRole
from sphinx.util.docfields import Field, GroupedField, TypedField
from sphinx.util.nodes import make_refnode
Expand Down Expand Up @@ -142,7 +142,7 @@ def run (self):
return []


class DylanDescDirective (DescDirective):
class DylanDescDirective (ObjectDescription):
"""A documentable Dylan language object."""

display_name = None
Expand All @@ -158,7 +158,7 @@ class DylanDescDirective (DescDirective):
listed in option_spec, though not all options need to be annotations.
"""

option_spec = dict(DescDirective.option_spec.items())
option_spec = dict(ObjectDescription.option_spec.items())
option_spec.update(dict({
'synopsis': DIRECTIVES.unchanged,
}.items()))
Expand All @@ -170,7 +170,7 @@ class DylanDescDirective (DescDirective):
names=('discussion', 'description')),
Field('seealso', label="See also", has_arg=False,
names=('seealso',)),
] + DescDirective.doc_field_types
] + ObjectDescription.doc_field_types

# It is not documented, but self.names is a series of tuples. Each tuple is
# the result of handle_signature on a signature. A signature is a directive
Expand Down

0 comments on commit e7bfe02

Please sign in to comment.