@@ -0,0 +1,1013 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0A%09sphinxcontrib.openstreetmap%0A%09===========================%0A%0A%09Embed OpenStreetMap on your documentation.%0A%0A%09:copyright: Copyright 2015 HAYASHI Kentaro %3Ckenhys@gmail.com%3E%0A%09:license: BSD, see LICENSE for details.%0A%22%22%22%0Afrom sphinx.util.compat import Directive%0A%0Aclass openstreetmap(nodes.General, nodes.Element):%0A    pass%0A%0Aclass OpenStreetMapDirective(Directive):%0A    %22%22%22Directive for embedding OpenStreetMap%22%22%22%0A    has_content = False%0A    option_spec = %7B%0A        'name': directives.unchanged,%0A        'label': directives.unchanged%0A    %7D%0A%0A    def run(self):%0A        node = openstreetmap()%0A        return %5Bnode%5D%0A%0Adef visit_openstreetmap_node(self, node):%0A    self.body.append(%22%3Cdiv id='openstreetmap' style='color:red'%3EOpenStreetMap directive%3C/div%3E%22)%0A%0Adef depart_openstreetmap_node(self, node):%0A    pass%0A%0Adef setup(app):%0A    app.add_node(openstreetmap,%0A                 html=(visit_openstreetmap_node, depart_openstreetmap_node))%0A    app.add_directive('openstreetmap', OpenStreetMapDirective)%0A%0A

Add template script for supporting OpenStreetMap