This repository was archived by the owner on Mar 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +45
-8
lines changed Expand file tree Collapse file tree 2 files changed +45
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
FIXME: fill out a description of your tool here! :)
4
4
5
+ ## Component user docs: adding this component to your webpage
6
+
7
+ Hey! If you'd like to use this component on your webpage, please do the following:
8
+
9
+ ### In the ` <head> ` , add:
10
+ ``` html
11
+ <!-- the library for the webcomponent -->
12
+ <script src =" dist/bundle.js" type =" module" ></script >
13
+ ```
14
+
15
+ This links to the relevant scripts to define the component and fetch data.
16
+
17
+ ### In the ` <body> `
18
+
19
+ Where you want your WebComponent to appear, add the following:
20
+
21
+ ``` html
22
+ <<%= toolNameComputer %>
23
+ geneId="BRCA1">
24
+ </<%= toolNameComputer %>>
25
+ ```
26
+
27
+ Some notes on usage:
28
+
29
+ - ` geneId ` value must must be an identifier for a gene. You can replace it
30
+ with your favourite gene id instead!
31
+
32
+
5
33
## Licence
6
34
<%= licence %>
7
35
36
+ ## Developer docs
37
+
8
38
### To set up locally for development
9
39
10
40
1 . Clone the repo
@@ -42,5 +72,6 @@ To serve your page at [http://localhost:3456](http://localhost:3456):
42
72
``` bash
43
73
npm run server
44
74
```
45
-
46
- To see a demo component implemented similarly to this component, visit
75
+ #### Example comonent
76
+ To see a demo component implemented similarly to this component, visit
77
+ [ biojs-webcomponent-prototype] ( https://github.com/yochannah/biojs-webcomponent-prototype ) .
Original file line number Diff line number Diff line change @@ -26,12 +26,18 @@ <h1><%= title %> demo pages</h1>
26
26
27
27
< a href ="examples/index.html "> Visit the example demo page.</ a >
28
28
< p > You can add links to more demos here if needed.</ p >
29
- < p >
30
- To learn more about creating BioJS components, visit
31
- < a href ="http://training.biojs.net "> the BioJS training pages</ a > ,
32
- and to browse BioJS components, visit
33
- < a href ="http://biojs.net "> the BioJS Registry</ a > .
34
- </ p >
29
+ < h2 > </ h2 >
30
+ < p > </ p >
31
+ < h2 > Learn more about BioJS</ h2 >
32
+ < ul >
33
+ < li > To learn more about creating BioJS components, visit
34
+ < a href ="http://training.biojs.net "> the BioJS training pages</ a > </ li >
35
+ < li > View a
36
+ < a href ="https://github.com/yochannah/biojs-webcomponent-prototype ">
37
+ demo biojs webcomponent example</ a > you could emulate.</ li >
38
+ < li > To browse BioJS components, visit
39
+ < a href ="http://biojs.net "> the BioJS Registry</ a > </ li > .
40
+ </ ul >
35
41
36
42
37
43
</ body >
You can’t perform that action at this time.
0 commit comments