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

Commit a3752cd

Browse files
authored
Doc fixes and playground links (#3304)
* Doc fixes and playground links Signed-off-by: Dave Kelsey <d_kelsey@uk.ibm.com> * change test Signed-off-by: Dave Kelsey <d_kelsey@uk.ibm.com>
1 parent 397292c commit a3752cd

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

packages/composer-playground/src/app/services/config/configStructure.service.spec.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,22 @@ describe('Config', () => {
6363
};
6464

6565
service.links = {
66-
docs: 'https://hyperledger.github.io/composer/introduction/introduction.html',
67-
tutorial: 'https://hyperledger.github.io/composer/tutorials/playground-tutorial.html',
68-
community: 'https://hyperledger.github.io/composer/support/support-index.html',
66+
docs: 'https://hyperledger.github.io/composer/next/introduction/introduction.html',
67+
tutorial: 'https://hyperledger.github.io/composer/next/tutorials/playground-tutorial.html',
68+
community: 'https://hyperledger.github.io/composer/next/support/support-index.html',
6969
github: 'https://github.com/hyperledger/composer',
70-
install: 'https://hyperledger.github.io/composer/installing/installing-index.html',
70+
install: 'https://hyperledger.github.io/composer/next/installing/installing-index.html',
7171
legal: 'https://www.apache.org/licenses/LICENSE-2.0'
7272
};
7373

7474
service.setValuesFromObject(object);
7575

7676
service.links.should.deep.equal({
7777
docs: 'My Docs',
78-
tutorial: 'https://hyperledger.github.io/composer/tutorials/playground-tutorial.html',
79-
community: 'https://hyperledger.github.io/composer/support/support-index.html',
78+
tutorial: 'https://hyperledger.github.io/composer/next/tutorials/playground-tutorial.html',
79+
community: 'https://hyperledger.github.io/composer/next/support/support-index.html',
8080
github: 'https://github.com/hyperledger/composer',
81-
install: 'https://hyperledger.github.io/composer/installing/installing-index.html',
81+
install: 'https://hyperledger.github.io/composer/next/installing/installing-index.html',
8282
legal: 'https://www.apache.org/licenses/LICENSE-2.0'
8383
});
8484
});
@@ -105,11 +105,11 @@ describe('Config', () => {
105105
service.title.should.deep.equal('Hyperledger Composer');
106106
service.banner.should.deep.equal(['Hyperledger', 'Composer Playground']);
107107
service.links.should.deep.equal({
108-
docs: 'https://hyperledger.github.io/composer/introduction/introduction.html',
109-
tutorial: 'https://hyperledger.github.io/composer/tutorials/playground-tutorial.html',
110-
community: 'https://hyperledger.github.io/composer/support/support-index.html',
108+
docs: 'https://hyperledger.github.io/composer/next/introduction/introduction.html',
109+
tutorial: 'https://hyperledger.github.io/composer/next/tutorials/playground-tutorial.html',
110+
community: 'https://hyperledger.github.io/composer/next/support/support-index.html',
111111
github: 'https://github.com/hyperledger/composer',
112-
install: 'https://hyperledger.github.io/composer/installing/installing-index.html',
112+
install: 'https://hyperledger.github.io/composer/next/installing/installing-index.html',
113113
legal: 'https://www.apache.org/licenses/LICENSE-2.0'
114114
});
115115

packages/composer-playground/src/app/services/config/configStructure.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export class Config {
2121
this.title = 'Hyperledger Composer';
2222
this.banner = ['Hyperledger', 'Composer Playground'];
2323
this.links = {
24-
docs: <string> 'https://hyperledger.github.io/composer/introduction/introduction.html',
25-
tutorial: <string> 'https://hyperledger.github.io/composer/tutorials/playground-tutorial.html',
26-
community: <string> 'https://hyperledger.github.io/composer/support/support-index.html',
24+
docs: <string> 'https://hyperledger.github.io/composer/next/introduction/introduction.html',
25+
tutorial: <string> 'https://hyperledger.github.io/composer/next/tutorials/playground-tutorial.html',
26+
community: <string> 'https://hyperledger.github.io/composer/next/support/support-index.html',
2727
github: <string> 'https://github.com/hyperledger/composer',
28-
install: <string> 'https://hyperledger.github.io/composer/installing/installing-index.html',
28+
install: <string> 'https://hyperledger.github.io/composer/next/installing/installing-index.html',
2929
legal: <string> 'https://www.apache.org/licenses/LICENSE-2.0'
3030
};
3131
this.analyticsID = null;

packages/composer-website/jekylldocs/applications/node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ What we need to do here is create a 'serializer'. This is able to create a reso
162162

163163
* [**JavaScript API Documentation**](../api/api-doc-index.html)
164164
* [**Promises tutorial**](https://scotch.io/tutorials/understanding-javascript-promises-pt-i-background-basics)
165-
* [** async/await tutorial**](https://codeburst.io/javascript-es-2017-learn-async-await-by-example-48acc58bad65)
165+
* [**async/await tutorial**](https://codeburst.io/javascript-es-2017-learn-async-await-by-example-48acc58bad65)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ rule historianAccess{
7373

7474
## Retrieving historian data
7575

76-
Data from the historian registry can be retrieved using either an API call, or queries.
76+
Data from the historian registry can be retrieved using either an API call, or queries. All examples that follow make use of the async/await feature and assume that the code is encapsulated in a function with the `async` attribute.
7777

7878
### Using the client and REST APIs with historian
7979

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 Nov 28th: </strong>Version 0.16 has been released. Please see <a href="https://github.com/hyperledger/composer/releases">the release notes.</a></p>
38+
<p><strong>Update Feb 1st 2018: </strong>Version 0.17.3 has been released. Please see <a href="https://github.com/hyperledger/composer/releases">the release notes.</a></p>
3939
</div>
4040
</div>
4141
<div class="trio">

packages/composer-website/jekylldocs/tutorials/playground-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ For more information on writing transaction processor functions, check our [docu
104104
* @param {org.acme.mynetwork.Trade} trade - the trade to be processed
105105
* @transaction
106106
*/
107-
function tradeCommodity(trade) {
107+
async function tradeCommodity(trade) {
108108
trade.commodity.owner = trade.newOwner;
109109
let assetRegistry = await getAssetRegistry('org.acme.mynetwork.Commodity');
110110
await assetRegistry.update(trade.commodity);

0 commit comments

Comments
 (0)