From 2ac0ac96947a2b647e6e543c6d3267f3473bb626 Mon Sep 17 00:00:00 2001 From: Alejandro Mendez Date: Wed, 15 May 2024 12:17:38 +0200 Subject: [PATCH] Fixes --- README.rst | 41 +++++++++++++++++++++++++++-------------- docs/source/conf.py | 4 ++-- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/README.rst b/README.rst index a148839..87774e7 100644 --- a/README.rst +++ b/README.rst @@ -1,19 +1,7 @@ webvtt-py ========= -.. image:: https://img.shields.io/pypi/v/webvtt-py.svg - :target: https://pypi.python.org/pypi/webvtt-py - -.. image:: https://img.shields.io/pypi/pyversions/webvtt-py.svg - :target: https://pypi.python.org/pypi/webvtt-py - -.. image:: https://img.shields.io/github/actions/workflow/status/glut23/webvtt-py/ci.yml - -.. image:: https://codecov.io/gh/glut23/webvtt-py/branch/master/graphs/badge.svg?branch=master - -.. image:: https://readthedocs.org/projects/webvtt-py/badge/?version=latest - :target: http://webvtt-py.readthedocs.io/en/latest/?badge=latest - :alt: Documentation Status +|pypi| |pyversions| |license| |coverage| |build-status| |docs-status| |downloads| ``webvtt-py`` is a Python module for reading/writing WebVTT_ caption files. It also features caption segmentation useful when captioning `HLS videos`_. @@ -79,4 +67,29 @@ Caption segmentation is also available from the command line: License ------- -Licensed under the MIT License. \ No newline at end of file +Licensed under the MIT License. + +.. |pypi| image:: https://img.shields.io/pypi/v/webvtt-py.svg + :target: https://pypi.python.org/pypi/webvtt-py + +.. |pyversions| image:: https://img.shields.io/pypi/pyversions/webvtt-py.svg + :alt: Supported Python versions + :target: https://pypi.python.org/pypi/webvtt-py + +.. |license| image:: https://img.shields.io/pypi/l/webvtt-py.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |coverage| image:: https://codecov.io/gh/glut23/webvtt-py/graph/badge.svg?branch=master + :target: https://codecov.io/gh/glut23/webvtt-py + +.. |build-status| image:: https://github.com/glut23/webvtt-py/actions/workflows/ci.yml/badge.svg?branch=master + :target: https://github.com/glut23/webvtt-py/actions/workflows/ci.yml + +.. |docs-status| image:: https://readthedocs.org/projects/webvtt-py/badge/?version=latest + :target: http://webvtt-py.readthedocs.io/en/latest/?badge=latest + :alt: Documentation Status + +.. |downloads| image:: https://static.pepy.tech/badge/webvtt-py + :target: https://pepy.tech/project/webvtt-py + :alt: Downloads \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 8bb54f5..2347dec 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -2,12 +2,12 @@ import sys from pathlib import Path +from datetime import date # Add parent dir to path -parent_directory = Path(__file__).resolve().parent +parent_directory = Path(__file__).parent.parent.parent.resolve() sys.path.append(str(parent_directory)) -from datetime import date import webvtt # noqa # -- Project information