Skip to content

Commit 0b074e5

Browse files
Meging Docs branch (#70)
* Extending audiobook docs (#67) * audibook command line bug fixed * github action bug fixed * github action bug fixed * updating docs * intializing documentation * basic documentation updated * updating docs * Final Fix to sphinx documentation (#69) * changing directory * changing directory * toctree fixed Co-authored-by: Deepak Raj <[email protected]>
1 parent 3482a9d commit 0b074e5

19 files changed

+503
-167
lines changed

.readthedocs.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ build:
1111
tools:
1212
python: "3.9"
1313

14-
mkdocs:
15-
configuration: mkdocs.yml
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# If using Sphinx, optionally build your docs in additional formats such as PDF
19+
formats:
20+
- pdf
1621

1722
# Optionally declare the Python requirements required to build your docs
1823
python:

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file. The format
44

55
## [Unreleased]
66

7-
## [V2.0.4]
7+
## Proposed Changes/features
8+
9+
- [x] Search book in the library
10+
- [x] Delete book from the library
11+
12+
## [V2.0.4]
813

914
- [x] Extended pdf_parser to extract table of contents
1015
- [x] Command line Support added

README.md

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://py-contributors.github.io/audiobook/"><img src="https://capsule-render.vercel.app/api?type=rect&color=009ACD&height=100&section=header&text=audioBook&fontSize=80%&fontColor=ffffff" alt="website title image"></a>
3-
<h2 align="center">👉 Listen to any PDF book with a few lines of Python code👈</h2>
3+
<h2 align="center">👉 CLI tool to listen to your favourite book in Python 👈</h2>
44
</p>
55

66
<p align="center">
@@ -24,13 +24,7 @@
2424

2525
Install using [pypi](https://pypi.org/project/audiobook/)
2626

27-
### Linux(setup script)
28-
29-
```sh
30-
sh setup.sh
31-
```
32-
33-
### windows and linux
27+
### Using pip
3428

3529
```cmd
3630
pip install audiobook
@@ -44,6 +38,44 @@ Basic usage is exposed via CLI, type `python audiobook -h` for help.
4438

4539
More advanced features are exposed via the API:
4640

41+
```bash
42+
usage: audiobook [-h] [-p [PATH]] [-l | -c | -s | -r]
43+
44+
AudioBook - listen to any PDF book
45+
46+
optional arguments:
47+
-h, --help show this help message and exit
48+
-p [PATH], --path [PATH]
49+
book file path
50+
-l, --library get all books in library
51+
-c, --create-json create json file from input file
52+
-s, --save-audio save audio files from input file
53+
-r, --read-book read the book from input file
54+
```
55+
56+
#### Example
57+
58+
```bash
59+
# to read the book
60+
audiobook -p "C:\Users\user\Documents\book.pdf" -r
61+
```
62+
63+
```bash
64+
# to create json file
65+
audiobook -p "C:\Users\user\Documents\book.pdf" -c
66+
```
67+
68+
```bash
69+
# to save audio files
70+
audiobook -p "C:\Users\user\Documents\book.pdf" -s
71+
```
72+
73+
```bash
74+
# to get all books in library
75+
audiobook -l
76+
```
77+
78+
4779
```python
4880
from audiobook import AudioBook
4981
# argument: Speech-Speed="slow/normal/fast", volume = 0.0 to 1.0

audiobook/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33

44
from audiobook.main import AudioBook, BOOK_DIR
55

6+
__version__ = "2.0.2"
67

78
def main():
89
parser = argparse.ArgumentParser(description="AudioBook - listen to any PDF book")
910
parser.add_argument("-p", "--path", nargs="?", default=None, help="book file path")
11+
parser.add_argument('-v', '--version', action='version', version=__version__)
12+
parser.add_argument("-l", "--list", action="store_true", help="list all books")
1013

1114
group = parser.add_mutually_exclusive_group()
1215
group.add_argument(

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/README.md

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

docs/_static/logo.png

6.38 KB
Loading

docs/_static/logopyc.png

9.54 KB
Loading

docs/changelog.rst

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
Changelog
2+
=========
3+
4+
All notable changes to this project will be documented in this file. The
5+
format is based on `Keep a
6+
Changelog <https://keepachangelog.com/en/1.0.0/>`__, and this project
7+
adheres to `Semantic
8+
Versioning <https://semver.org/spec/v2.0.0.html>`__.
9+
10+
Unreleased
11+
------------
12+
13+
Proposed Changes/features
14+
-------------------------
15+
16+
- ☒ Search book in the library
17+
- ☒ Delete book from the library
18+
19+
.. _v204:
20+
21+
V2.0.4
22+
--------
23+
24+
- ☒ Extended pdf_parser to extract table of contents
25+
- ☒ Command line Support added
26+
- ☒ Updated test cases
27+
- ☒ Added support for CircleCi CI/CD
28+
29+
.. _v203:
30+
31+
V2.0.3
32+
--------
33+
34+
- ☒ Removed from PyPi
35+
36+
.. _v202---22-10-2022:
37+
38+
V2.0.2 - 22-10-2022
39+
---------------------
40+
41+
- ☒ Docs files support added
42+
- ☒ Pdfminer as engine added
43+
- ☒ ODT file support added
44+
45+
.. _v201---17-10-2022:
46+
47+
V2.0.1 - 17-10-2022
48+
---------------------
49+
50+
- ☒ Mobi file support
51+
- ☒ Epub file support
52+
- ☒ User can now save the audiobook for future
53+
- ☒ User can now listen to the book from the library
54+
55+
.. _v200---14-10-2022:
56+
57+
V2.0.0 - 14-10-2022
58+
---------------------
59+
60+
- ☒ Save Audio Book locally
61+
- ☒ Listen to the book
62+
- ☒ Speech-speed control
63+
- ☒ Read password-protected PDF
64+
- ☒ Create JSON file for the book
65+
66+
.. _v105---24-10-2022:
67+
68+
V1.0.5 - 24-10-2020
69+
---------------------
70+
71+
- ☒ Deprecated version
72+
- ☒ Only can read PDF files
73+
74+
First Release - 22-10-2020
75+
--------------------------

0 commit comments

Comments
 (0)