-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: mtgjson documentation is ok, overhauled documentation in general
- Loading branch information
Showing
17 changed files
with
360 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ build | |
.vscode | ||
**/__pycache__ | ||
._* | ||
/docs/source/_autosummary/ | ||
/docs/source/reference/_autosummary/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.. _reference-index: | ||
|
||
API Reference | ||
============= | ||
|
||
EDHREC | ||
------ | ||
|
||
Scryfall | ||
-------- | ||
|
||
MTGJSON | ||
------- | ||
|
||
**MTGJSON** is an open-source project that catalogs all Magic: The Gathering data in portable formats. Using an aggregation process we fetch information between multiple resources and approved partners, and combine all that data in to various downloadable formats. | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
|
||
* - Feature | ||
- Support | ||
* - JSON data | ||
- ✅ | ||
* - Compressed JSON data | ||
- ✅ (except zip) | ||
* - SQLite data | ||
- ❌ | ||
* - CSV data | ||
- ❌ | ||
* - GraphQL API | ||
- ❌ | ||
|
||
MtgJson Client | ||
~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: mightstone.services.mtgjson.MtgJson | ||
:members: | ||
|
||
Models | ||
~~~~~~ | ||
|
||
.. currentmodule:: mightstone.services.mtgjson.models | ||
|
||
.. autosummary:: | ||
:toctree: _autosummary | ||
|
||
Card | ||
CardAtomicGroup | ||
Set | ||
SetList | ||
Meta | ||
Keywords | ||
Deck | ||
DeckList | ||
CardTypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.. include:: ../../../CHANGELOG.md | ||
:parser: myst_parser.sphinx_ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. _cli: | ||
|
||
Command Line Interface | ||
====================== | ||
|
||
**mightstone** provide a command line interface built with :code:`Click`. | ||
|
||
.. code-block:: bash | ||
python -m mightstone.cli --help | ||
Examples | ||
~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
python -m mightstone.cli scryfall migration dd306737-d34c-4a0c-9e87-cd67bfa0d356 | ||
.. code-block:: bash | ||
python -m mightstone.cli scryfall collection id:683a5707-cddb-494d-9b41-51b4584ded69 "name:Ancient tomb" "set:dmu,collector_number:150" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
============ | ||
Installation | ||
============ | ||
|
||
**mightstone** is a standalone python project that uses | ||
:code:`asyncio` and requires :code:`python >= 3.9.0`. | ||
|
||
Install | ||
======= | ||
|
||
**mightstone** needs to be installed just like any other python package | ||
into your documentation building environment: | ||
|
||
.. code-block:: bash | ||
pip install mightstone | ||
or alternatively: | ||
|
||
.. code-block:: bash | ||
poetry add mightstone | ||
Optional extensions | ||
=================== | ||
|
||
Once installed, you'll need to enable it within sphinx' :code:`conf.py`: | ||
Mightstone use :code:`conf.py` https://github.com/ICRAR/ijson that relies on :code:`YAJL` https://lloyd.github.io/yajl/. | ||
IJson will use its python backend on the run if YAJL is not installed, but you cold benefit from installing YAJL locally. | ||
|
||
.. code-block:: bash | ||
brew install yajl | ||
Configuration | ||
============= | ||
|
||
**mightstone** does not support configuration yet. |
Oops, something went wrong.