2016-02-11 03:22:23 +00:00
|
|
|
#! /usr/bin/python
|
2016-02-18 21:25:02 +00:00
|
|
|
# -*- coding: utf8 -*-
|
2016-02-11 03:22:23 +00:00
|
|
|
|
2016-02-25 19:37:14 +00:00
|
|
|
from __future__ import absolute_import, division, print_function
|
2016-02-11 03:22:23 +00:00
|
|
|
|
2016-02-25 19:37:14 +00:00
|
|
|
import logging
|
2016-02-11 03:22:23 +00:00
|
|
|
|
2016-02-26 20:06:27 +00:00
|
|
|
from tldp.doctypes.common import BaseDoctype
|
2016-02-25 19:37:14 +00:00
|
|
|
|
2016-02-26 19:56:28 +00:00
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
2016-02-25 19:37:14 +00:00
|
|
|
|
|
|
|
class RestructuredText(BaseDoctype):
|
2016-02-12 20:43:45 +00:00
|
|
|
formatname = 'reStructuredText'
|
2016-02-11 03:22:23 +00:00
|
|
|
extensions = ['.rst']
|
|
|
|
signatures = []
|
2016-02-12 20:43:45 +00:00
|
|
|
tools = ['rst2html']
|
|
|
|
|
|
|
|
def create_txt(self):
|
|
|
|
logger.info("Creating txt for %s", self.source.stem)
|
|
|
|
|
|
|
|
def create_pdf(self):
|
|
|
|
logger.info("Creating PDF for %s", self.source.stem)
|
|
|
|
|
|
|
|
def create_html(self):
|
|
|
|
logger.info("Creating chunked HTML for %s", self.source.stem)
|
|
|
|
|
|
|
|
def create_htmls(self):
|
|
|
|
logger.info("Creating single page HTML for %s", self.source.stem)
|
2016-02-11 03:22:23 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# -- end of file
|