コード例 #1
0
ファイル: autoindex.py プロジェクト: jpgimenez/markment
def generate_index(event, args, project, theme, generated):
    destination = Node(args.OUTPUT)
    index = project.meta['documentation']['index']
    if index.lower().strip() == 'index.md':
        return

    renamed = re.sub(r'[.](md|markdown)$', '.html', index, re.I)
    src = destination.join(renamed)
    dst = destination.join('index.html')
    copy2(src, dst)
コード例 #2
0
ファイル: doc.py プロジェクト: gabrielfalcao/markment
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import os
import sys
import time

import requests
from markment.fs import Node
from markment.ui import Theme
from markment.server import server


local_node = Node(__file__).dir

themes = [x.dir for x in reversed(local_node.parent.cd('markment/themes').grep('markment.yml'))]
output_path = local_node.join('_output')


for t in themes:
    print t.basename
コード例 #3
0
ファイル: doc.py プロジェクト: jpgimenez/markment
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import os
import sys
import time

import requests
from markment.fs import Node
from markment.ui import Theme
from markment.server import server

local_node = Node(__file__).dir

themes = [
    x.dir for x in reversed(
        local_node.parent.cd('markment/themes').grep('markment.yml'))
]
output_path = local_node.join('_output')

for t in themes:
    print t.basename