Skip to content

Commit e844d15

Browse files
author
Brandyn A. White
committedMar 13, 2014
Initial docs (manually copied because git subtree is broken)
Signed-off-by: Brandyn A. White <bwhite@dappervision.com>
0 parents  commit e844d15

21 files changed

+1018
-0
lines changed
 

‎Makefile

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
PAPER =
8+
BUILDDIR = _build
9+
10+
# Internal variables.
11+
PAPEROPT_a4 = -D latex_paper_size=a4
12+
PAPEROPT_letter = -D latex_paper_size=letter
13+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
14+
15+
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
16+
17+
help:
18+
@echo "Please use \`make <target>' where <target> is one of"
19+
@echo " html to make standalone HTML files"
20+
@echo " dirhtml to make HTML files named index.html in directories"
21+
@echo " pickle to make pickle files"
22+
@echo " json to make JSON files"
23+
@echo " htmlhelp to make HTML files and a HTML help project"
24+
@echo " qthelp to make HTML files and a qthelp project"
25+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
26+
@echo " changes to make an overview of all changed/added/deprecated items"
27+
@echo " linkcheck to check all external links for integrity"
28+
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
29+
30+
clean:
31+
-rm -rf $(BUILDDIR)/*
32+
33+
# Modified by Brandyn: Put files in project root
34+
html:
35+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ./html/
36+
@echo
37+
@echo "Build finished. The HTML pages are in ./html/"
38+
39+
dirhtml:
40+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
41+
@echo
42+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
43+
44+
pickle:
45+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
46+
@echo
47+
@echo "Build finished; now you can process the pickle files."
48+
49+
json:
50+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
51+
@echo
52+
@echo "Build finished; now you can process the JSON files."
53+
54+
htmlhelp:
55+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
56+
@echo
57+
@echo "Build finished; now you can run HTML Help Workshop with the" \
58+
".hhp project file in $(BUILDDIR)/htmlhelp."
59+
60+
latex:
61+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
62+
@echo
63+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
64+
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
65+
"run these through (pdf)latex."
66+
67+
changes:
68+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
69+
@echo
70+
@echo "The overview file is in $(BUILDDIR)/changes."
71+
72+
linkcheck:
73+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
74+
@echo
75+
@echo "Link check complete; look for any errors in the above output " \
76+
"or in $(BUILDDIR)/linkcheck/output.txt."
77+
78+
doctest:
79+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
80+
@echo "Testing of doctests in the sources finished, look at the " \
81+
"results in $(BUILDDIR)/doctest/output.txt."

‎admin.rst

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Server Administration
2+
======================
3+
4+
Admin Operations
5+
----------------
6+
All of these should be run in the /admin folder
7+
8+
* List users: python users.py list_users
9+
10+
* Each user gets for rows (userid, info, flags, uflags)
11+
* You'll need userid for the other commands
12+
13+
* Add a user (only needed if config.go has allowAllUsers = false): python users.py {{userid}} set_flag flags user

‎cards.rst

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
GDK Cards
2+
=========
3+
WearScript uses an abstraction called a CardTree that allows for a hierarchy of cards where a node can optionally have either a menu or another set of cards beneath it and every card can have a tap/select callback. The syntax is overloaded to make common functionality concise.
4+
5+
The following displays a GDK card (consists of a body and footer)
6+
.. code-block:: javascript
7+
8+
var tree = new WS.Cards();
9+
tree.add('Body text', 'Footer text');
10+
WS.cardTree(tree);
11+
WS.displayCardTree();
12+
13+
14+
Lets add another card
15+
.. code-block:: javascript
16+
17+
var tree = new WS.Cards();
18+
tree.add('Body 0', 'Footer 0');
19+
tree.add('Body 1', 'Footer 1');
20+
WS.cardTree(tree);
21+
WS.displayCardTree();
22+
23+
Select and tap callbacks are optional arguments
24+
.. code-block:: javascript
25+
26+
var tree = new WS.Cards();
27+
tree.add('Body 0', 'Footer 0', function () {WS.say('Selected')});
28+
tree.add('Body 1', 'Footer 1', undefined, function () {WS.say('Tapped')});
29+
WS.cardTree(tree);
30+
WS.displayCardTree();
31+
32+
33+
A menu is added with alternating title and callback arguments at the end of the parameter list. Tap/select parameters (if present) precede them.
34+
.. code-block:: javascript
35+
36+
var tree = new WS.Cards();
37+
tree.add('Body 0', 'Footer 0', 'Say 0', function () {WS.say('Say 0')}, 'Say 1', function () {WS.say('Say 1')});
38+
tree.add('Body 1', 'Footer 1', function () {WS.say('Selected')}, 'Say 0', function () {WS.say('Say 0')}, 'Say 1', function () {WS.say('Say 1')});
39+
tree.add('Body 2', 'Footer 2', function () {WS.say('Selected')}, function () {WS.say('Tapped')}, 'Say 0', function () {WS.say('Say 0')}, 'Say 1', function () {WS.say('Say 1')});
40+
WS.cardTree(tree);
41+
WS.displayCardTree();
42+
43+
A subtree of cards is added by creating another set of cards and placing it as the last parameter (may only have a menu or a subtree for a card). There is no depth limit for subtrees.
44+
45+
.. code-block:: javascript
46+
47+
var tree = new WS.Cards();
48+
tree.add('Body 0', 'Footer 0');
49+
var subtree = new WS.Cards();
50+
subtree.add('Sub Body 0', 'Sub Footer 0');
51+
subtree.add('Sub Body 1', 'Sub Footer 1');
52+
tree.add('Body 1', 'Footer 1', subtree);
53+
WS.cardTree(tree);
54+
WS.displayCardTree();

‎conf.py

+187
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
#
4+
# This file is execfile()d with the current directory set to its containing dir.
5+
#
6+
# Note that not all possible configuration values are present in this
7+
# autogenerated file.
8+
#
9+
# All configuration values have a default; values that are commented out
10+
# serve to show the default.
11+
12+
import sys, os
13+
14+
# -- General configuration -----------------------------------------------------
15+
16+
# Add any Sphinx extension module names here, as strings. They can be extensions
17+
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
18+
extensions = ['sphinx.ext.viewcode', 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath']
19+
20+
# Add any paths that contain templates here, relative to this directory.
21+
templates_path = ['_templates']
22+
23+
# The suffix of source filenames.
24+
source_suffix = '.rst'
25+
26+
# The encoding of source files.
27+
#source_encoding = 'utf-8'
28+
29+
# The master toctree document.
30+
master_doc = 'index'
31+
32+
# General information about the project.
33+
project = u'WearScript'
34+
copyright = u'2014, Dapper Vision, Inc.'
35+
36+
# The version info for the project you're documenting, acts as replacement for
37+
# |version| and |release|, also used in various other places throughout the
38+
# built documents.
39+
#
40+
# The short X.Y version.
41+
version = '.0.1.0'
42+
# The full version, including alpha/beta/rc tags.
43+
release = '.0.1.0'
44+
45+
# The language for content autogenerated by Sphinx. Refer to documentation
46+
# for a list of supported languages.
47+
#language = None
48+
49+
# There are two options for replacing |today|: either, you set today to some
50+
# non-false value, then it is used:
51+
#today = ''
52+
# Else, today_fmt is used as the format for a strftime call.
53+
#today_fmt = '%B %d, %Y'
54+
55+
# List of documents that shouldn't be included in the build.
56+
#unused_docs = []
57+
58+
# List of directories, relative to source directory, that shouldn't be searched
59+
# for source files.
60+
exclude_trees = ['_build']
61+
62+
# The reST default role (used for this markup: `text`) to use for all documents.
63+
#default_role = None
64+
65+
# If true, '()' will be appended to :func: etc. cross-reference text.
66+
#add_function_parentheses = True
67+
68+
# If true, the current module name will be prepended to all description
69+
# unit titles (such as .. function::).
70+
#add_module_names = True
71+
72+
# If true, sectionauthor and moduleauthor directives will be shown in the
73+
# output. They are ignored by default.
74+
#show_authors = False
75+
76+
# The name of the Pygments (syntax highlighting) style to use.
77+
pygments_style = 'sphinx'
78+
79+
# A list of ignored prefixes for module index sorting.
80+
#modindex_common_prefix = []
81+
82+
83+
# -- Options for HTML output ---------------------------------------------------
84+
85+
# The theme to use for HTML and HTML Help pages. Major themes that come with
86+
# Sphinx are currently 'default' and 'sphinxdoc'.
87+
html_theme = 'default'
88+
89+
# Theme options are theme-specific and customize the look and feel of a theme
90+
# further. For a list of options available for each theme, see the
91+
# documentation.
92+
#html_theme_options = {}
93+
94+
# Add any paths that contain custom themes here, relative to this directory.
95+
#html_theme_path = []
96+
97+
# The name for this set of Sphinx documents. If None, it defaults to
98+
# "<project> v<release> documentation".
99+
#html_title = None
100+
101+
# A shorter title for the navigation bar. Default is the same as html_title.
102+
#html_short_title = None
103+
104+
# The name of an image file (relative to this directory) to place at the top
105+
# of the sidebar.
106+
html_logo = 'wearscript-logo.png'
107+
108+
# The name of an image file (within the static path) to use as favicon of the
109+
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
110+
# pixels large.
111+
#html_favicon = None
112+
113+
# Add any paths that contain custom static files (such as style sheets) here,
114+
# relative to this directory. They are copied after the builtin static files,
115+
# so a file named "default.css" will overwrite the builtin "default.css".
116+
html_static_path = ['_static']
117+
118+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
119+
# using the given strftime format.
120+
#html_last_updated_fmt = '%b %d, %Y'
121+
122+
# If true, SmartyPants will be used to convert quotes and dashes to
123+
# typographically correct entities.
124+
#html_use_smartypants = True
125+
126+
# Custom sidebar templates, maps document names to template names.
127+
#html_sidebars = {}
128+
129+
# Additional templates that should be rendered to pages, maps page names to
130+
# template names.
131+
#html_additional_pages = {}
132+
133+
# If false, no module index is generated.
134+
#html_use_modindex = True
135+
136+
# If false, no index is generated.
137+
#html_use_index = True
138+
139+
# If true, the index is split into individual pages for each letter.
140+
#html_split_index = False
141+
142+
# If true, links to the reST sources are added to the pages.
143+
#html_show_sourcelink = True
144+
145+
# If true, an OpenSearch description file will be output, and all pages will
146+
# contain a <link> tag referring to it. The value of this option must be the
147+
# base URL from which the finished HTML is served.
148+
#html_use_opensearch = ''
149+
150+
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
151+
#html_file_suffix = ''
152+
153+
# Output file base name for HTML help builder.
154+
htmlhelp_basename = 'WearScriptdoc'
155+
156+
157+
# -- Options for LaTeX output --------------------------------------------------
158+
159+
# The paper size ('letter' or 'a4').
160+
#latex_paper_size = 'letter'
161+
162+
# The font size ('10pt', '11pt' or '12pt').
163+
#latex_font_size = '10pt'
164+
165+
# Grouping the document tree into LaTeX files. List of tuples
166+
# (source start file, target name, title, author, documentclass [howto/manual]).
167+
latex_documents = [
168+
('index', 'WearScript.tex', u'WearScript Documentation',
169+
u'Brandyn White', 'manual'),
170+
]
171+
172+
# The name of an image file (relative to this directory) to place at the top of
173+
# the title page.
174+
#latex_logo = None
175+
176+
# For "manual" documents, if this is true, then toplevel headings are parts,
177+
# not chapters.
178+
#latex_use_parts = False
179+
180+
# Additional stuff for the LaTeX preamble.
181+
#latex_preamble = ''
182+
183+
# Documents to append as an appendix to all manuals.
184+
#latex_appendices = []
185+
186+
# If false, no module index is generated.
187+
#latex_use_modindex = True

‎contributing.rst

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Contributing
2+
============
3+
4+
* All patches must be provided under the Apache 2.0 license
5+
* Please use the -s option in git to "sign off" that the commit is your work and you are providing it under the Apache 2.0 license
6+
* Submit a Github pull request to the "dev" branch and ideally discuss the changes with us in IRC
7+
* We will look at the patch, test it out, and give you feedback
8+
* New features should generally be put in feature branches
9+
* Avoid doing minor whitespace changes, renamings, etc. along with merged content. These will be done by the maintainers from time to time but they can complicate merges and should be done seperately.
10+
* All pull requests should be "fast forward"
11+
12+
* If there are commits after yours use "git rebase -i <new_head_branch>"
13+
* If you have local changes you may need to use "git stash"
14+
* For git help see `progit <http://git-scm.com/book>`_ which is an awesome (and free) book on git

0 commit comments

Comments
 (0)