source: specdomain/src/specdomain/sphinxcontrib/specdomain.py @ 909

Last change on this file since 909 was 909, checked in by jemian, 11 years ago

refs #8

File size: 1002 bytes
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
17import re
18import string
19
20from docutils import nodes
21from docutils.parsers.rst import directives
22
23from sphinx import addnodes
24from sphinx.roles import XRefRole
25from sphinx.locale import l_, _
26from sphinx.directives import ObjectDescription
27from sphinx.domains import Domain, ObjType, Index
28from sphinx.util.compat import Directive
29from sphinx.util.nodes import make_refnode
30from sphinx.util.docfields import Field, TypedField
31
32
33class SpecDomain(Domain):
34    """SPEC language domain."""
35    name = 'spec'
36    label = 'SPEC'
37
38
39# http://sphinx.pocoo.org/ext/tutorial.html#the-setup-function
40
41def 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.