Compare commits

..

1 commit

Author SHA1 Message Date
Elia el Lazkani
7b4065809e fix(): Fixes the packaging, should work as expected when installed 2024-12-25 21:32:01 +01:00
9 changed files with 32 additions and 7 deletions

View file

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

10
TODO Normal file
View file

@ -0,0 +1,10 @@
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.

5
docs/data.rst Normal file
View file

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

5
docs/db.rst Normal file
View file

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

5
docs/exceptions.rst Normal file
View file

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

View file

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

View file

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

View file

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