Skip to content

Commit

Permalink
Заготовка документации
Browse files Browse the repository at this point in the history
  • Loading branch information
K1llMan committed Aug 7, 2020
1 parent 62d2ba2 commit a32d03d
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
/Yandex.Music.Api.Tests/bin
/Yandex.Music.Client.Tests/bin/Debug
/Yandex.Music.Client/bin/Debug
/docs/build
/.vscode
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

2 changes: 0 additions & 2 deletions docs/requirements-docs.txt

This file was deleted.

11 changes: 11 additions & 0 deletions docs/source/api/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. yandex-music-api documentation master file, created by
sphinx-quickstart on Tue Jun 4 13:45:53 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Yandex.Music.API
==================================================================

.. toctree::

../common/common
11 changes: 11 additions & 0 deletions docs/source/client/client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. yandex-music-api documentation master file, created by
sphinx-quickstart on Tue Jun 4 13:45:53 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Yandex.Music.Client
==================================================================

.. toctree::

../common/common
54 changes: 54 additions & 0 deletions docs/source/common/common.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.. yandex-music-api documentation master file, created by
sphinx-quickstart on Tue Jun 4 13:45:53 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Сборка и тестирование
==================================================================

==================================================================
Сборка
==================================================================

Проекты нацелены на .Net Core 3.1. Сборка вне Visual Studio 2019 производится
стандартной командой

.. code-block:: shell
dotnet build
==================================================================
Тестирование
==================================================================

В решение добавлен проект с тестами. Для тестов используется фреймворк
xUnit с расширениями FluentAssertions и Xunit.Extensions.Ordering. Т.к.
при тестировании используются зависимые данные, все тесты запускаются
последовательно и учитывают результат предыдущих необходимых операций.

Для тестирования необходимо добавить в директорию сборки файл appSettings.json
со следующим содержимым:

.. code-block:: json
{
"login": "",
"password": "",
"token": ""
}
Поля объекта соответственно указывают на логин, пароль и токен для доступа к
Яндекс.Музыка. При отсутствии токена будет произведена авторизация и получение
токена. Для работы с библиотекой рекомендуется использовать способ доступа именно
через токен.

Вне Visual Studio 2019 запуск тестов производится стандартной командой

.. code-block:: shell
dotnet test
В результате теста в выходной директории будет создана папка responses, в
которой в случае проблем с десериализацией ответов будут сохранены копии ответа,
а также создан файл с логом, содержащий описание проблемы. Их можно прикладывать
к `issues <https://github.com/K1llMan/Yandex.Music.Api/issues>`_.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# -- Project information -----------------------------------------------------

project = 'Yandex Music API'
copyright = '2019, Winster332'
author = 'Stanislav Vladimirovich Martynov'
copyright = '2020, K1llM@n'
author = 'K1llM@n, based on Winster332 project'

language = 'ru'

Expand Down
11 changes: 3 additions & 8 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
.. yandex-music-api documentation master file, created by
sphinx-quickstart on Tue Jun 4 13:45:53 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Документация неофициальной C# библиотеки для API Yandex Music
Документация неофициальной C# библиотеки для API и клиента Yandex Music
==================================================================

.. toctree::

readme
yandex_music
api/api
client/client

0 comments on commit a32d03d

Please sign in to comment.