Exemple #1
0
def setup(app):
    github_code_repo = 'https://github.com/SymbiFlow/prjtrellis/'
    github_code_branch = 'blob/master/'

    docs_root_dir = os.path.realpath(os.path.dirname(__file__))
    code_root_dir = os.path.realpath(os.path.join(docs_root_dir, ".."))

    MarkdownSymlinksDomain.init_domain(github_code_repo, github_code_branch,
                                       docs_root_dir, code_root_dir)
    MarkdownSymlinksDomain.find_links()
    app.add_domain(MarkdownSymlinksDomain)
    app.add_config_value('recommonmark_config', {
        'github_code_repo': github_code_repo,
    }, True)
Exemple #2
0
def setup(app):
    # Generate links for markdown-code-symlinks
    subprocess.check_call("make links", shell=True)

    github_code_repo = 'https://github.com/SymbiFlow/prjxray/'
    github_code_branch = 'blob/master/'

    docs_root_dir = os.path.realpath(os.path.dirname(__file__))
    code_root_dir = os.path.realpath(os.path.join(docs_root_dir, ".."))

    MarkdownSymlinksDomain.init_domain(github_code_repo, github_code_branch,
                                       docs_root_dir, code_root_dir)
    MarkdownSymlinksDomain.find_links()
    app.add_domain(MarkdownSymlinksDomain)
    app.add_config_value('recommonmark_config', {
        'github_code_repo': github_code_repo,
    }, True)
Exemple #3
0
def setup(app):
    # Collect tests to form examples
    collect_examples()

    github_code_repo = 'https://github.com/chipsalliance/f4pga-v2x/'
    github_code_branch = 'blob/master/'

    docs_root_dir = os_path.realpath(os_path.dirname(__file__))
    code_root_dir = os_path.realpath(os_path.join(docs_root_dir, ".."))

    MarkdownSymlinksDomain.init_domain(github_code_repo, github_code_branch,
                                       docs_root_dir, code_root_dir)
    MarkdownSymlinksDomain.find_links()
    app.add_domain(MarkdownSymlinksDomain)
    app.add_config_value('recommonmark_config', {
        'github_code_repo': github_code_repo,
    }, True)
Exemple #4
0
def setup(app):
    github_code_repo = 'https://github.com/verilog-to-routing/vtr-verilog-to-routing/'
    github_code_branch = 'blob/master/'

    docs_root_dir = os.path.realpath(os.path.dirname(__file__))
    code_root_dir = os.path.realpath(os.path.join(docs_root_dir, "..", ".."))

    MarkdownSymlinksDomain.init_domain(github_code_repo, github_code_branch,
                                       docs_root_dir, code_root_dir)
    MarkdownSymlinksDomain.find_links()
    app.add_domain(MarkdownSymlinksDomain)
    app.add_config_value(
        'recommonmark_config', {
            'github_code_repo': github_code_repo,
            'enable_math': True,
            'enable_inline_math': True,
        }, True)
    app.add_stylesheet('css/vtr.css')
Exemple #5
0
def setup(app):
    github_code_repo = "https://github.com/verilog-to-routing/vtr-verilog-to-routing/"
    github_code_branch = "blob/master/"

    docs_root_dir = os.path.realpath(os.path.dirname(__file__))
    code_root_dir = os.path.realpath(os.path.join(docs_root_dir, "..", ".."))

    MarkdownSymlinksDomain.init_domain(github_code_repo, github_code_branch,
                                       docs_root_dir, code_root_dir)
    MarkdownSymlinksDomain.find_links()
    app.add_domain(MarkdownSymlinksDomain)
    app.add_config_value(
        "recommonmark_config",
        {
            "github_code_repo": github_code_repo,
            "enable_math": True,
            "enable_inline_math": True,
        },
        True,
    )
    app.add_stylesheet("css/vtr.css")