Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit efc7269

Browse files
committed
docs site
1 parent a33ae69 commit efc7269

30 files changed

+89
-2
lines changed

bin/src/deps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function readAll(deps, config, resolve) {
2222
if (!deps.length) return resolve(config);
2323
var dep = deps.splice(0, 1)[0],
2424
current = config.dependencies[dep.name];
25-
if (typeof(current) === 'string') return readAll(deps, config, resolve);
2625
current = current || {};
26+
if (current.origin) return readAll(deps, config, resolve);
2727

2828
readFile(`${config.node_modules}/${dep.name}/package.json`, 'utf-8', (error, text) => {
2929
if (error) handleError(error, true);

docs/icons/android-icon-144x144.png

12.3 KB
Loading

docs/icons/android-icon-192x192.png

17.1 KB
Loading

docs/icons/android-icon-36x36.png

3.04 KB
Loading

docs/icons/android-icon-48x48.png

3.79 KB
Loading

docs/icons/android-icon-72x72.png

5.75 KB
Loading

docs/icons/android-icon-96x96.png

7.44 KB
Loading

docs/icons/apple-icon-114x114.png

9.16 KB
Loading

docs/icons/apple-icon-120x120.png

9.74 KB
Loading

docs/icons/apple-icon-144x144.png

12.3 KB
Loading

docs/icons/apple-icon-152x152.png

13.2 KB
Loading

docs/icons/apple-icon-180x180.png

17.4 KB
Loading

docs/icons/apple-icon-57x57.png

4.68 KB
Loading

docs/icons/apple-icon-60x60.png

4.96 KB
Loading

docs/icons/apple-icon-72x72.png

5.75 KB
Loading

docs/icons/apple-icon-76x76.png

6.12 KB
Loading

docs/icons/apple-icon-precomposed.png

17.6 KB
Loading

docs/icons/apple-icon.png

17.6 KB
Loading

docs/icons/browserconfig.xml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>

docs/icons/favicon-16x16.png

1.54 KB
Loading

docs/icons/favicon-32x32.png

2.64 KB
Loading

docs/icons/favicon-96x96.png

7.44 KB
Loading

docs/icons/favicon.ico

1.12 KB
Binary file not shown.

docs/icons/manifest.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "App",
3+
"icons": [
4+
{
5+
"src": "\/android-icon-36x36.png",
6+
"sizes": "36x36",
7+
"type": "image\/png",
8+
"density": "0.75"
9+
},
10+
{
11+
"src": "\/android-icon-48x48.png",
12+
"sizes": "48x48",
13+
"type": "image\/png",
14+
"density": "1.0"
15+
},
16+
{
17+
"src": "\/android-icon-72x72.png",
18+
"sizes": "72x72",
19+
"type": "image\/png",
20+
"density": "1.5"
21+
},
22+
{
23+
"src": "\/android-icon-96x96.png",
24+
"sizes": "96x96",
25+
"type": "image\/png",
26+
"density": "2.0"
27+
},
28+
{
29+
"src": "\/android-icon-144x144.png",
30+
"sizes": "144x144",
31+
"type": "image\/png",
32+
"density": "3.0"
33+
},
34+
{
35+
"src": "\/android-icon-192x192.png",
36+
"sizes": "192x192",
37+
"type": "image\/png",
38+
"density": "4.0"
39+
}
40+
]
41+
}

docs/icons/ms-icon-144x144.png

12.3 KB
Loading

docs/icons/ms-icon-150x150.png

13.3 KB
Loading

docs/icons/ms-icon-310x310.png

37.9 KB
Loading

docs/icons/ms-icon-70x70.png

5.63 KB
Loading

docs/require.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1414

15-
## Overview
15+
## view-require
1616

1717
The ``view-require`` executable is useful for creating a ``d3-require`` file with dependencies matching the ``package.json`` file of your module.
1818

@@ -21,6 +21,30 @@ For help on how to use the script in terminal
2121
view-require -h
2222
```
2323

24+
### config
25+
26+
It is possible to specify a ``require.config.js`` file of the form:
27+
```javascript
28+
29+
module.exports = {
30+
out: 'build/xxxx.js',
31+
prepend: [
32+
'whatwg-fetch/fetch.js'
33+
],
34+
append: [
35+
'build/require.js'
36+
],
37+
dependencies: {
38+
"ace-builds": {
39+
main: "src-min/ace.js"
40+
},
41+
handlebars: {
42+
main: 'dist/handlebars.min.js'
43+
}
44+
}
45+
};
46+
```
47+
2448
## d3-require.js
2549

2650
The d3-require.js javascript file contains a variation of [d3-require](https://github.com/d3/d3-require)

siteConfig.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
module.exports = {
3+
algolia: {
4+
apiKey: process.env.ALGOLIA_API_KEY
5+
},
6+
markdown: {
7+
paths: [
8+
{
9+
slug: "docs",
10+
path: "docs/"
11+
},
12+
{
13+
slug: "",
14+
path: "/"
15+
}
16+
],
17+
plugins: {
18+
}
19+
}
20+
};

0 commit comments

Comments
 (0)