Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 2967771

Browse files
mbwhitejt-nti
authored andcommitted
Jsdoc and apidoc (#2354)
* jsdoc and apiinilne Signed-off-by: Matthew B White <whitemat@uk.ibm.com> * JSDoc at the original location, and link to it Signed-off-by: Matthew B White <whitemat@uk.ibm.com> * correct link on main page and remove between in filters Signed-off-by: Matthew B White <whitemat@uk.ibm.com> * correct gitignore for jsdoc Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
1 parent 5f3ee71 commit 2967771

7 files changed

Lines changed: 12 additions & 19 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jspm_packages
5353
packages/composer-website/linkresults.txt
5454

5555
packages/composer-website/jsondata
56-
packages/composer-website/jekyll-docs/api-doc-inline
57-
56+
packages/composer-website/jekylldocs/api-doc-inline
57+
packages/composer-website/jekylldocs/jsdoc
5858
packages/composer-playground/src/assets/npmlist.json
5959

6060
packages/composer-systests/systestv1/tls/ca/fabric-ca-server.db

packages/composer-website/jekylldocs/business-network/query.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Queries are an optional component of a business network definition, written in a
1616

1717
Note: When using the {{site.data.conrefs.hlf_full}} v1.0 runtime {{site.data.conrefs.hlf_full}} must be configured to use CouchDB persistence.
1818

19-
Filters are similar to queries, but use the LoopBack filter syntax, and can only be sent using the {{site.data.conrefs.composer_full}} REST API. Currently, only the `WHERE` LoopBack filter is supported. The supported operators within `WHERE` are: **=**, **and**, **or**, **gt**, **gte**, **lt**, **lte**, **between**, **neq**. Filters are submitted using a `GET` call against an asset type, participant type, or transaction type; the filter is then supplied as a parameter. Filters return the results from the specified class, and will not return results from classes extending the specified class.
19+
Filters are similar to queries, but use the LoopBack filter syntax, and can only be sent using the {{site.data.conrefs.composer_full}} REST API. Currently, only the `WHERE` LoopBack filter is supported. The supported operators within `WHERE` are: **=**, **and**, **or**, **gt**, **gte**, **lt**, **lte**, **neq**. Filters are submitted using a `GET` call against an asset type, participant type, or transaction type; the filter is then supplied as a parameter. Filters return the results from the specified class, and will not return results from classes extending the specified class.
2020

2121
## Types of Queries
2222

@@ -83,14 +83,15 @@ Filters can only be submitted using the {{site.data.conrefs.composer_full}} REST
8383

8484
*Please note*: Only the top level `WHERE` operator can have more than two operands.
8585

86-
Currently, only the `WHERE` LoopBack filter is supported. The supported operators within `WHERE` are: **=**, **and**, **or**, **gt**, **gte**, **lt**, **lte**, **between**, **neq**. Filters can combine multiple operators, in the following example, an **and** operator is nested within an **or** operator.
86+
Currently, only the `WHERE` LoopBack filter is supported. The supported operators within `WHERE` are: **=**, **and**, **or**, **gt**, **gte**, **lt**, **lte**, **neq**. Filters can combine multiple operators, in the following example, an **and** operator is nested within an **or** operator.
8787

8888
```
8989
{"where":{"or":[{"and":[{"field1":"foo"},{"field2":"bar"}]},{"field3":"foobar"}]}}
9090
```
91-
91+
<!--
9292
The **between** operator returns values between the given range. It accepts numbers, datetime values, and strings. If supplied with strings, the **between** operator returns results between the supplied strings alphabetically. In the example below, the filter will return all resources where the driver property is alphabetically between _a_ and _c_, inclusively.
9393
9494
```
9595
{"where":{"driver":{"between": ["a","c"]}}}
9696
```
97+
-->

packages/composer-website/jekylldocs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h1>Build Blockchain applications and business networks your way</h1>
3535
</div>
3636
<div class="homepage-callout">
3737
<div class="callout-copy">
38-
<p><strong>Update Oct 11: </strong>Version 0.14 has been released. To deliver major enhancements to the security model, this update may break existing projects. Please see https://github.com/hyperledger/composer/releases</p>
38+
<p><strong>Update Oct 11: </strong>Version 0.14 has been released. To deliver major enhancements to the security model, this update may break existing projects. Please see <a href="https://github.com/hyperledger/composer/releases">the release notes.</a></p>
3939
</div>
4040
</div>
4141
<div class="trio">
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +0,0 @@
1-
---
2-
---
3-
<html xmlns="http://www.w3.org/1999/xhtml">
4-
<head>
5-
<title>Hyperledger Composer</title>
6-
<meta http-equiv="refresh" content="0;URL='{{site.baseurl}}/api-doc-inline/api-doc-index.html'" />
7-
</head>
8-
<body>
9-
<p>This page has moved to a <a href="{{site.baseurl}}/api-doc-inline/api-doc-index.html">
10-
{{site.baseurl}}/api-doc-inline/api-doc-index.html</a>.</p>
11-
</body>
12-
</html>

packages/composer-website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"npm": ">=3"
99
},
1010
"scripts": {
11-
"doc": "npm run apiref && ./scripts/generate-uml.sh",
11+
"jsdocpub": "jsdoc --pedantic --recurse -c ./jsdoc-template/jsdoc.conf -t ./jsdoc-template -a public,undefined -d ./jekylldocs/jsdoc -R ./jsdoc-template/JSDOC-README.md",
12+
"doc": "npm run apiref && ./scripts/generate-uml.sh && npm run jsdocpub",
1213
"apiref": "mkdirp ./jsondata && ./scripts/generate-apidocs.1.sh",
1314
"docpub": "jsdoc --pedantic --recurse -c ./jsdoc-template/jsdoc.conf -t ./jsdoc-template -a public,undefined -d ./jekylldocs/jsdoc -R ./jsdoc-template/JSDOC-README.md",
1415
"docpriv": "jsdoc --pedantic --recurse -c ./jsdoc-template/jsdoc.conf -t ./jsdoc-template -a all -d ./jekylldocs/jsdoc-contrib -R ./jsdoc-template/JSDOC-README.md",

packages/composer-website/scripts/api-doc-index.md.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ index-order: 1200
1111
Hyperledger Composer is an application development framework for building Blockchain applications based on Hyperledger. This is the JavaScript documentation for the Hyperledger Composer Client, Admin, and Runtime JavaScript APIs.
1212

1313

14+
The [original JSDoc format](../jsdoc/index.html) can still be found temporarily, whilst the new format is refinded. Please do send us your feedback.
15+
1416
## Overview
1517
The major components of Hyperledger Composer are:
1618

packages/composer-website/scripts/generate-uml.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ node ./node_modules/composer-common/lib/codegen/parsejs.js --format PlantUML --i
2626

2727
echo $(date) Generating images for public and private APIs...
2828
node ./node_modules/composer-common/lib/tools/plantumltoimage.js --inputDir "$DIR/out/uml" --outputDir "$DIR/jekylldocs/api-doc-inline/diagrams"
29+
node ./node_modules/composer-common/lib/tools/plantumltoimage.js --inputDir "$DIR/out/uml" --outputDir "$DIR/jekylldocs/jsdoc/diagrams"
2930
#node ./node_modules/composer-common/lib/tools/plantumltoimage.js --inputDir "$DIR/out/uml-private" --outputDir "$DIR/out/diagrams-private"
3031
echo $(date) Processed UML files

0 commit comments

Comments
 (0)