Skip to content

Commit c153867

Browse files
authored
Adding requirements for docs (#4)
1 parent 0db348c commit c153867

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docs
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
docs:
9+
runs-on: ubuntu-latest
10+
name: Docs
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Fetch all tags and branches
17+
run: git fetch --prune --unshallow
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.12'
23+
24+
- name: Install dependencies
25+
run: pip install .[dev]
26+
27+
- name: Generate Sphinx HTML
28+
run: python -m sphinx -b html -W docs docs/_build

docs/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
project = "python-arango-async"
22
copyright_notice = "ArangoDB"
33
author = "Alexandru Petenchea, Anthony Mahanna"
4+
extensions = [
5+
"sphinx_rtd_theme",
6+
"sphinx.ext.autodoc",
7+
"sphinx.ext.doctest",
8+
"sphinx.ext.viewcode",
9+
]
410
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
11+
master_doc = "index"

docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
python-arango-async
2+
-------------------
3+
4+
Welcome to the documentation for **python-arango-async**, a Python driver for ArangoDB_.
5+
6+
**The driver is currently work in progress and not yet ready for use.**
7+
8+
.. _ArangoDB: https://www.arangodb.com

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx_rtd_theme

0 commit comments

Comments
 (0)