Skip to content

Commit c885018

Browse files
committed
fix(docs): include readme in docs
1 parent 6682996 commit c885018

File tree

3 files changed

+4
-32
lines changed

3 files changed

+4
-32
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Add any Sphinx extension module names here, as strings. They can be extensions
2929
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
30-
extensions = ["sphinx.ext.autodoc", "sphinx.ext.coverage"]
30+
extensions = ["sphinx.ext.autodoc", "sphinx.ext.coverage", "myst_parser"]
3131

3232
# Add any paths that contain templates here, relative to this directory.
3333
templates_path = ["_templates"]

docs/index.rst

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
1-
.. enzyme documentation master file, created by
2-
sphinx-quickstart on Fri May 10 01:11:03 2013.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
6-
Enzyme
7-
======
8-
Release v\ |version|
9-
10-
Enzyme is a Python module to parse video metadata.
11-
12-
13-
Usage
14-
-----
15-
Parse a MKV file::
16-
17-
>>> with open('How.I.Met.Your.Mother.S08E21.720p.HDTV.X264-DIMENSION.mkv', 'rb') as f:
18-
... mkv = enzyme.MKV(f)
19-
...
20-
>>> mkv.info
21-
<Info [title=None, duration=0:20:56.005000, date=2013-04-15 14:06:50]>
22-
>>> mkv.video_tracks
23-
[<VideoTrack [1, 1280x720, V_MPEG4/ISO/AVC, name=None, language=eng]>]
24-
>>> mkv.audio_tracks
25-
[<AudioTrack [2, 6 channel(s), 48000Hz, A_AC3, name=None, language=und]>]
26-
27-
28-
License
29-
-------
30-
Apache2
1+
.. include:: ../README.md
2+
:parser: myst_parser.sphinx_
313

324

335
API Documentation

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies = ["importlib_resources>=4.6; python_version=='3.8'"]
3434
# extras
3535
# https://peps.python.org/pep-0621/#dependencies-optional-dependencies
3636
[project.optional-dependencies]
37-
docs = ["sphinx", "sphinx-rtd-theme"]
37+
docs = ["sphinx", "sphinx-rtd-theme", "myst-parser"]
3838
test = [
3939
"PyYAML",
4040
"requests",

0 commit comments

Comments
 (0)