Skip to content

Commit

Permalink
docs: remove from published packages (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar authored Nov 12, 2024
1 parent ec83ff7 commit 2274ceb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
4 changes: 0 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ graft tests/resources/
exclude tests/realworld_tests.py
recursive-exclude tests/cache/

recursive-include docs/ conf.py Makefile make.bat *.rst *.gif *.jpg *.png
include docs/requirements.txt
recursive-include docs/_build/ *.gif *.jpg *.png

recursive-exclude * __pycache__
recursive-exclude * *.py[co]
15 changes: 9 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ Jointly developed plugins and additional packages also contribute to the field o
Corresponding posts on `Bits of Language <https://adrien.barbaresi.eu/blog/tag/trafilatura.html>`_ (blog).


Building the docs
-----------------

Starting from the ``docs/`` folder of the repository:

1. ``pip install -r requirements.txt``
2. ``sphinx-build -b html . _build/`` (where ``_build`` is the target directory)



Further documentation
=====================
Expand All @@ -207,10 +216,4 @@ Further documentation
used-by
background


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ version = {attr = "trafilatura.__version__"}
# https://setuptools.pypa.io/en/stable/userguide/datafiles.html
[tool.setuptools.package-data]
trafilatura = [
"data/tei-schema-pickle.lzma",
"data/jt-stopwords-pickle.lzma",
"data/tei_corpus.dtd",
"settings.cfg",
]

Expand Down

0 comments on commit 2274ceb

Please sign in to comment.