Provide a way to quickly test the website

This commit is contained in:
Alexey Milovidov 2020-09-03 23:37:45 +03:00
parent 311e789ad2
commit 10798e1780
2 changed files with 18 additions and 5 deletions

View File

@ -180,12 +180,13 @@ def build(args):
if not args.skip_website:
website.build_website(args)
test.test_templates(args.website_dir)
if not args.skip_test_templates:
test.test_templates(args.website_dir)
build_docs(args)
from github import build_releases
build_releases(args, build_docs)
if not args.skip_docs:
build_docs(args)
from github import build_releases
build_releases(args, build_docs)
if not args.skip_blog:
blog.build_blog(args)
@ -220,6 +221,8 @@ if __name__ == '__main__':
arg_parser.add_argument('--skip-website', action='store_true')
arg_parser.add_argument('--skip-blog', action='store_true')
arg_parser.add_argument('--skip-git-log', action='store_true')
arg_parser.add_argument('--skip-docs', action='store_true')
arg_parser.add_argument('--skip-test-templates', action='store_true')
arg_parser.add_argument('--test-only', action='store_true')
arg_parser.add_argument('--minify', action='store_true')
arg_parser.add_argument('--htmlproofer', action='store_true')

View File

@ -1,2 +1,12 @@
ClickHouse website is built alongside it's documentation via [docs/tools](https://github.com/ClickHouse/ClickHouse/tree/master/docs/tools), see [README.md there](https://github.com/ClickHouse/ClickHouse/tree/master/docs/tools/README.md).
# How to quickly test the main page of the website
```
cd ../docs/tools
sudo apt install python-3 pip
pip3 install -r requirements.txt
./build.py --skip-multi-page --skip-single-page --skip-amp --skip-pdf --skip-blog --skip-git-log --skip-docs --skip-test-templates --livereload 8080
# Open the web browser and go to http://localhost:8080/
```