chore(): Cleans up the docs a bit #18
9 changed files with 8 additions and 32 deletions
10
TODO
10
TODO
|
@ -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.
|
|
|
@ -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".
|
|
@ -1,5 +0,0 @@
|
||||||
Data
|
|
||||||
====
|
|
||||||
|
|
||||||
.. automodule:: shortenit.data
|
|
||||||
:members:
|
|
|
@ -1,5 +0,0 @@
|
||||||
DB
|
|
||||||
===
|
|
||||||
|
|
||||||
.. automodule:: shortenit.db
|
|
||||||
:members:
|
|
|
@ -1,5 +0,0 @@
|
||||||
Exceptions
|
|
||||||
==========
|
|
||||||
|
|
||||||
.. automodule:: shortenit.exceptions
|
|
||||||
:members:
|
|
|
@ -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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Shortener
|
Shortener
|
||||||
=========
|
=========
|
||||||
|
|
||||||
.. automodule:: shortenit.shortener
|
.. automodule:: shortenit.models.shortener
|
||||||
:members:
|
:members:
|
||||||
|
|
|
@ -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:
|
||||||
|
@ -96,6 +99,7 @@ def argument_parse() -> argparse.ArgumentParser:
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-l", "--logger", type=str, help="The logger YAML configuration file."
|
"-l", "--logger", type=str, help="The logger YAML configuration file."
|
||||||
)
|
)
|
||||||
|
parser.add_argument("-c", "--config", type=str, help="The shortenit configuration file.")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue