Skip to content

Commit aabba6c

Browse files
committed
add logo and make consts.py private
1 parent 065b935 commit aabba6c

10 files changed

Lines changed: 20 additions & 18 deletions

File tree

docs/_static/favicon.ico

165 KB
Binary file not shown.

docs/_static/logo.png

7.02 KB
Loading

docs/api/qbreader.consts.rst

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

docs/api/qbreader.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Submodules
99

1010
qbreader.api_utils
1111
qbreader.asynchronous
12-
qbreader.consts
1312
qbreader.synchronous
1413
qbreader.types
1514

docs/conf.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
sys.path.insert(0, path.abspath(".."))
1515

16-
project = 'python-qbreader'
17-
copyright = '2023, Sky Hong, Rohan Arni, Geoffrey Wu'
18-
author = 'Sky Hong, Rohan Arni, Geoffrey Wu'
16+
project = "python-qbreader"
17+
copyright = "2023, Sky Hong, Rohan Arni, Geoffrey Wu"
18+
author = "Sky Hong, Rohan Arni, Geoffrey Wu"
1919
release = qbreader.__version__
2020

2121
# -- General configuration ---------------------------------------------------
@@ -28,16 +28,18 @@
2828
"sphinx.ext.napoleon",
2929
]
3030

31-
templates_path = ['_templates']
32-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
31+
templates_path = ["_templates"]
32+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
3333
default_role = "py:obj"
3434

3535

3636
# -- Options for HTML output -------------------------------------------------
3737
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3838

39-
html_theme = 'furo'
40-
html_static_path = ['_static']
39+
html_theme = "furo"
40+
html_favicon = "_static/favicon.ico"
41+
html_logo = "_static/logo.png"
42+
html_static_path = ["_static"]
4143

4244
intersphinx_mapping = {
4345
"py": ("https://docs.python.org/3", None),
File renamed without changes.

qbreader/asynchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import aiohttp
66

77
import qbreader.api_utils as api_utils
8-
from qbreader.consts import BASE_URL
8+
from qbreader._consts import BASE_URL
99
from qbreader.types import (
1010
AnswerJudgement,
1111
Bonus,

qbreader/synchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import requests
66

77
import qbreader.api_utils as api_utils
8-
from qbreader.consts import BASE_URL
8+
from qbreader._consts import BASE_URL
99
from qbreader.types import (
1010
AnswerJudgement,
1111
Bonus,

qbreader/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import aiohttp
1010
import requests
1111

12-
from qbreader.consts import BASE_URL
12+
from qbreader._consts import BASE_URL
1313

1414

1515
class Category(enum.StrEnum):

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ allowlist_externals = poetry
3232
commands =
3333
poetry run mypy --no-incremental .
3434

35+
[testenv:docs]
36+
description = build docs
37+
allowlist_externals = poetry, rm
38+
commands =
39+
rm -rf docs/api
40+
sphinx-apidoc -Tefo docs/api qbreader
41+
poetry run sphinx-build -TE -b html -d docs/_build/doctrees docs docs/_build
42+
3543
[flake8]
3644
max_line_length = 88
3745
exclude =

0 commit comments

Comments
 (0)