Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.logo {
font-family: "Courier New", Courier, "Liberation Mono", "Anonymous Pro", monospace;
}
5 changes: 0 additions & 5 deletions docs/_static/custom.css

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_templates/sidebarlogo.html

This file was deleted.

8 changes: 8 additions & 0 deletions docs/audio.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VkAudio
=======

Модуль для работы с аудио

.. module:: vk_api.audio
.. autoclass:: VkAudio
:members:
22 changes: 19 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = 'en'
language = 'ru'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не уверен стоит ли ставить ru, там вроде как не все переведено, так что может оставить en 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

имхо, лучше полторы непереведённые фразы от генератора доков, чем вообще весь интерфейс на одном языке, а сами доки - на другом


# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -85,6 +85,7 @@
# a list of builtin themes.
#
html_theme = 'alabaster'
# html_theme = "sphinx_rtd_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand All @@ -95,6 +96,7 @@
'github_user': 'python273',
'github_repo': 'vk_api',
'github_banner': True,
'github_type': 'star',
'show_related': False
}

Expand All @@ -111,10 +113,19 @@
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
#
# html_sidebars = {
# '**': [
# 'sidebarlogo.html', 'localtoc.html', 'relations.html',
# 'sourcelink.html', 'searchbox.html'
# ]
# }
html_sidebars = {
'**': [
'sidebarlogo.html', 'localtoc.html', 'relations.html',
'sourcelink.html', 'searchbox.html'
'about.html',
'navigation.html',
'relations.html',
'searchbox.html',
'donate.html',
]
}

Expand Down Expand Up @@ -178,6 +189,11 @@

# -- Extension configuration -------------------------------------------------

# -- Options for autodoc extension -------------------------------------------

autodoc_inherit_docstrings = False
autodoc_member_order = 'bysource'

# -- Options for todo extension ----------------------------------------------

# If true, `todo` and `todoList` produce output, else they produce nothing.
Expand Down
7 changes: 7 additions & 0 deletions docs/exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Исключения библиотеки
=====================

.. automodule:: vk_api.exceptions
:members:
:undoc-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions docs/execute.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
VkFunction
==========

Модуль для работы с методом execute

.. module:: vk_api.execute
.. autoclass:: VkFunction
:members:
:special-members: __call__
28 changes: 25 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
Welcome to vk_api's documentation!
==================================
Документация vk_api
===================

vk_api – Python модуль для написания скриптов для социальной сети Вконтакте
(vk.com) (API wrapper)

`Установка через PIP
<https://pythonworld.ru/osnovy/pip.html>`_:

.. code-block:: shell-session

$ pip install --user vk_api

или

.. code-block:: shell-session

# pip install vk_api

Примеры по использованию библиотеки доступны на `GitHub <https://github.com/python273/vk_api/tree/master/examples>`_.

.. toctree::
:maxdepth: 4
:caption: Contents:
:caption: Содержание:

vk_api
audio
longpoll
execute
requests_pool
tools
upload
exceptions
jconfig


Expand Down
38 changes: 11 additions & 27 deletions docs/jconfig.rst
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
jconfig package
===============
Пакет jconfig
=============

Submodules
----------
BaseConfig
---------------------------

jconfig.base module
-------------------

.. automodule:: jconfig.base
.. autoclass:: jconfig.base.BaseConfig
:members:
:undoc-members:
:show-inheritance:

jconfig.jconfig module
----------------------
Config (хранение в json файле)
------------------------------

.. automodule:: jconfig.jconfig
.. autoclass:: jconfig.jconfig.Config
:members:
:undoc-members:
:show-inheritance:

jconfig.memory module
---------------------

.. automodule:: jconfig.memory
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------
MemoryConfig (хранение в памяти)
--------------------------------

.. automodule:: jconfig
.. autoclass:: jconfig.memory.MemoryConfig
:members:
:undoc-members:
:show-inheritance:
22 changes: 22 additions & 0 deletions docs/longpoll.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Модуль `longpoll` (VkLongPoll)
==============================

Модуль для работы с longpoll

.. module:: vk_api.longpoll
.. autoclass:: VkLongPoll
:members:
.. autoclass:: Event
:members:
.. autoclass:: VkLongpollMode
:members:
.. autoclass:: VkEventType
:members:
.. autoclass:: VkPlatform
:members:
.. autoclass:: VkOfflineType
:members:
.. autoclass:: VkMessageFlag
:members:
.. autoclass:: VkPeerFlag
:members:
10 changes: 10 additions & 0 deletions docs/requests_pool.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
VkRequestsPool
==============

Модуль для объединения запросов в один запрос execute

.. module:: vk_api.requests_pool
.. autoclass:: VkRequestsPool
:members:
.. autoclass:: RequestResult
:members:
8 changes: 8 additions & 0 deletions docs/tools.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VkTools
=======

Модуль для выкачивания множества результатов

.. module:: vk_api.tools
.. autoclass:: VkTools
:members:
8 changes: 8 additions & 0 deletions docs/upload.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VkUpload
========

Модуль для загрузки медиафайлов в VK

.. module:: vk_api.upload
.. autoclass:: VkUpload
:members:
101 changes: 5 additions & 96 deletions docs/vk_api.rst
Original file line number Diff line number Diff line change
@@ -1,102 +1,11 @@
vk\_api package
===============
VkApi (основной класс)
======================

Submodules
----------
.. module:: vk_api.vk_api

vk\_api.audio module
--------------------

.. automodule:: vk_api.audio
:members:
:undoc-members:
:show-inheritance:

vk\_api.audio\_url\_decoder module
----------------------------------

.. automodule:: vk_api.audio_url_decoder
:members:
:undoc-members:
:show-inheritance:

vk\_api.enums module
--------------------

.. automodule:: vk_api.enums
:members:
:undoc-members:
:show-inheritance:

vk\_api.exceptions module
-------------------------

.. automodule:: vk_api.exceptions
:members:
:undoc-members:
:show-inheritance:

vk\_api.execute module
----------------------

.. automodule:: vk_api.execute
:members:
:undoc-members:
:show-inheritance:

vk\_api.longpoll module
-----------------------

.. automodule:: vk_api.longpoll
:members:
:undoc-members:
:show-inheritance:

vk\_api.requests\_pool module
-----------------------------

.. automodule:: vk_api.requests_pool
:members:
:undoc-members:
:show-inheritance:

vk\_api.tools module
--------------------

.. automodule:: vk_api.tools
:members:
:undoc-members:
:show-inheritance:

vk\_api.upload module
---------------------

.. automodule:: vk_api.upload
.. autoclass:: VkApi
:members:
:undoc-members:
:show-inheritance:

vk\_api.utils module
--------------------

.. automodule:: vk_api.utils
:members:
:undoc-members:
.. autoclass:: VkUserPermissions
:show-inheritance:

vk\_api.vk\_api module
----------------------

.. automodule:: vk_api.vk_api
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: vk_api
:members:
:undoc-members:
:show-inheritance:
8 changes: 4 additions & 4 deletions jconfig/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
"""
@author: python273
@contact: https://vk.com/python273
@license Apache License, Version 2.0, see LICENSE file
:authors: python273
:contact: https://vk.com/python273
:license: Apache License, Version 2.0, see LICENSE file

Copyright (C) 2018
:copyright: (c) 2018 python273
"""

__author__ = 'python273'
Expand Down
Loading