コード例 #1
0
ファイル: smartLegend.py プロジェクト: pierreet/zds-site
    def __init__(self, parser, configs, md):
        Treeprocessor.__init__(self, parser)

        self.configs = configs

        self.processors = (FigureParser(configs["IGNORING_IMG"]),
                           EquationParser(), CodeParser(md), TableParser(),
                           VideoParser(), QuoteParser())
コード例 #2
0
ファイル: smartLegend.py プロジェクト: ChantyTaguan/zds-site
    def __init__(self, parser, configs, md):
        Treeprocessor.__init__(self, parser)

        self.configs = configs

        self.processors = ( FigureParser(configs["IGNORING_IMG"]),
                            EquationParser(),
                            CodeParser(md),
                            TableParser(),
                            VideoParser(),
                            QuoteParser())
コード例 #3
0
ファイル: magiclink.py プロジェクト: PwnArt1st/dotfiles
    def __init__(self, md, base_url, base_user_url, labels):
        """Initialize."""

        self.base = base_url
        self.base_user = base_user_url
        self.repo_labels = labels
        self.labels = {
            "github": "GitHub",
            "bitbucket": "Bitbucket",
            "gitlab": "GitLab"
        }
        Treeprocessor.__init__(self, md)
コード例 #4
0
    def __init__(self, md, base_url, base_user_url, labels):
        """Initialize."""

        self.base = base_url
        self.base_user = base_user_url
        self.repo_labels = labels
        self.labels = {
            "github": "GitHub",
            "bitbucket": "Bitbucket",
            "gitlab": "GitLab"
        }
        Treeprocessor.__init__(self, md)
コード例 #5
0
ファイル: magiclink.py プロジェクト: poojakancherla/Stray-Aid
    def __init__(self, md, base_url, base_user_url, labels, repo_shortner,
                 social_shortener, excludes):
        """Initialize."""

        self.base = base_url
        self.repo_shortner = repo_shortner
        self.social_shortener = social_shortener
        self.base_user = base_user_url
        self.repo_labels = labels
        self.labels = {
            "github": "GitHub",
            "bitbucket": "Bitbucket",
            "gitlab": "GitLab"
        }
        self.excludes = excludes
        Treeprocessor.__init__(self, md)
コード例 #6
0
 def __init__(self, md):
     Treeprocessor.__init__(self, md)
     self.re = re.compile(r'^!.*')
コード例 #7
0
 def __init__(self, md):
     Treeprocessor.__init__(self, md)
     self.rx = re.compile(r"([/\w]+)(\%s)((?:\#[\w-]*)?)$" % config.PAGES_FILE_EXT)
コード例 #8
0
ファイル: content.py プロジェクト: hsingh23/courseflow
 def __init__(self, md, course, commit_sha):
     Treeprocessor.__init__(self)
     self.md = md
     self.course = course
     self.commit_sha = commit_sha
コード例 #9
0
 def __init__(self, section_cls='section', heading_cls='title'):
     self.section_cls = section_cls
     self.heading_cls = heading_cls
     Treeprocessor.__init__(self)
コード例 #10
0
 def __init__(self, md, item_sourcedir, item_outdir, course_structure):
     Treeprocessor.__init__(self, md)
     self._item_sourcedir = Path(item_sourcedir)
     self._item_outdir = Path(item_outdir)
     self._structure = course_structure
     self.file_id = 0
コード例 #11
0
ファイル: mdfigure.py プロジェクト: christianp/makecourse
 def __init__(self, md, figure_classes=None, img_classes=None):
     Treeprocessor.__init__(self, md)
     self._figure_classes = figure_classes
     self._img_classes = img_classes
コード例 #12
0
 def __init__(self, md, group=True):
     Treeprocessor.__init__(self, md)
     self.group_re = re.compile(GROUP_RE)
     self.hidden_re = re.compile(HIDDEN_RE)
     self.group = group
コード例 #13
0
 def __init__(self, md):
     Treeprocessor.__init__(self, md)
     self.re = re.compile(r'^!.*')
コード例 #14
0
 def __init__(self, markdown_instance=None):
     Treeprocessor.__init__(self, markdown_instance=markdown_instance)
     self.tree = None
コード例 #15
0
ファイル: pelicanconf.py プロジェクト: jrosco/nuvolaplayer
 def __init__(self, step):
     Treeprocessor.__init__(self)
     self.step = step
     self.expr = re.compile("h(\d)")
コード例 #16
0
ファイル: pelicanconf.py プロジェクト: dukex/nuvolaplayer
 def __init__(self, step):
     Treeprocessor.__init__(self)
     self.step = step
     self.expr = re.compile('h(\d)')
コード例 #17
0
 def __init__(self, blog_url, image_url, *args, **kwargs):
     Treeprocessor.__init__(self, *args, **kwargs)
     self.blog_url = blog_url
     self.image_url = image_url
コード例 #18
0
 def __init__(self, md, group = True):
     Treeprocessor.__init__(self, md)
     self.group_re = re.compile(GROUP_RE)
     self.hidden_re = re.compile(HIDDEN_RE)
     self.group = group
コード例 #19
0
 def __init__(self, md, item_sourcedir, item_outdir):
     Treeprocessor.__init__(self, md)
     self._item_sourcedir = Path(item_sourcedir)
     self._item_outdir = Path(item_outdir)
     self.image_id = 0
コード例 #20
0
ファイル: images.py プロジェクト: kepler/sphinx-markdown
 def __init__(self, markdown_instance, static_dir):
     self.static_dir = static_dir
     Treeprocessor.__init__(self, markdown_instance)
コード例 #21
0
ファイル: __init__.py プロジェクト: aleray/mdx_sections
 def __init__(self, section_cls='section', heading_cls='title'):
     self.section_cls = section_cls
     self.heading_cls = heading_cls
     Treeprocessor.__init__(self)
コード例 #22
0
 def __init__(self, md, course, commit_sha, reverse_func):
     Treeprocessor.__init__(self)
     self.md = md
     self.course = course
     self.commit_sha = commit_sha
     self.reverse_func = reverse_func
コード例 #23
0
ファイル: maintemail.py プロジェクト: brimstone/maintemail
 def __init__(self, md):
     self.headings = []
     Treeprocessor.__init__(self, md)
コード例 #24
0
ファイル: index.py プロジェクト: elishacook/wikid
 def __init__(self, *args, **kwargs):
     Treeprocessor.__init__(self, *args, **kwargs)
     self.last_item = None
     self.items = []
コード例 #25
0
 def __init__(self, metadataextension, *args, **kwargs):
     Treeprocessor.__init__(self, *args, **kwargs)
     self.metadataextension = metadataextension
コード例 #26
0
ファイル: content.py プロジェクト: akiyoko/relate
 def __init__(self, md, course, commit_sha, reverse_func):
     Treeprocessor.__init__(self)
     self.md = md
     self.course = course
     self.commit_sha = commit_sha
     self.reverse_func = reverse_func
コード例 #27
0
 def __init__(self, markdown_instance, static_dir):
     self.static_dir = static_dir
     Treeprocessor.__init__(self, markdown_instance)