Skip to content

Commit ec6e2c8

Browse files
authored
Merge pull request #4 from ChainSafe/willem/documentation-fixes
Minor fixes to docs pages
2 parents 0b95948 + 7eac690 commit ec6e2c8

23 files changed

+71
-805
lines changed

README.md

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,64 @@ A performant javascript client library for building Zcash browser wallets
66

77
## Overview
88

9+
WebZjs aims to make it simple to securely interact with Zcash from within the browser. This is primarily to support the development of web wallets and browser plugins.
910

11+
Being a private blockchain Zcash places a lot more demands on the wallet than a public blockchain like Ethereum. WebZjs uses everything at its disposal to give efficient sync times and a good user experience.
1012

11-
## Prerequisites
13+
## Usage
14+
15+
```typescript
16+
// TODO
17+
```
18+
19+
## Building
20+
21+
### Prerequisites
1222

1323
- This repo uses [just](https://github.com/casey/just) as a command runner. Please install this first.
1424
- Install [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)
15-
- Tested with Rust nightly-2024-02-26
25+
- Requires clang 17 or later
26+
- On Mac this can be installed by updating LLVM using your preferred package manager (e.g. macports, brew)
27+
- Tested with Rust nightly-2024-08-07
28+
29+
### Building for Browser
30+
31+
This just script uses wasm-pack to build a web-ready javascript library.
32+
33+
```shell
34+
just build-web
35+
```
36+
37+
After building the resulting lib can be found in `packages/webz-core`.
38+
39+
## Development
40+
41+
The [`.cargo/config.toml`](./.cargo/config.toml) file sets the build target to `wasm32-unknown-unknown` so the regular cargo commands (e.g. `check`, `build`) will run against this target.
42+
43+
### Testing
44+
45+
Tests are run in a headless browser environment and can be run with
46+
47+
```shell
48+
just test-web
49+
```
50+
51+
## Security Warnings
52+
53+
These libraries are currently under development, have received no reviews or audit, and come with no guarantees whatsoever.
54+
55+
## License
56+
57+
All code in this workspace is licensed under either of
58+
59+
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
60+
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
61+
62+
at your option.
1663

64+
### Contribution
1765

66+
Unless you explicitly state otherwise, any contribution intentionally
67+
submitted for inclusion in the work by you, as defined in the Apache-2.0
68+
license, shall be dual licensed as above, without any additional terms or
69+
conditions.

docs/README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Website
1+
# WebZjs Doc Website
22

33
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
44

@@ -26,16 +26,4 @@ This command generates static content into the `build` directory and can be serv
2626

2727
### Deployment
2828

29-
Using SSH:
30-
31-
```
32-
$ USE_SSH=true yarn deploy
33-
```
34-
35-
Not using SSH:
36-
37-
```
38-
$ GIT_USER=<Your GitHub username> yarn deploy
39-
```
40-
41-
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
29+
Deployment to Github pages is automated via a [workflow](../.github/workflows/deploy-docs.yml)

docs/docs/intro.md

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,5 @@ sidebar_position: 1
44

55
# Tutorial Intro
66

7-
Let's discover **Docusaurus in less than 5 minutes**.
7+
TODO!!
88

9-
## Getting Started
10-
11-
Get started by **creating a new site**.
12-
13-
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14-
15-
### What you'll need
16-
17-
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
18-
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19-
20-
## Generate a new site
21-
22-
Generate a new Docusaurus site using the **classic template**.
23-
24-
The classic template will automatically be added to your project after you run the command:
25-
26-
```bash
27-
npm init docusaurus@latest my-website classic
28-
```
29-
30-
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
31-
32-
The command also installs all necessary dependencies you need to run Docusaurus.
33-
34-
## Start your site
35-
36-
Run the development server:
37-
38-
```bash
39-
cd my-website
40-
npm run start
41-
```
42-
43-
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44-
45-
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
46-
47-
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.

docs/docs/tutorial-basics/_category_.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/docs/tutorial-basics/congratulations.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/docs/tutorial-basics/create-a-blog-post.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/docs/tutorial-basics/create-a-document.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/docs/tutorial-basics/create-a-page.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/docs/tutorial-basics/deploy-your-site.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)