feat(docs): preparing for RTD

This commit is contained in:
Seaswimmer 2023-12-19 02:16:45 -05:00
parent 00e2437d28
commit 14cea7171b
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE
5 changed files with 89 additions and 0 deletions

15
.readthedocs.yml Normal file
View file

@ -0,0 +1,15 @@
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.12"
jobs:
post_create_environment:
- pip install poetry
- poetry config virtualenvs.create false
post_install:
- poetry install
sphinx:
configuration: docs/source/conf.py

7
docs/api.rst Normal file
View file

@ -0,0 +1,7 @@
API
===
.. autosummary::
:toctree: generated
pyzipline

35
docs/conf.py Normal file
View file

@ -0,0 +1,35 @@
# Configuration file for the Sphinx documentation builder.
# -- Project information
project = 'PyZipline'
copyright = '2023, SeaswimmerTheFsh'
author = 'SeaswimmerTheFsh'
release = '3.7.7'
version = '0.1.0'
# -- General configuration
extensions = [
'sphinx.ext.duration',
'sphinx.ext.doctest',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
]
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
}
intersphinx_disabled_domains = ['std']
templates_path = ['_templates']
# -- Options for HTML output
html_theme = 'sphinx_rtd_theme'
# -- Options for EPUB output
epub_show_urls = 'footnote'

19
docs/index.rst Normal file
View file

@ -0,0 +1,19 @@
Welcome to PyZipline's documentation!
===================================
**PyZipline** is a Python API Wrapper for the Zipline API.
Check out the :doc:`usage` section for further information, including
how to :ref:`installation` the project.
.. note::
This project is under active development.
Contents
--------
.. toctree::
usage
api

13
docs/usage.rst Normal file
View file

@ -0,0 +1,13 @@
Usage
=====
.. _installation:
Installation
------------
To use PyZipline, first install it using pip:
.. code-block:: console
(.venv) $ pip install lumache