Skip to content

Commit

Permalink
Edit docs config and added logo
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzima-spb committed Jun 7, 2022
1 parent 0d567e5 commit bdcf4ee
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 7 deletions.
11 changes: 11 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ Documentation is in Russian only, use a translator for other languages.

See the usage example_ for more understanding.

Development
-----------

Run mypy::

docker-compose exec -w /package -u 1000:1000 sphinx mypy

Run pytest::

docker-compose exec -w /package -u 1000:1000 sphinx pytest

.. |PyPI| image:: https://img.shields.io/pypi/v/flask-uploader.svg
:target: https://pypi.org/project/flask-uploader/
:alt: Latest Version
Expand Down
43 changes: 43 additions & 0 deletions docs/_static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 16 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@

# -- Project information -----------------------------------------------------

project = 'Flask-Uploader'
copyright = '2022, Kirill Vercetti'
author = 'Kirill Vercetti'
from datetime import date
try:
from importlib.metadata import metadata
except ImportError:
from importlib_metadata import metadata
import flask_uploader


meta_info = metadata(flask_uploader.__name__)

project = meta_info['Name']
copyright = '{}, {}'.format(date.today().year, meta_info['Author'])
author = meta_info['Author']

# The full version, including alpha/beta/rc tags
release = '0.1.0'
release = flask_uploader.__version__


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -82,9 +92,9 @@
'show_related': True,
'show_relbar_top': False,
'show_relbar_bottom': True,
# 'logo': 'logo.png',
'logo': 'logo.svg',
'github_user': 'kyzima-spb',
'github_repo': 'flask-uploader',
'github_repo': meta_info['Name'].lower(),
'github_button': True,
'github_type': 'star',
'github_banner': True,
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Flask-Uploader

|DOWNLOADS| |DOWNLOADS_M| |DOWNLOADS_W|

Document version: |version| |release|

**Flask-Uploader** - загрузчик файлов для Flask с гибкой возможностью расширения.

Быстрый старт
Expand Down
5 changes: 5 additions & 0 deletions src/flask_uploader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from __future__ import annotations
try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version
import typing as t

from flask import Blueprint, Flask
Expand All @@ -11,6 +15,7 @@
'init_uploader',
'Uploader',
)
__version__ = version(__package__)


def init_uploader(app: Flask) -> None:
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.dev80
0.1.dev86

0 comments on commit bdcf4ee

Please sign in to comment.