Skip to content

Commit

Permalink
Created readthedocs configuration (#151)
Browse files Browse the repository at this point in the history
* renamed doc folder and created rtd config

* removed requirements.txt file

* Updated rtd config

* Added include option in pyproject
  • Loading branch information
ilcardella committed Jun 27, 2020
1 parent 294d37d commit 18b69ba
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 172 deletions.
25 changes: 25 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF
formats:
- pdf

build:
image: latest
# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
install:
- method: pip
path: .
extra_requirements:
- docs
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ install:

script:
- poetry run pytest
- poetry run sphinx-build -b html doc doc/_build/html
- poetry run sphinx-build -b html docs docs/_build/html
- python setup.py install # Ideally replace with poetry install
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ https://tradingmate.readthedocs.io

You can build it locally from the repo root folder:
```
poetry run sphinx-build -b html doc doc/_build/html
poetry run sphinx-build -b html docs docs/_build/html
```

The generated html files will be under `doc/_build/html`.
The generated html files will be under `docs/_build/html`.

## Contributing

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ version = "2.2.0"
description = "Trading portfolio and real time stock price monitor"
authors = ["Alberto Cardellini"]
license = "MIT"
packages = [
{ include = "src" }
]
include = ["config/config.json", "data/trading_log.json"]

[tool.poetry.dependencies]
python = ">=3.6"
Expand Down
169 changes: 0 additions & 169 deletions requirements.txt

This file was deleted.

0 comments on commit 18b69ba

Please sign in to comment.