Skip to content

Commit 3099aee

Browse files
authored
Merge pull request #146 from moneytree/update-documentation
update documentation
2 parents 94dfb2d + a926047 commit 3099aee

Some content is hidden

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

57 files changed

+2160
-788
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Moneytree Link JavaScript SDK
22

3+
[![NPM Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fregistry.npmjs.org%2F%40moneytree%2Fmt-link-javascript-sdk&query=%24%5B'dist-tags'%5D%5B'latest'%5D&logo=npm&label=%40moneytree%2Fmt-link-javascript-sdk&color=14BF31)](https://www.npmjs.com/package/@moneytree/mt-link-javascript-sdk)
4+
35
This is a library for browser client to help you integrate Moneytree tools such as My Account and the Vault without having to do worry about the complex configurations.
46

5-
Read the [documentation](docs/README.md) for more information.
7+
## For SDK Users
8+
9+
Read the [documentation](https://moneytree.github.io/mt-link-javascript-sdk/) for more information.
10+
11+
## For SDK Maintainers
12+
13+
```bash
14+
yarn install
15+
yarn lint # runs eslint
16+
yarn test # runs all the tests
17+
yarn build # bundles the library
18+
```
19+
20+
There is a minimal sample application in the `sample` directory.
21+
22+
### Documentation
23+
24+
```bash
25+
yarn build:docs # bundles the documentation
26+
yarn start:docs # Serves the documentation
27+
```
28+
29+
We use [docsify](https://docsify.js.org/) to serve the documentation landing page (`docs/README.md`) and [typedoc](https://typedoc.org/) to generate the API documentation (`docs/types`).
30+
31+
### Publishing
32+
33+
```bash
34+
npm version
35+
# after merging the new version to master
36+
npm login
37+
npm publish
38+
```

docs/README.md

Lines changed: 94 additions & 320 deletions
Large diffs are not rendered by default.

docs/types/assets/highlight.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,64 @@
11
:root {
2+
--light-hl-0: #001080;
3+
--dark-hl-0: #9CDCFE;
4+
--light-hl-1: #000000;
5+
--dark-hl-1: #D4D4D4;
6+
--light-hl-2: #795E26;
7+
--dark-hl-2: #DCDCAA;
8+
--light-hl-3: #A31515;
9+
--dark-hl-3: #CE9178;
10+
--light-hl-4: #0000FF;
11+
--dark-hl-4: #569CD6;
12+
--light-hl-5: #008000;
13+
--dark-hl-5: #6A9955;
214
--light-code-background: #FFFFFF;
315
--dark-code-background: #1E1E1E;
416
}
517

618
@media (prefers-color-scheme: light) { :root {
19+
--hl-0: var(--light-hl-0);
20+
--hl-1: var(--light-hl-1);
21+
--hl-2: var(--light-hl-2);
22+
--hl-3: var(--light-hl-3);
23+
--hl-4: var(--light-hl-4);
24+
--hl-5: var(--light-hl-5);
725
--code-background: var(--light-code-background);
826
} }
927

1028
@media (prefers-color-scheme: dark) { :root {
29+
--hl-0: var(--dark-hl-0);
30+
--hl-1: var(--dark-hl-1);
31+
--hl-2: var(--dark-hl-2);
32+
--hl-3: var(--dark-hl-3);
33+
--hl-4: var(--dark-hl-4);
34+
--hl-5: var(--dark-hl-5);
1135
--code-background: var(--dark-code-background);
1236
} }
1337

1438
:root[data-theme='light'] {
39+
--hl-0: var(--light-hl-0);
40+
--hl-1: var(--light-hl-1);
41+
--hl-2: var(--light-hl-2);
42+
--hl-3: var(--light-hl-3);
43+
--hl-4: var(--light-hl-4);
44+
--hl-5: var(--light-hl-5);
1545
--code-background: var(--light-code-background);
1646
}
1747

1848
:root[data-theme='dark'] {
49+
--hl-0: var(--dark-hl-0);
50+
--hl-1: var(--dark-hl-1);
51+
--hl-2: var(--dark-hl-2);
52+
--hl-3: var(--dark-hl-3);
53+
--hl-4: var(--dark-hl-4);
54+
--hl-5: var(--dark-hl-5);
1955
--code-background: var(--dark-code-background);
2056
}
2157

58+
.hl-0 { color: var(--hl-0); }
59+
.hl-1 { color: var(--hl-1); }
60+
.hl-2 { color: var(--hl-2); }
61+
.hl-3 { color: var(--hl-3); }
62+
.hl-4 { color: var(--hl-4); }
63+
.hl-5 { color: var(--hl-5); }
2264
pre, code { background: var(--code-background); }

docs/types/assets/navigation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/types/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)