From 559c953e1b5787df9dddf96ece8449e50c945716 Mon Sep 17 00:00:00 2001 From: MacBox7 Date: Sat, 23 Jun 2018 16:13:33 +0530 Subject: [PATCH] netlify.toml: Add netlify --- .moban.yaml | 6 +++++- netlify.toml | 3 +++ runtime.txt | 1 + setup.py | 4 +++- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 netlify.toml create mode 100644 runtime.txt diff --git a/.moban.yaml b/.moban.yaml index e7cc8ea089..0edc788467 100644 --- a/.moban.yaml +++ b/.moban.yaml @@ -9,7 +9,8 @@ release: 0.12.0.dev test_pyversion: 3.4 branch: master package_module: bears -docs_output_dir: docs/API +docs_source_dir: API +docs_dir: docs entry_points: coalabears: - coala_official_bears = bears @@ -19,6 +20,7 @@ configuration: - .moban.dt/ - .ci/ - ../coala-mobans/templates/ + - ../coala-mobans/assets/ configuration: .moban.yaml configuration_dir: ../coala-mobans/ targets: @@ -31,3 +33,5 @@ targets: - bear-requirements.txt: bear-requirements.txt.jj2 - .ci/appveyor.yml: ci/appveyor.yml.jj2 - .ci/run_with_env.cmd: run_with_env.cmd + - runtime.txt: runtime.txt + - netlify.toml: docs/netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000..18be7de74b --- /dev/null +++ b/netlify.toml @@ -0,0 +1,3 @@ +[build] + publish = "docs/_build/html" + command = "pip install -r docs-requirements.txt && export PYTHONPATH=$(pwd) && python setup.py docs" diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000000..d70c8f8d89 --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +3.6 diff --git a/setup.py b/setup.py index ee626184a1..c51b37906f 100755 --- a/setup.py +++ b/setup.py @@ -64,7 +64,7 @@ def initialize_options(self): setup_dir = os.path.join(os.getcwd(), __dir__) docs_dir = os.path.join(setup_dir, 'docs') source_docs_dir = os.path.join(docs_dir, - 'source/') + 'API') set_python_path(setup_dir) @@ -129,6 +129,8 @@ def read_requirements(filename): data.append(line) + return data + required = read_requirements('requirements.txt') required.remove('-r bear-requirements.txt')