Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs - Fix build #445

Merged
merged 4 commits into from Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -12,18 +12,11 @@ import TabItem from '@theme/TabItem';
import CodeBlock from '@theme/CodeBlock';
import private_tangle_js from '!!raw-loader!./../../../bindings/wasm/examples/src/private_tangle.js';
import private_tangle_rs from '!!raw-loader!./../../../examples/low-level-api/private_tangle.rs';
import account_private_tangle_rs from '!!raw-loader!./../../../examples/account/private_tangle.rs';

## Example

This example shows how you can create a DID on a private tangle. You can run it together with a local [Hornet node](https://wiki.iota.org/hornet/welcome).

### Account Module (Recommended)

<CodeBlock className="language-rust">
{account_private_tangle_rs}
</CodeBlock>

cycraig marked this conversation as resolved.
Show resolved Hide resolved
### Low-level API

<Tabs
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/decentralized_identifiers/secure.mdx
Expand Up @@ -3,7 +3,7 @@ title: Secure DIDs
sidebar_label: Secure
---

import account_stronghold_rs from '!!raw-loader!../../../examples/account/stronghold.rs';
import account_stronghold_rs from '!!raw-loader!../../../examples/account/create_did.rs';
import CodeBlock from '@theme/CodeBlock';

TODO: Stronghold
Expand Down
7 changes: 0 additions & 7 deletions documentation/docs/decentralized_identifiers/update.mdx
Expand Up @@ -15,7 +15,6 @@ import TabItem from '@theme/TabItem';
import CodeBlock from '@theme/CodeBlock';
import manipulate_did_js from '!!raw-loader!../../../bindings/wasm/examples/src/manipulate_did.js';
import manipulate_did_rs from '!!raw-loader!../../../examples/low-level-api/manipulate_did.rs';
import account_manipulate_did_rs from '!!raw-loader!../../../examples/account/methods.rs';
cycraig marked this conversation as resolved.
Show resolved Hide resolved


TODO: Explain how DID Documents can be manipulated and how updates should be published.
Expand All @@ -24,12 +23,6 @@ TODO: Explain how DID Documents can be manipulated and how updates should be pub

This example shows how you can add more to an existing DID Document. The two main things you can add are Verification Methods and Services. A verification method adds public keys, which can be used to digitally sign things like an identity. The services provide metadata around the identity via URIs. These can be URLs, but also emails or IOTA indices.

### Account Module (Recommended)

<CodeBlock className="language-rust">
{account_manipulate_did_rs}
</CodeBlock>

### Low-level API
<Tabs
groupId="programming-languages"
Expand Down
2 changes: 1 addition & 1 deletion documentation/package.json
Expand Up @@ -13,6 +13,6 @@
"node": ">=14.14.0"
},
"dependencies": {
"iota-wiki-cli": "git+https://github.com/iota-community/iota-wiki-cli.git#v1.0.1"
"iota-wiki-cli": "git+https://github.com/iota-community/iota-wiki-cli.git#v1.4.1"
}
}