Skip to content

Commit e5f90e8

Browse files
committed
chore: add docs folder
1 parent 1bc78f4 commit e5f90e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+12329
-1272
lines changed

README.md

+25-18
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
# Archon
22

3-
<p align="center">
4-
<a href="https://badge.fury.io/js/%40kleros%2Farchon"><img src="https://badge.fury.io/js/%40kleros%2Farchon.svg" alt="npm version"></a>
5-
<a href="https://travis-ci.org/kleros/archon"><img src="https://travis-ci.org/kleros/archon.svg?branch=master" alt="Build Status"></a>
6-
<a href="https://david-dm.org/kleros/archon"><img src="https://david-dm.org/kleros/archon.svg" alt="Dependencies"></a>
7-
<a href="https://david-dm.org/kleros/archon?type=dev"><img src="https://david-dm.org/kleros/archon/dev-status.svg" alt="Dev Dependencies"></a>
8-
<a href="https://github.com/facebook/jest"><img src="https://img.shields.io/badge/tested_with-jest-99424f.svg" alt="Tested with Jest"></a>
9-
<a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="JavaScript Style Guide"></a>
10-
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Styled with Prettier"></a>
11-
<a href="https://conventionalcommits.org"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg" alt="Conventional Commits"></a>
12-
<a href="http://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen Friendly"></a>
13-
</p>
14-
15-
> Archon provides functionality for Arbitrator and Arbitrable Ethereum smart contracts as defined in ERC 792.
3+
> Archon provides functionality for Arbitrator and Arbitrable Ethereum smart contracts as defined in ERC 792 and ERC 1497.
164
175
## Documentation
186

19-
Archon ^0.x works with Solidiy 0.4.x contracts but does not include the most recent features of web3.
20-
21-
Archon ^1.x DOES NOT work with Solidity 0.4.x
22-
237
See full documentation at https://archon.readthedocs.io/en/latest/index.html
248

259
## Installation
@@ -33,7 +17,7 @@ npm install @kleros/archon
3317
```
3418
var Archon = require('@kleros/archon');
3519
36-
var archon = new Archon('ws://some.local-or-remote.node:8546');
20+
var archon = new Archon('wss://some.local-or-remote.node:8546');
3721
3822
> archon.arbitrator
3923
> archon.arbitrable
@@ -53,3 +37,26 @@ yarn test
5337
```sh
5438
yarn run build
5539
```
40+
41+
## Update Docs
42+
43+
The documentation is based on Sphinx. Install Sphinx with your global python or in a virtualenv
44+
```
45+
pip install sphinx
46+
```
47+
48+
49+
1) Update `.rst` files in /docs
50+
51+
52+
2) Run to generate new docs bundle
53+
```
54+
cd docs && make html
55+
```
56+
57+
3) View changes
58+
```
59+
open ./docs/_build/html/index.html
60+
```
61+
62+
4) Push changes
-8.99 KB
Binary file not shown.
-7.27 KB
Binary file not shown.
Binary file not shown.
-7.37 KB
Binary file not shown.

docs/_build/doctrees/archon.doctree

-4.3 KB
Binary file not shown.
5.81 KB
Binary file not shown.

docs/_build/doctrees/evidence.doctree

-1.46 KB
Binary file not shown.
-1.2 KB
Binary file not shown.

docs/_build/doctrees/hashing.doctree

-4.61 KB
Binary file not shown.
-480 Bytes
Binary file not shown.
Binary file not shown.

docs/_build/doctrees/index.doctree

-2.19 KB
Binary file not shown.

docs/_build/doctrees/ipfs.doctree

-2.34 KB
Binary file not shown.
-1.59 KB
Binary file not shown.

docs/_build/doctrees/tutorial.doctree

-1.39 KB
Binary file not shown.

docs/_build/html/.buildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 4ec0f31f8e54a4abb502558368ea861c
3+
config: 75f5eab7a3edd5571381df83423030bb
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
.. note:: Archon depends on Web3 1.0. This version of ``web3`` is still in Beta so usage may change unexpectedly and/or bugs may arise until a stable version of Web3 1.0 is released.
2+
.. note::

docs/_build/html/_sources/index.rst.txt

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ To get up to speed on the standards please reference:
1919
`ERC 1497 Evidence Standard
2020
<https://github.com/ethereum/EIPs/issues/1497>`_.
2121

22-
`Implementation of an Arbitrable Contract
23-
<https://github.com/kleros/kleros-interaction/blob/master/contracts/standard/arbitration/Arbitrable.sol/>`_.
24-
25-
`Implementation of an Arbitrator Contract
26-
<https://github.com/kleros/kleros-interaction/blob/master/contracts/standard/arbitration/Arbitrator.sol/>`_.
22+
`Tutorials on how to use ERC-792 and ERC-1497
23+
<https://erc-792.readthedocs.io>`_.
2724

2825
.. toctree::
2926
:maxdepth: 2

docs/_build/html/_sources/metaevidence-scripts.rst.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ MetaEvidence Dynamic Scripts
1111
dynamicScriptURI as specified in `ERC 1497 <https://github.com/ethereum/EIPs/issues/1497>`_. allow
1212
for metaEvidence to be changed dynamically.
1313

14-
In order to support asynchronous scripts Archon provides global ``scriptResolver`` and ``scriptRejecter``. Please use these
14+
In order to support asynchronous scripts Archon provides global functions ``resolveScript`` and ``rejectScript``. Please use these
1515
when you are returning the updates to the metaEvidence
1616

1717
Available Global Variables
1818
==========================
1919

2020
When you create a script you can assume that you will have global access to these variables:
2121

22-
1) ``scriptResolver`` - ``function``: Call this function to return the result of your script.
22+
1) ``resolveScript`` - ``function``: Call this function to return the result of your script.
2323

24-
2) ``scriptRejecter`` - ``function``: To throw a handled error in your script you can call scriptRejecter.
24+
2) ``rejectScript`` - ``function``: To throw a handled error in your script you can call scriptRejecter.
2525

2626
3) ``scriptParameters`` - ``object``: These are the parameters you pass as `options["scriptParameters"]` in :ref:`getMetaEvidence <archon.arbitrable.getMetaEvidence>`
2727

@@ -40,11 +40,11 @@ Example
4040
... async code to lookup data here ...
4141
4242
if (data) {
43-
scriptResolver({
43+
resolveScript({
4444
newMetaEvidenceParam: "Look at me!"
4545
})
4646
} else {
47-
scriptRejecter("Unable to fetch data")
47+
rejectScript("Unable to fetch data")
4848
}
4949
}
5050

0 commit comments

Comments
 (0)