Skip to content

Commit c90bfbf

Browse files
committed
add installation & usage section to each sub package README
1 parent 0a5cca2 commit c90bfbf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tasks/sync_packages.js

+15
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ packagesSpecs.forEach(function(d) {
6868
'',
6969
'For more info on plotly.js, go to https://github.com/plotly/plotly.js',
7070
'',
71+
'## Installation',
72+
'',
73+
'```',
74+
'npm install ' + d.name,
75+
'```',
76+
'## Usage',
77+
'',
78+
'```js',
79+
'// ES6 module',
80+
'import Plotly from \'' + d.name + '\';',
81+
'',
82+
'// CommonJS',
83+
'var Plotly = require(\'' + d.name + '\');',
84+
'```',
85+
'',
7186
'## Copyright and license',
7287
'',
7388
'Code and documentation copyright 2018 Plotly, Inc.',

0 commit comments

Comments
 (0)