Skip to content

Commit 65b3d00

Browse files
committed
docs
1 parent 3e84512 commit 65b3d00

8 files changed

Lines changed: 36 additions & 127 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Generate and deploy documentation
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: ["main", "master", "add-automated-documentation"]
7+
branches: ["master"]
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -29,11 +29,15 @@ jobs:
2929
url: ${{ steps.deployment.outputs.page_url }}
3030
runs-on: ubuntu-latest
3131
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
33+
- uses: actions/setup-python@v6
34+
with:
35+
python-version: "3.14"
36+
- run: python -m pip install --upgrade pip
37+
- run: pip --version
3438
- name: Install dependencies
3539
run: |
36-
pip install sphinx furo myst-parser
40+
pip install . --group=docs
3741
- name: Sphinx APIDoc
3842
run: |
3943
sphinx-apidoc -f -o docs/source/ .
@@ -43,7 +47,7 @@ jobs:
4347
- name: Setup Pages
4448
uses: actions/configure-pages@v5
4549
- name: Upload artifact
46-
uses: actions/upload-pages-artifact@v3
50+
uses: actions/upload-pages-artifact@v4
4751
with:
4852
# Upload entire repository
4953
path: './docs/build/html'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
.idea
1313
__pycache__/
1414
.coverage
15+
docs/build

docs/source/conf.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55

66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8-
import os
9-
import sys
10-
11-
# Add the parent directory of the documentation root to sys.path
12-
sys.path.insert(0, os.path.abspath("../.."))
138

149
project = 'tika-python'
15-
copyright = '2024, Chris A. Mattmann'
10+
copyright = '2026, Chris A. Mattmann'
1611
author = 'Chris A. Mattmann'
1712

1813
# -- General configuration ---------------------------------------------------
@@ -26,16 +21,13 @@
2621
"sphinx.ext.autosectionlabel",
2722
"sphinx.ext.todo",
2823
"sphinx.ext.duration",
29-
"myst_parser"
24+
"myst_parser",
3025
]
3126

32-
templates_path = ['_templates']
33-
exclude_patterns = ['tika.tests*']
34-
35-
27+
exclude_patterns = ['_build']
3628

3729
# -- Options for HTML output -------------------------------------------------
3830
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3931

4032
html_theme = 'furo'
41-
html_static_path = ['_static']
33+

docs/source/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Welcome to tika-python's documentation!
2+
3+
```{toctree}
4+
:maxdepth: 7
5+
:caption: Contents
6+
readme.md
7+
tika.md
8+
```
9+
10+
## Indices and tables
11+
12+
- {ref}`genindex`
13+
- {ref}`modindex`
14+
- {ref}`search`
15+

docs/source/index.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/source/setup.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/tika.tests.rst

Lines changed: 0 additions & 77 deletions
This file was deleted.

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,17 @@ dependencies = [
3434
"requests",
3535
]
3636

37-
[project.optional-dependencies]
38-
all = [
39-
"tika[tests]",
40-
]
41-
tests = [
37+
[dependency-groups]
38+
test = [
4239
"memory-profiler",
4340
"pytest-benchmark",
4441
"pytest-cov",
4542
]
43+
docs = [
44+
"furo",
45+
"myst-parser",
46+
"sphinx",
47+
]
4648

4749
[project.urls]
4850
homepage = "http://github.com/chrismattmann/tika-python"

0 commit comments

Comments
 (0)