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 CHANGED
@@ -1388,7 +1388,7 @@ function parseChangelogEntry(filePath, options) {
1388
1388
  }),
1389
1389
  preview: generateChangelogPreview(markdownContent, 500, isMdx),
1390
1390
  previewImage,
1391
- urlPath: `/${options.changelogPath}/${slug}/index.html`,
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: `/${options.changelogPath}/${slug}/index.html`,
1488
+ urlPath: `${buildUrlPath(options.baseUrl, options.changelogPath, slug)}/index.html`,
1489
1489
  lastModified: dateString
1490
1490
  };
1491
1491
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docula",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Beautiful Website for Your Projects",
5
5
  "type": "module",
6
6
  "main": "./dist/docula.js",
@@ -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="/changelog/">&larr; Back to Changelog</a>
61
+ <a href="{{changelogUrl}}/">&larr; 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="/changelog/{{entry.slug}}/">{{entry.title}}</a>
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}}
@@ -49,7 +49,7 @@
49
49
 
50
50
  {{#if (gt github.releases.length 6)}}
51
51
  <div>
52
- <a class="release-btn" href="/changelog">
52
+ <a class="release-btn" href="{{changelogUrl}}/">
53
53
  Full Changelog
54
54
  <span>→</span>
55
55
  </a>
@@ -51,7 +51,7 @@
51
51
 
52
52
  {{#if (gt github.releases.length 6)}}
53
53
  <div>
54
- <a class="release-btn" href="/changelog">
54
+ <a class="release-btn" href="{{changelogUrl}}/">
55
55
  Full Changelog
56
56
  <span>→</span>
57
57
  </a>
@@ -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>
@@ -34,7 +34,7 @@
34
34
 
35
35
  {{#if (gt github.releases.length 6)}}
36
36
  <div>
37
- <a class="release-btn" href="{{changelogUrl}}">
37
+ <a class="release-btn" href="{{changelogUrl}}/">
38
38
  Full Changelog
39
39
  <span>&rarr;</span>
40
40
  </a>