mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
removed document.py
This commit is contained in:
parent
8e8fd9ca98
commit
51ea0cb2fe
@ -1,31 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
sphinx.websupport.document
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Contains a Document class for working with Sphinx documents.
|
||||
|
||||
:copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
|
||||
from os import path
|
||||
|
||||
from jinja2 import Template
|
||||
from docutils import nodes
|
||||
from sphinx import addnodes
|
||||
|
||||
class Document(object):
|
||||
"""A single Document such as 'index'."""
|
||||
def __init__(self):
|
||||
self.slices = []
|
||||
|
||||
def add_slice(self, html, id=None, commentable=False):
|
||||
slice = HTMLSlice(html, id, commentable)
|
||||
self.slices.append(slice)
|
||||
|
||||
class HTMLSlice(object):
|
||||
def __init__(self, html, id, commentable):
|
||||
self.html = html
|
||||
self.id = id
|
||||
self.commentable = commentable
|
Loading…
Reference in New Issue
Block a user