Skip to content

Commit

Permalink
Feat/readthedocs (#200)
Browse files Browse the repository at this point in the history
fix documentation deploy
  • Loading branch information
kalombos authored Jan 11, 2024
1 parent d14e602 commit 15d202c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "2"

build:
os: "ubuntu-22.04"
tools:
python: "3.10"

python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs

sphinx:
configuration: docs/conf.py
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
4 changes: 0 additions & 4 deletions docs/peewee_async/api_older.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ Select, update, delete
----------------------

.. autofunction:: peewee_async.execute
.. autofunction:: peewee_async.get_object
.. autofunction:: peewee_async.create_object
.. autofunction:: peewee_async.delete_object
.. autofunction:: peewee_async.update_object
.. autofunction:: peewee_async.prefetch

Transactions
Expand Down
4 changes: 0 additions & 4 deletions docs/requirements.txt

This file was deleted.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ aiomysql = { version = "^0.2.0", optional = true }
cryptography = { version = "^41.0.3", optional = true }
pytest = { version = "^7.4.1", optional = true }
pytest-asyncio = { version = "^0.21.1", optional = true }
sphinx = { version = "^7.1.2", optional = true }
sphinx-rtd-theme = { version = "^1.3.0rc1", optional = true }



[tool.poetry.extras]
postgresql = ["aiopg"]
mysql = ["aiomysql", "cryptography"]
develop = ["aiopg", "aiomysql", "cryptography", "pytest", "pytest-asyncio"]
docs = ["aiopg", "aiomysql", "cryptography", "sphinx", "sphinx-rtd-theme"]

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 15d202c

Please sign in to comment.