Skip to content

Commit

Permalink
feat(docs) Start Sphinx docs (#74)
Browse files Browse the repository at this point in the history
Adds the boilerplate for the Sphinx docs for this library and adds a basic intro.
  • Loading branch information
fpacifici committed Jun 1, 2022
1 parent 2dc0ecf commit b1242a6
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ lint:

tests:
pytest -vv

docs:
pip install -U -r ./docs-requirements.txt
sphinx-build -W -b html docs/source docs/build
1 change: 1 addition & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinx==5.0.0
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/*
Binary file added docs/source/_static/arroyo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Configuration file for the Sphinx documentation builder.
#

# -- Project information -----------------------------------------------------

project = "Arroyo"
copyright = "2022, Sentry Team and Contributors"
author = "Sentry Team and Contributors"

release = "0.0.20"


# -- General configuration ---------------------------------------------------

extensions = [
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
]

# This is relative to this directory.
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ["build"]

source_suffix = ".rst"

# -- Options for HTML output -------------------------------------------------

html_theme = "alabaster"

html_static_path = ["_static"]

html_logo = "_static/arroyo.png"
7 changes: 7 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. include:: intro.rst

Contents:
---------

.. toctree::
:maxdepth: 1
23 changes: 23 additions & 0 deletions docs/source/intro.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Arroyo is a library to build streaming applications that consume from
and produce to Kafka.

It relies on the `confluent_kafka` python library, which itself relies
on `librdkafka`.

Arroyo provides mainly three functionalities:

* A set of abstractions inspired to common messaging applications patterns.
* Some abstractions to simplify offset management and rebalancing.
* An in memory broker abstraction to simplify writing unit tests.


Getting Started
***************

Install it with pip.

.. code-block:: python
pip install sentry-arroyo
Find some `examples of usage <https://github.com/getsentry/arroyo/tree/main/examples>`_.

0 comments on commit b1242a6

Please sign in to comment.