Compare commits

..

2 commits

Author SHA1 Message Date
Elia el Lazkani
29b233ebfb fix(): Fixes the packaging, should work as expected when installed 2024-12-25 21:34:55 +01:00
Elia el Lazkani
188ac78b1f chore(): Cleans up the docs a bit 2024-12-25 21:27:55 +01:00
9 changed files with 7 additions and 32 deletions

10
TODO
View file

@ -1,10 +0,0 @@
This list is incomplete, these are a few of the things that need to be done.
TODO:
* Documentation/Code comments
* Proper type-setting across the board
* PEP8
* Refactor code
* Dockerize
* favicon.ico is being injected into the database (need fix)
* Fix YAML warning on startup.

View file

@ -5,7 +5,7 @@
# from the environment for the first two. # from the environment for the first two.
SPHINXOPTS ?= SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs SOURCEDIR =
BUILDDIR = build BUILDDIR = build
# Put it first so that "make" without argument is like "make help". # Put it first so that "make" without argument is like "make help".

View file

@ -1,5 +0,0 @@
Data
====
.. automodule:: shortenit.data
:members:

View file

@ -1,5 +0,0 @@
DB
===
.. automodule:: shortenit.db
:members:

View file

@ -1,5 +0,0 @@
Exceptions
==========
.. automodule:: shortenit.exceptions
:members:

View file

@ -12,14 +12,11 @@ Shortenit Documentation
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: Contents: :caption: Contents:
common common
config config
data
db
exceptions
logger logger
main main
pointer pointer

View file

@ -1,5 +1,5 @@
Shortener Shortener
========= =========
.. automodule:: shortenit.shortener .. automodule:: shortenit.models.shortener
:members: :members:

View file

@ -31,7 +31,10 @@ def main() -> typing.NoReturn:
debug = True if args.verbose > 0 else False debug = True if args.verbose > 0 else False
verbosity_level = verbosity(args.verbose) verbosity_level = verbosity(args.verbose)
setup_logging(args.logger, verbosity_level) setup_logging(args.logger, verbosity_level)
config = Config(CONFIGURATION).get_config() if args.config:
config = Config(args.config).get_config()
else:
config = Config(CONFIGURATION).get_config()
db_config = config.get("Database", None) db_config = config.get("Database", None)
server_config = config.get("Server", None) server_config = config.get("Server", None)
if db_config: if db_config: