From b8c2be0b446be35c273ccaf5ff10fd980be0edcc Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Tue, 5 Jun 2018 15:14:52 +0200 Subject: documentation metadata API (#57) * Add documentation metadata "schema". * Add seed data for `pydoc_links` table. * Add tests for the `doc` API. * Allow specifying multiple parameters. * Move up line in generator. * make each docs test a function for greater test report visibility * fix a typo * Use fixtures instead of `pytest-ordering`. * Move `doc` API to `/bot/doc`. * Use new migration system. --- pysite/migrations/tables/pydoc_links/__init__.py | 0 .../tables/pydoc_links/initial_data.json | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pysite/migrations/tables/pydoc_links/__init__.py create mode 100644 pysite/migrations/tables/pydoc_links/initial_data.json (limited to 'pysite/migrations') diff --git a/pysite/migrations/tables/pydoc_links/__init__.py b/pysite/migrations/tables/pydoc_links/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pysite/migrations/tables/pydoc_links/initial_data.json b/pysite/migrations/tables/pydoc_links/initial_data.json new file mode 100644 index 00000000..e5b21357 --- /dev/null +++ b/pysite/migrations/tables/pydoc_links/initial_data.json @@ -0,0 +1,22 @@ +[ + { + "package": "aiohttp", + "base_url": "https://aiohttp.readthedocs.io/en/stable/", + "inventory_url": "https://aiohttp.readthedocs.io/en/stable/objects.inv" + }, + { + "package": "discord", + "base_url": "https://discordpy.readthedocs.io/en/rewrite/", + "inventory_url": "https://discordpy.readthedocs.io/en/rewrite/objects.inv" + }, + { + "package": "django", + "base_url": "https://docs.djangoproject.com/en/dev/", + "inventory_url": "https://docs.djangoproject.com/en/dev/_objects/" + }, + { + "package": "stdlib", + "base_url": "https://docs.python.org/3.7/", + "inventory_url": "https://docs.python.org/3.7/objects.inv" + } +] -- cgit v1.2.3