コード例 #1
0
""" CSFG Guide Generator
AUTHORS: Jack Morgan, Jordan Griffiths
REQUIRES: Python >= 3.4.1
"""

import generator.systemfunctions as systemfunctions
from generator.systemconstants import *

LOG_FILE_PATH = 'output/log.txt'

cmd_args = systemfunctions.command_line_args()

import configparser
import logging.config
import os.path
import os
import re
from shutil import copy2
from distutils.dir_util import copy_tree
from generator.markdownsection import Section
from generator.websitegenerator import WebsiteGenerator
from generator.glossary import Glossary
from generator.files import setup_required_files
import generator.print_media as print_media
from scss.compiler import compile_string

class Guide:
    def __init__(self, generator_settings, language_code, version, html_generator, html_templates, regex_list, output_type=WEB,  teacher_version_present=False, pdf_version_present=False):

        # Alert user of creation process
        print('Creating CSFG - Language: {lang} - Version: {version} - Format: {output_type}'.format(lang=language_code, version=version, output_type=output_type))
コード例 #2
0
ファイル: generateguide.py プロジェクト: q45/cs-field-guide
""" CSFG Guide Generator
AUTHORS: Jack Morgan, Jordan Griffiths
REQUIRES: Python >= 3.4.1
"""

import generator.systemfunctions as systemfunctions
from generator.systemconstants import *

cmd_args = systemfunctions.command_line_args()
if cmd_args.install_dependencies:
    systemfunctions.install_dependencies()

import configparser
import logging
import os.path
import os
import re
import generator.languages
from shutil import copy2
from distutils.dir_util import copy_tree
from generator.markdownsection import Section
from generator.websitegenerator import WebsiteGenerator
from generator.glossary import Glossary
from generator.files import setup_required_files
from scss.compiler import compile_string


class Guide:
    def __init__(self,
                 generator_settings,
                 guide_settings,