docula 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docula.js +2 -2
- package/package.json +1 -1
- package/templates/classic/changelog-entry.hbs +1 -1
- package/templates/classic/changelog.hbs +1 -1
- package/templates/classic/includes/multipage/home.hbs +1 -1
- package/templates/classic/includes/singlepage/content.hbs +1 -1
- package/templates/modern/changelog.hbs +1 -1
- package/templates/modern/includes/header-bar.hbs +2 -2
- package/templates/modern/includes/home.hbs +1 -1
package/dist/docula.js
CHANGED
|
@@ -1388,7 +1388,7 @@ function parseChangelogEntry(filePath, options) {
|
|
|
1388
1388
|
}),
|
|
1389
1389
|
preview: generateChangelogPreview(markdownContent, 500, isMdx),
|
|
1390
1390
|
previewImage,
|
|
1391
|
-
urlPath:
|
|
1391
|
+
urlPath: `${buildUrlPath(options.baseUrl, options.changelogPath, slug)}/index.html`,
|
|
1392
1392
|
lastModified: fs5.statSync(filePath).mtime.toISOString().split("T")[0]
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
@@ -1485,7 +1485,7 @@ function convertReleaseToChangelogEntry(release, options) {
|
|
|
1485
1485
|
content: body,
|
|
1486
1486
|
generatedHtml: new Writr4(body, writrOptions4).renderSync(),
|
|
1487
1487
|
preview: generateChangelogPreview(body),
|
|
1488
|
-
urlPath:
|
|
1488
|
+
urlPath: `${buildUrlPath(options.baseUrl, options.changelogPath, slug)}/index.html`,
|
|
1489
1489
|
lastModified: dateString
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<main class="versions-container">
|
|
59
59
|
<div class="versions-content">
|
|
60
60
|
<div class="changelog-entry-nav">
|
|
61
|
-
<a href="/
|
|
61
|
+
<a href="{{changelogUrl}}/">← Back to Changelog</a>
|
|
62
62
|
</div>
|
|
63
63
|
<div class="changelog-entry changelog-entry-single">
|
|
64
64
|
<div class="changelog-entry-header">
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
{{#each entries as |entry|}}
|
|
63
63
|
<div class="changelog-entry">
|
|
64
64
|
<div class="changelog-entry-header">
|
|
65
|
-
<a class="changelog-entry-title" href="/
|
|
65
|
+
<a class="changelog-entry-title" href="{{@root.changelogUrl}}/{{entry.slug}}/">{{entry.title}}</a>
|
|
66
66
|
{{#if entry.tag}}
|
|
67
67
|
<span class="changelog-tag changelog-tag-{{entry.tagClass}}">{{entry.tag}}</span>
|
|
68
68
|
{{/if}}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{{#each entries as |entry|}}
|
|
18
18
|
<div class="changelog-entry">
|
|
19
19
|
<div class="changelog-entry-header">
|
|
20
|
-
<a class="changelog-entry-title" href="{{changelogUrl}}/{{entry.slug}}/">{{entry.title}}</a>
|
|
20
|
+
<a class="changelog-entry-title" href="{{@root.changelogUrl}}/{{entry.slug}}/">{{entry.title}}</a>
|
|
21
21
|
{{#if entry.tag}}
|
|
22
22
|
<span class="changelog-tag changelog-tag-{{entry.tagClass}}">{{entry.tag}}</span>
|
|
23
23
|
{{/if}}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</a>
|
|
22
22
|
{{/if}}
|
|
23
23
|
{{#if hasChangelog}}
|
|
24
|
-
<a class="header-bottom__item" href="{{changelogUrl}}" id="nav-changelog">
|
|
24
|
+
<a class="header-bottom__item" href="{{changelogUrl}}/" id="nav-changelog">
|
|
25
25
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"/><path d="M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"/><path d="M8 6v8"/></svg>
|
|
26
26
|
<span>Changelog</span>
|
|
27
27
|
</a>
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
</a>
|
|
81
81
|
{{/if}}
|
|
82
82
|
{{#if hasChangelog}}
|
|
83
|
-
<a class="mobile-nav__item" href="{{changelogUrl}}">
|
|
83
|
+
<a class="mobile-nav__item" href="{{changelogUrl}}/">
|
|
84
84
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"/><path d="M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"/><path d="M8 6v8"/></svg>
|
|
85
85
|
<span>Changelog</span>
|
|
86
86
|
</a>
|