Skip to content

Commit

Permalink
netlify.toml: Add netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitxjoshi committed Jun 24, 2018
1 parent fc26c13 commit 559c953
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .moban.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,6 +20,7 @@ configuration:
- .moban.dt/
- .ci/
- ../coala-mobans/templates/
- ../coala-mobans/assets/
configuration: .moban.yaml
configuration_dir: ../coala-mobans/
targets:
Expand All @@ -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
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
publish = "docs/_build/html"
command = "pip install -r docs-requirements.txt && export PYTHONPATH=$(pwd) && python setup.py docs"
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.6
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -129,6 +129,8 @@ def read_requirements(filename):

data.append(line)

return data


required = read_requirements('requirements.txt')
required.remove('-r bear-requirements.txt')
Expand Down

0 comments on commit 559c953

Please sign in to comment.