feat(docs): preparing for RTD
This commit is contained in:
parent
00e2437d28
commit
14cea7171b
5 changed files with 89 additions and 0 deletions
15
.readthedocs.yml
Normal file
15
.readthedocs.yml
Normal 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
7
docs/api.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
API
|
||||
===
|
||||
|
||||
.. autosummary::
|
||||
:toctree: generated
|
||||
|
||||
pyzipline
|
35
docs/conf.py
Normal file
35
docs/conf.py
Normal 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
19
docs/index.rst
Normal 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
13
docs/usage.rst
Normal file
|
@ -0,0 +1,13 @@
|
|||
Usage
|
||||
=====
|
||||
|
||||
.. _installation:
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
To use PyZipline, first install it using pip:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
(.venv) $ pip install lumache
|
Loading…
Reference in a new issue