aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/migrations
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-06-05 15:14:52 +0200
committerGravatar Gareth Coles <[email protected]>2018-06-05 14:14:52 +0100
commitb8c2be0b446be35c273ccaf5ff10fd980be0edcc (patch)
treec1a068d3e43420e26626c2fd53e1e8c06da6c24c /pysite/migrations
parent[Jams] Fix signup message (diff)
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.
Diffstat (limited to 'pysite/migrations')
-rw-r--r--pysite/migrations/tables/pydoc_links/__init__.py0
-rw-r--r--pysite/migrations/tables/pydoc_links/initial_data.json22
2 files changed, 22 insertions, 0 deletions
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
--- /dev/null
+++ b/pysite/migrations/tables/pydoc_links/__init__.py
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"
+ }
+]