Skip to content

Commit 2d4c443

Browse files
committed
docs: Fix docma app base path (again)
1 parent 1132494 commit 2d4c443

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/js/docma-web.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.

scripts/docs.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const Docma = require('docma');
22
const pkg = require('../package.json');
3+
const base = '/node-cocoadialog';
34

45
Docma.create()
56
.build({
@@ -14,7 +15,7 @@ Docma.create()
1415
],
1516
dest: './docs',
1617
app: {
17-
base: '/node-cocoadialog',
18+
base: base,
1819
title: `${pkg.name} (node.js)`,
1920
routing: 'query',
2021
entrance: 'content:guide'
@@ -38,17 +39,17 @@ Docma.create()
3839
navItems: [
3940
{
4041
label: 'Getting Started',
41-
href: '/',
42+
href: base,
4243
iconClass: 'ico-target4'
4344
},
4445
{
4546
label: 'API',
46-
href: '/?api',
47+
href: `${base}/?api`,
4748
iconClass: 'ico-book'
4849
},
4950
{
5051
label: 'Examples',
51-
href: '/?content=examples',
52+
href: `${base}/?content=examples`,
5253
iconClass: 'ico-mouse-pointer'
5354
},
5455
{

0 commit comments

Comments
 (0)