1#!/usr/bin/env python 2 3# Copyright Aleksey Gurtovoy 2004-2009 4# 5# Distributed under the Boost Software License, Version 1.0. 6# (See accompanying file LICENSE_1_0.txt or copy at 7# http://www.boost.org/LICENSE_1_0.txt) 8 9 10import locale 11try: 12 locale.setlocale(locale.LC_ALL, '') 13except: 14 pass 15 16from docutils.parsers.rst import directives 17from docutils.parsers.rst.directives import htmlrefdoc 18directives.register_directive( 'copyright', htmlrefdoc.LicenseAndCopyright ) 19 20from docutils.core import publish_cmdline, default_description 21 22description = ('Generates "framed" (X)HTML documents from standalone reStructuredText ' 23 'sources. ' + default_description) 24 25publish_cmdline(writer_name='html4_refdoc', description=description) 26