Skip to content

Commit 6a90302

Browse files
committed
Serve docs from root path
1 parent a01c803 commit 6a90302

File tree

11 files changed

+5
-7
lines changed

11 files changed

+5
-7
lines changed
File renamed without changes.

docs/CNAME renamed to CNAME

File renamed without changes.
File renamed without changes.

docs/main.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const src = {
1313
}
1414

1515
const dist = {
16-
path: 'docs',
16+
path: 'static',
1717
name: {
1818
css: 'style',
1919
js: 'main'

docs/index.html renamed to index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
<meta name="og:site_name" content="microlink.js, Convert your links into beautiful previews.">
3232
<meta name="og:type" content="website">
3333
<link rel="canonical" href="https://microlink.js.org" />
34-
<link rel="stylesheet" href="style.min.css">
34+
<link rel="stylesheet" href="/static/style.min.css">
3535
</head>
3636

3737
<body>
3838
<div id="app"></div>
3939
</body>
40-
<script src="main.min.js"></script>
40+
<script src="/static/main.min.js"></script>
4141
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
4242
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
4343
<script src="//unpkg.com/docsify/lib/plugins/external-script.min.js"></script>

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"previsualization"
3232
],
3333
"devDependencies": {
34-
"concurrently": "latest",
3534
"docsify": "latest",
3635
"gulp": "latest",
3736
"gulp-autoprefixer": "latest",
@@ -53,7 +52,7 @@
5352
"bootstrap": "npm install && lerna bootstrap",
5453
"build": "gulp build",
5554
"build-packages": "lerna run build",
56-
"dev": "concurrently \"gulp\" \"docsify serve docs\"",
55+
"dev": "gulp",
5756
"lint": "standard-markdown && standard src",
5857
"precommit": "lint-staged",
5958
"pretest": "npm run lint",
File renamed without changes.

src/js/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
window.$docsify = {
22
name: 'microlink.js',
33
repo: 'microlinkhq/microlinkjs',
4-
homepage: 'https://rawgit.com/microlinkhq/microlinkjs/master/README.md',
54
subMaxLevel: 2,
65
executeScript: true,
76
auto2top: true,

static/main.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

0 commit comments

Comments
 (0)