コード例 #1
0
def build(args):
    if os.path.exists(args.output_dir):
        shutil.rmtree(args.output_dir)

    if not args.skip_website:
        website.build_website(args)

    if not args.skip_test_templates:
        test.test_templates(args.website_dir)

    if not args.skip_docs:
        generate_cmake_flags_files(
            os.path.join(os.path.dirname(__file__), '..', '..'))

        build_docs(args)
        from github import build_releases
        build_releases(args, build_docs)

    if not args.skip_blog:
        blog.build_blog(args)

    if not args.skip_website:
        website.process_benchmark_results(args)
        website.minify_website(args)
        redirects.build_static_redirects(args)
コード例 #2
0
ファイル: build.py プロジェクト: zhuxiong/ClickHouse
def build(args):
    if os.path.exists(args.output_dir):
        shutil.rmtree(args.output_dir)

    if not args.skip_website:
        website.build_website(args)

    test.test_templates(args.website_dir)

    build_docs(args)

    from github import build_releases
    build_releases(args, build_docs)

    if not args.skip_website:
        website.process_benchmark_results(args)
        website.minify_website(args)
        redirects.build_static_redirects(args)
コード例 #3
0
def build(args):
    if os.path.exists(args.output_dir):
        shutil.rmtree(args.output_dir)

    if not args.skip_website:
        website.build_website(args)

    test.test_templates(args.website_dir)

    build_docs(args)

    from github import build_releases
    build_releases(args, build_docs)

    if not args.skip_website:
        website.process_benchmark_results(args)
        website.minify_website(args)

    for static_redirect in [
        ('benchmark.html', '/benchmark/dbms/'),
        ('benchmark_hardware.html', '/benchmark/hardware/'),
        (
            'tutorial.html',
            '/docs/en/getting_started/tutorial/',
        ),
        (
            'reference_en.html',
            '/docs/en/single/',
        ),
        (
            'reference_ru.html',
            '/docs/ru/single/',
        ),
        (
            'docs/index.html',
            '/docs/en/',
        ),
    ]:
        write_redirect_html(os.path.join(args.output_dir, static_redirect[0]),
                            static_redirect[1])
コード例 #4
0
def build(args):
    if os.path.exists(args.output_dir):
        shutil.rmtree(args.output_dir)

    if not args.skip_website:
        website.build_website(args)

    if not args.skip_test_templates:
        test.test_templates(args.website_dir)

    if not args.skip_docs:
        generate_cmake_flags_files()

        build_docs(args)

    if not args.skip_blog:
        blog.build_blog(args)

    if not args.skip_website:
        website.process_benchmark_results(args)
        website.minify_website(args)
        redirects.build_static_redirects(args)