Line | |
---|
1 | # -*- coding: utf-8 -*- |
---|
2 | """ |
---|
3 | sphinxcontrib.specdomain |
---|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
5 | |
---|
6 | SPEC domain. |
---|
7 | |
---|
8 | :copyright: Copyright 2012 by Pete Jemian |
---|
9 | :license: BSD, see LICENSE for details. |
---|
10 | """ |
---|
11 | |
---|
12 | # $Id: $ |
---|
13 | |
---|
14 | # http://sphinx.pocoo.org/ext/appapi.html |
---|
15 | |
---|
16 | |
---|
17 | import re #@UnusedImport |
---|
18 | import string #@UnusedImport |
---|
19 | |
---|
20 | from docutils import nodes #@UnusedImport |
---|
21 | from docutils.parsers.rst import directives #@UnusedImport |
---|
22 | |
---|
23 | from sphinx import addnodes #@UnusedImport |
---|
24 | from sphinx.roles import XRefRole #@UnusedImport |
---|
25 | from sphinx.locale import l_, _ #@UnusedImport |
---|
26 | from sphinx.directives import ObjectDescription #@UnusedImport |
---|
27 | from sphinx.domains import Domain, ObjType, Index #@UnusedImport |
---|
28 | from sphinx.util.compat import Directive #@UnusedImport |
---|
29 | from sphinx.util.nodes import make_refnode #@UnusedImport |
---|
30 | from sphinx.util.docfields import Field, TypedField #@UnusedImport |
---|
31 | |
---|
32 | |
---|
33 | class SpecDomain(Domain): |
---|
34 | """SPEC language domain.""" |
---|
35 | name = 'spec' |
---|
36 | label = 'SPEC, http://www.certif.com' |
---|
37 | |
---|
38 | |
---|
39 | # http://sphinx.pocoo.org/ext/tutorial.html#the-setup-function |
---|
40 | |
---|
41 | def setup(app): |
---|
42 | app.add_domain(SpecDomain) |
---|
43 | # http://sphinx.pocoo.org/ext/appapi.html#sphinx.domains.Domain |
---|
Note: See
TracBrowser
for help on using the repository browser.