Skip to content

Commit c373c90

Browse files
authored
Merge pull request #18 from DenverCoder1/docs
2 parents 635d31c + 00ec5db commit c373c90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4477
-609
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ instance/
7070

7171
# Sphinx documentation
7272
docs/_build/
73+
generated
74+
docs/source/_build/
7375

7476
# PyBuilder
7577
target/

.readthedocs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
formats: []
3+
4+
build:
5+
image: latest
6+
7+
sphinx:
8+
configuration: docs/source/conf.py
9+
fail_on_warning: false
10+
builder: html
11+
12+
python:
13+
version: "3.8"
14+
install:
15+
- method: pip
16+
path: .
17+
extra_requirements:
18+
- docs

README.md

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,18 @@
44
[![version](https://img.shields.io/pypi/v/table2ascii)](https://pypi.org/project/table2ascii/)
55
[![downloads](https://static.pepy.tech/personalized-badge/table2ascii?period=total&units=none&left_color=grey&right_color=orange&left_text=downloads)](https://pepy.tech/project/table2ascii)
66
[![license](https://img.shields.io/pypi/l/table2ascii)](https://github.com/DenverCoder1/table2ascii/blob/main/LICENSE)
7-
[![Discord](https://img.shields.io/discord/819650821314052106?color=5865F2&logo=discord&logoColor=white "Dev Pro Tips Discussion & Support Server")](https://discord.gg/fPrdqh3Zfu)
8-
9-
Module for converting 2D Python lists to fancy ASCII/Unicode tables
10-
11-
- [table2ascii](#table2ascii)
12-
- [📥 Installation](#-installation)
13-
- [🧑‍💻 Usage](#-usage)
14-
- [Convert lists to ASCII tables](#convert-lists-to-ascii-tables)
15-
- [Set first or last column headings](#set-first-or-last-column-headings)
16-
- [Set column widths and alignments](#set-column-widths-and-alignments)
17-
- [Use a preset style](#use-a-preset-style)
18-
- [Define a custom style](#define-a-custom-style)
19-
- [🎨 Preset styles](#-preset-styles)
20-
- [⚙️ Options](#️-options)
21-
- [👨‍🎨 Use cases](#-use-cases)
22-
- [Discord messages and embeds](#discord-messages-and-embeds)
23-
- [Terminal outputs](#terminal-outputs)
24-
- [🧰 Development](#-development)
7+
[![discord](https://img.shields.io/discord/819650821314052106?color=5865F2&logo=discord&logoColor=white "Dev Pro Tips Discussion & Support Server")](https://discord.gg/fPrdqh3Zfu)
8+
9+
Library for converting 2D Python lists to fancy ASCII/Unicode tables
10+
11+
Documentation and examples are available at [table2ascii.rtfd.io](https://table2ascii.readthedocs.io/)
2512

2613
## 📥 Installation
2714

28-
``pip install table2ascii``
15+
``pip install -U table2ascii``
2916

3017
**Requirements:** `Python 3.7+`
3118

32-
(For Python 3.6, installing `dataclasses` is required)
33-
3419
## 🧑‍💻 Usage
3520

3621
### Convert lists to ASCII tables
@@ -158,7 +143,7 @@ print(output)
158143

159144
## 🎨 Preset styles
160145

161-
See a list of all preset styles [here](https://github.com/DenverCoder1/table2ascii/tree/main/style_list).
146+
See a list of all preset styles [here](https://table2ascii.readthedocs.io/en/latest/styles.html).
162147

163148
## ⚙️ Options
164149

@@ -193,10 +178,16 @@ All parameters are optional.
193178

194179
## 🧰 Development
195180

196-
To run tests (pytest)
181+
### Running tests
197182

198-
``tox``
183+
1. Install `tox` with the command ``pip install -U tox``
199184

200-
To lint (flake8):
185+
2. Run tests with the command ``tox``
186+
187+
### Linting
188+
189+
Run the following command to lint with flake8
201190

202191
``python setup.py lint``
192+
193+
(Note: The exact command may vary depending on your Python version and environment)

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/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.http://sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

docs/source/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 = .
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/source/_static/css/badge_only.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/source/_static/css/custom.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.wy-side-nav-search > a {
2+
font-size: 160%;
3+
}
4+
5+
.wy-side-nav-search input[type="text"] {
6+
padding: 10px 15px;
7+
font-size: 100%;
8+
border-radius: 10px;
9+
}
10+
11+
.section a:visited,
12+
footer a:visited {
13+
color: #2980b9;
14+
}
15+
16+
a.icon.icon-home:visited {
17+
color: unset;
18+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)