Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Ivan Tyagov
jio
Commits
1c422fd3
Commit
1c422fd3
authored
Nov 18, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: consistently use lowercase j in jIO
parent
2f930bbe
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
45 additions
and
50 deletions
+45
-50
docs/sphinx/source/available_storages.rst
docs/sphinx/source/available_storages.rst
+2
-2
docs/sphinx/source/complex_queries.rst
docs/sphinx/source/complex_queries.rst
+1
-1
docs/sphinx/source/conf.py
docs/sphinx/source/conf.py
+7
-7
docs/sphinx/source/developers.rst
docs/sphinx/source/developers.rst
+7
-7
docs/sphinx/source/gid_storage.rst
docs/sphinx/source/gid_storage.rst
+1
-1
docs/sphinx/source/index.rst
docs/sphinx/source/index.rst
+2
-8
docs/sphinx/source/introduction.rst
docs/sphinx/source/introduction.rst
+3
-3
docs/sphinx/source/manage_documents.rst
docs/sphinx/source/manage_documents.rst
+7
-7
docs/sphinx/source/metadata.rst
docs/sphinx/source/metadata.rst
+14
-13
docs/sphinx/source/revision_storages.rst
docs/sphinx/source/revision_storages.rst
+1
-1
No files found.
docs/sphinx/source/available_storages.rst
View file @
1c422fd3
...
...
@@ -9,7 +9,7 @@
List of Available Storages
==========================
J
IO saves his job queue in a workspace which is localStorage by default.
j
IO saves his job queue in a workspace which is localStorage by default.
Provided storage descriptions are also stored, and it can be dangerous to
store passwords.
...
...
@@ -144,7 +144,7 @@ Revision Based Handlers
A revision based handler is a storage which is able to do some document
versioning using simple storages listed above.
On
J
IO command parameter, ``_id`` is still used to identify a document, but
On
j
IO command parameter, ``_id`` is still used to identify a document, but
another id ``_rev`` must be defined to use a specific revision of this document.
On command responses, you will find another field ``rev`` which will represent the
...
...
docs/sphinx/source/complex_queries.rst
View file @
1c422fd3
J
IO Complex Queries
j
IO Complex Queries
===================
What are Complex Queries?
...
...
docs/sphinx/source/conf.py
View file @
1c422fd3
# -*- coding: utf-8 -*-
#
#
J
IO documentation build configuration file, created by
#
j
IO documentation build configuration file, created by
# sphinx-quickstart on Fri Nov 15 11:55:08 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
...
...
@@ -42,7 +42,7 @@ source_suffix = '.rst'
master_doc
=
'index'
# General information about the project.
project
=
u'
J
IO'
project
=
u'
j
IO'
copyright
=
u'2013, Nexedi'
# The version info for the project you're documenting, acts as replacement for
...
...
@@ -167,7 +167,7 @@ html_static_path = ['_static']
#html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename
=
'
J
IOdoc'
htmlhelp_basename
=
'
j
IOdoc'
# -- Options for LaTeX output --------------------------------------------------
...
...
@@ -186,7 +186,7 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents
=
[
(
'index'
,
'
JIO.tex'
,
u'J
IO Documentation'
,
(
'index'
,
'
jIO.tex'
,
u'j
IO Documentation'
,
u'Nexedi'
,
'manual'
),
]
...
...
@@ -216,7 +216,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages
=
[
(
'index'
,
'jio'
,
u'
J
IO Documentation'
,
(
'index'
,
'jio'
,
u'
j
IO Documentation'
,
[
u'Nexedi'
],
1
)
]
...
...
@@ -230,8 +230,8 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents
=
[
(
'index'
,
'
JIO'
,
u'J
IO Documentation'
,
u'Nexedi'
,
'
J
IO'
,
'One line description of project.'
,
(
'index'
,
'
jIO'
,
u'j
IO Documentation'
,
u'Nexedi'
,
'
j
IO'
,
'One line description of project.'
,
'Miscellaneous'
),
]
...
...
docs/sphinx/source/developers.rst
View file @
1c422fd3
...
...
@@ -76,26 +76,26 @@ Create 10 methods: ``post``, ``put``, ``putAttachment``, ``get``, ``getAttachmen
(To help you design your methods, some tools are provided by jIO.util.)
The first parameter command provides some methods to act on the
J
IO job:
The first parameter command provides some methods to act on the
j
IO job:
* ``success``, to tell
J
IO that the job is successfully terminated
* ``success``, to tell
j
IO that the job is successfully terminated
``command.success(status[Text], [{custom key to add to the response}]);``
* ``resolve``, is equal to success
* ``error``, to tell
J
IO that the job cannot be done
* ``error``, to tell
j
IO that the job cannot be done
``command.error(status[Text], [reason], [message], [{custom key to add to the response}])``
* ``retry``, to tell
J
IO that the job cannot be done now, but can be retried later. (same API than error)
* ``retry``, to tell
j
IO that the job cannot be done now, but can be retried later. (same API than error)
* ``reject``, to tell
JIO that the job cannot be done, let J
IO to decide whether to retry or not. (same API than error)
* ``reject``, to tell
jIO that the job cannot be done, let j
IO to decide whether to retry or not. (same API than error)
The second parameter ``metadata`` or ``param`` is the first parameter provided by the
J
IO user.
The second parameter ``metadata`` or ``param`` is the first parameter provided by the
j
IO user.
The third parameter ``option`` is the option parameter provided by the
J
IO user.
The third parameter ``option`` is the option parameter provided by the
j
IO user.
Methods should return the following objects:
...
...
docs/sphinx/source/gid_storage.rst
View file @
1c422fd3
.. _gid-storage:
J
IO GIDStorage
j
IO GIDStorage
==============
A storage to enable interoperability between all kind of storages.
...
...
docs/sphinx/source/index.rst
View file @
1c422fd3
..
J
IO documentation master file, created by
..
j
IO documentation master file, created by
sphinx-quickstart on Fri Nov 15 11:55:08 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to
J
IO's documentation!
Welcome to
j
IO's documentation!
===============================
Contents:
...
...
@@ -24,11 +24,5 @@ Contents:
authors
license
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
docs/sphinx/source/introduction.rst
View file @
1c422fd3
...
...
@@ -8,7 +8,7 @@ Introduction
What is jIO?
------------
J
IO is a JavaScript library that allows to manage JSON documents on local or
j
IO is a JavaScript library that allows to manage JSON documents on local or
remote storages in asynchronous fashion. jIO is an abstracted API mapped after
CouchDB, that offers connectors to multiple storages, special handlers to
enhance functionality (replication, revisions, indexing) and a query module to
...
...
@@ -19,12 +19,12 @@ How does it work?
.. XXX three parts?
J
IO is separated into three parts - jIO core and storage library(ies). The core
j
IO is separated into three parts - jIO core and storage library(ies). The core
is using storage libraries (connectors) to interact with the associated remote
storage servers. Some queries can be used on top of the jIO allDocs method to
query documents based on defined criteria.
J
IO uses a job management system, so every method called adds a job into a
j
IO uses a job management system, so every method called adds a job into a
queue. The queue is copied in the browser's local storage (by default), so it
can be restored in case of a browser crash. Jobs are being invoked
asynchronously with ongoing jobs not being able to re-trigger to prevent
...
...
docs/sphinx/source/manage_documents.rst
View file @
1c422fd3
How to manage documents?
========================
J
IO is mapped after the CouchDB API and extends them to provide unified, scalable
j
IO is mapped after the CouchDB API and extends them to provide unified, scalable
and high performance access via Javascript to a wide variety of different
storage backends.
...
...
@@ -121,10 +121,10 @@ see how method calls should be made with either of these storages.
Promises
--------
Each
J
IO methods returns a Promise object, which allows us to get responses into
Each
j
IO methods returns a Promise object, which allows us to get responses into
callback parameters and to chain callbacks with other returned values.
J
IO uses a custom version of `RSVP.js <https://github.com/tildeio/rsvp.js>`_, adding canceler and progression features.
j
IO uses a custom version of `RSVP.js <https://github.com/tildeio/rsvp.js>`_, adding canceler and progression features.
You can read more about promises:
...
...
@@ -136,7 +136,7 @@ You can read more about promises:
Method Options and Callback Responses
-------------------------------------
To retrieve
J
IO responses, you have to provide callbacks like this:
To retrieve
j
IO responses, you have to provide callbacks like this:
.. code-block:: javascript
...
...
@@ -144,11 +144,11 @@ To retrieve JIO responses, you have to provide callbacks like this:
then([responseCallback], [errorCallback], [progressionCallback]);
* On command success, responseCallback will be called with the
J
IO response as first parameter.
* On command error, errorCallback will be called with the
J
IO error as first parameter.
* On command success, responseCallback will be called with the
j
IO response as first parameter.
* On command error, errorCallback will be called with the
j
IO error as first parameter.
* On command notification, progressionCallback will be called with the storage notification.
Here is a list of responses returned by
J
IO according to methods and options:
Here is a list of responses returned by
j
IO according to methods and options:
================== =============================== ======================================
...
...
docs/sphinx/source/metadata.rst
View file @
1c422fd3
...
...
@@ -3,6 +3,7 @@
:language: javascript
.. _metadata-head:
Metadata
========
...
...
@@ -27,7 +28,7 @@ way to save documents and to get them). So we must use metadata for
*interoperability reasons*. Interoperability is the ability of diverse systems
and organizations to work together.
How to format metadata with
J
IO
How to format metadata with
j
IO
-------------------------------
See below XML and its JSON equivalent:
...
...
@@ -60,7 +61,7 @@ List of metadata to use
Identification
^^^^^^^^^^^^^^
* **"_id"**, a specific
J
IO metadata which helps the storage to find a document
* **"_id"**, a specific
j
IO metadata which helps the storage to find a document
(can be a real path name, a dc:identifier, a uuid, ...). **String Only**
* **"identifer"**, :js:`{"identifier": "http://domain/jio_home_page"}, {"identifier": "urn:ISBN:978-1-2345-6789-X"},
...
...
@@ -131,18 +132,18 @@ Intellectual property
Content
^^^^^^^
* **"title"**, :js:`{"title": "
J
IO Home Page"}`
* **"title"**, :js:`{"title": "
j
IO Home Page"}`
the name given to the resource. Typically, a Title will be a name by which the resource is formally known.
* **"subject"**, :js:`{"subject": "
JIO"}, {"subject": ["J
IO", "basics"]}`
* **"subject"**, :js:`{"subject": "
jIO"}, {"subject": ["j
IO", "basics"]}`
the topic of the content of the resource. Typically, a Subject will be
expressed as keywords or key phrases or classification codes that describe the
topic of the resource. Recommended best practice is to select a value from a
controlled vocabulary or formal classification scheme.
* **"description"**, :js:`{"description": "Simple guide to show the basics of
J
IO"}, {"description": {"lang": "fr", "content": "Ma description"}}`
* **"description"**, :js:`{"description": "Simple guide to show the basics of
j
IO"}, {"description": {"lang": "fr", "content": "Ma description"}}`
an account of the content of the resource. Description may include but is not
limited to: an abstract, table of contents, reference to a graphical
...
...
@@ -199,7 +200,7 @@ Content
Examples
--------
Posting a webpage for
J
IO
Posting a webpage for
j
IO
^^^^^^^^^^^^^^^^^^^^^^^^^
.. code-block:: javascript
...
...
@@ -211,16 +212,16 @@ Posting a webpage for JIO
"date" : new Date(),
"type" : "Text",
"creator" : ["Nexedi", "Tristan Cavelier", "Sven Franck"],
"title" : "
J
IO Home Page",
"subject" : ["
J
IO", "basics"],
"description" : "Simple guide to show the basics of
J
IO",
"title" : "
j
IO Home Page",
"subject" : ["
j
IO", "basics"],
"description" : "Simple guide to show the basics of
j
IO",
"category" : ["resilience/jio", "webpage"],
"language" : "en"
}, callbacks); // send content as attachment
Posting
J
IO library
Posting
j
IO library
^^^^^^^^^^^^^^^^^^^
.. code-block:: javascript
...
...
@@ -236,7 +237,7 @@ Posting JIO library
"rights" :
"https://www.j-io.org/documentation/jio-documentation/#copyright-and-license",
"title" : "Javascript Input/Output",
"subject" : "
J
IO",
"subject" : "
j
IO",
"category" : ["resilience/javascript", "javascript/library/io"]
"description" : "jIO is a client-side JavaScript library to manage " +
"documents across multiple storages."
...
...
@@ -355,14 +356,14 @@ With complex query:
jio.allDocs({"query": "creator: \"someone\""}, callbacks);
Getting all documents about
J
IO in the resilience project
Getting all documents about
j
IO in the resilience project
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
With complex query:
.. code-block:: javascript
jio.allDocs({"query": "subject: \"
J
IO\" AND category: \"resilience\""}, callbacks);
jio.allDocs({"query": "subject: \"
j
IO\" AND category: \"resilience\""}, callbacks);
...
...
docs/sphinx/source/revision_storages.rst
View file @
1c422fd3
...
...
@@ -7,7 +7,7 @@ Why Conflicts can Occur
Using jIO you can store documents in multiple storage locations. With
increasing number of users working on a document and some storages not being
available or responding too slow, conflicts are more likely to occur.
J
IO
available or responding too slow, conflicts are more likely to occur.
j
IO
defines a conflict as multiple versions of a document existing in a storage
tree and a user trying to save on a version that does not match the latest
version of the document.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment