Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit a4537e1

Browse files
committed
big documentation update
1 parent 0918563 commit a4537e1

File tree

20 files changed

+486
-287
lines changed

20 files changed

+486
-287
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ ENV/
9494
# Rope project settings
9595
.ropeproject
9696
.idea/
97+
docs/_static/
98+
script.module.codequick/.kodi/

docs/api/base.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Base
2+
====
3+
4+
.. autoclass:: codequick.script.Script
5+
:members:
6+
7+
.. autoclass:: codequick.script.Settings
8+
:members:
9+
:special-members: __getitem__, __setitem__

docs/api/index.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
API
2+
===
3+
4+
fhfghfghfgh
5+
fdghfdghdfghdfgh
6+
dfg
7+
h
8+
fdgh
9+
dfghdfghfdghfdhgfdh
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
14+
base
15+
route
16+
resolver
17+
listitem
18+
storage
19+
utils

docs/api/listitem.rst

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
Listitem
2+
========
3+
The list item control is used for creating item lists in Kodi.
4+
5+
.. autoclass:: codequick.listing.Listitem
6+
7+
.. attribute:: params
8+
9+
:class:`Params<codequick.listing.Params>` dictionary object for adding callback parameters.
10+
11+
.. attribute:: info
12+
13+
:class:`Info<codequick.listing.Info>` dictionary object for adding infoLabels.
14+
15+
.. attribute:: art
16+
17+
:class:`Art<codequick.listing.Art>` dictionary object for adding listitem art.
18+
19+
.. attribute:: stream
20+
21+
:class:`Stream<codequick.listing.Stream>` dictionary object for adding stream details.
22+
23+
.. attribute:: property
24+
25+
:class:`Property<codequick.listing.Property>` dictionary object for adding listitem properties.
26+
27+
.. attribute:: context
28+
29+
:class:`Context<codequick.listing.Context>` dictionary object for context menu items.
30+
31+
.. attribute:: listitem
32+
33+
The underlining kodi listitem object, for advanced use.
34+
35+
.. autoattribute:: codequick.listing.Listitem.label
36+
.. automethod:: codequick.listing.Listitem.set_callback
37+
.. automethod:: codequick.listing.Listitem.from_dict
38+
.. automethod:: codequick.listing.Listitem.next_page
39+
.. automethod:: codequick.listing.Listitem.youtube
40+
.. automethod:: codequick.listing.Listitem.recent
41+
.. automethod:: codequick.listing.Listitem.search
42+
43+
44+
.. autoclass:: codequick.listing.Params
45+
:members:
46+
:special-members: __getitem__, __setitem__
47+
48+
.. autoclass:: codequick.listing.Art
49+
:members:
50+
:special-members: __getitem__, __setitem__
51+
52+
.. autoclass:: codequick.listing.Info
53+
:members:
54+
:special-members: __getitem__, __setitem__
55+
56+
.. autoclass:: codequick.listing.Property
57+
:members:
58+
:special-members: __getitem__, __setitem__
59+
60+
.. autoclass:: codequick.listing.Stream
61+
:members:
62+
:special-members: __getitem__, __setitem__
63+
64+
.. autoclass:: codequick.listing.Context
65+
:members:

docs/api/resolver.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Resolver
2+
========
3+
4+
.. autoclass:: codequick.resolver.Resolver
5+
:members:

docs/api/route.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Route
2+
=====
3+
4+
.. autoclass:: codequick.route.Route
5+
:members:

docs/api/storage.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Storage
2+
=======
3+
Persistent data storage objects. They will act like normal built-in data types,
4+
except all data will be saved to disk for later access when flushed.
5+
6+
.. autoclass:: codequick.storage.PersistentDict
7+
:members:
8+
9+
.. automethod:: codequick.storage.PersistentDict.flush
10+
.. automethod:: codequick.storage.PersistentDict.close
11+
12+
13+
.. autoclass:: codequick.storage.PersistentList
14+
:members:
15+
16+
.. automethod:: codequick.storage.PersistentList.flush
17+
.. automethod:: codequick.storage.PersistentList.close

docs/api/utils.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Utils
2+
=====
3+
A collection of useful function.
4+
5+
.. automodule:: codequick.utils
6+
:members:

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
#
1313
# All configuration values have a default; values that are commented out
1414
# serve to show the default.
15+
from addondev import initializer
1516
import sys
1617
import os
1718

1819
# If extensions (or modules to document with autodoc) are in another directory,
1920
# add these directories to sys.path here. If the directory is relative to the
2021
# documentation root, use os.path.abspath to make it absolute, like shown here.
2122
sys.path.insert(0, os.path.abspath('../script.module.codequick/lib'))
23+
initializer(os.path.abspath('../script.module.codequick'))
2224

2325

2426
# -- General configuration ------------------------------------------------
@@ -168,4 +170,4 @@
168170
]
169171

170172
# Example configuration for intersphinx: refer to the Python standard library.
171-
intersphinx_mapping = {'https://docs.python.org/': None}
173+
intersphinx_mapping = {'python': ('https://docs.python.org/2', None)}

docs/index.rst

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,17 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to CodeQuick's documentation!
7-
=====================================
6+
============
7+
Introduction
8+
============
9+
sdasdfasf asdf asfd asdf asdf asdf asdf asdf asdf
10+
11+
Contents
12+
========
813

914
.. toctree::
1015
:maxdepth: 2
11-
:caption: Contents:
12-
13-
.. autoclass:: codequick.script.Script
14-
:members:
15-
16-
.. autoclass:: codequick.script.Settings
17-
:members:
18-
:special-members: __getitem__, __setitem__
19-
20-
21-
Indices and tables
22-
==================
16+
:titlesonly:
2317

24-
* :ref:`genindex`
25-
* :ref:`modindex`
26-
* :ref:`search`
18+
tutorial
19+
api/index

docs/tutorial.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
########
2+
Tutorial
3+
########
4+
sdasdfasf asdf asfd asdf asdf asdf asdf asdf asdf
5+
ghjghjghjghj
6+
ghj
7+
gh
8+
jgh
9+
jghjgjh

0 commit comments

Comments
 (0)