@brillout/docpress 0.4.6 → 0.4.7
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/index.js +11 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61,17 +61,22 @@ function getTitle({
|
|
|
61
61
|
assert(hrefWithoutHash || urlHash);
|
|
62
62
|
}
|
|
63
63
|
let heading;
|
|
64
|
-
let linkIsOnSamePage;
|
|
64
|
+
let linkIsOnSamePage = false;
|
|
65
65
|
if (hrefWithoutHash) {
|
|
66
66
|
heading = findHeading(hrefWithoutHash, pageContext);
|
|
67
|
-
|
|
67
|
+
if (heading.url === pageContext.urlPathname) {
|
|
68
|
+
linkIsOnSamePage = true;
|
|
69
|
+
heading = pageContext.activeHeading;
|
|
70
|
+
}
|
|
68
71
|
} else {
|
|
69
72
|
assert(urlHash);
|
|
70
73
|
linkIsOnSamePage = true;
|
|
71
74
|
heading = pageContext.activeHeading;
|
|
72
75
|
}
|
|
73
76
|
assert(heading);
|
|
74
|
-
assert(heading === pageContext.
|
|
77
|
+
assert(linkIsOnSamePage === (heading.url === pageContext.urlPathname));
|
|
78
|
+
assert(linkIsOnSamePage === (heading.url === pageContext.activeHeading.url));
|
|
79
|
+
assert(linkIsOnSamePage === (heading === pageContext.activeHeading));
|
|
75
80
|
const breadcrumbs = [];
|
|
76
81
|
if (heading.parentHeadings) {
|
|
77
82
|
breadcrumbs.push(
|
|
@@ -266,6 +271,9 @@ var inlang_default = "/assets/inlang-GFRWND6X.png";
|
|
|
266
271
|
|
|
267
272
|
// src/components/Sponsors/sponsorsList.ts
|
|
268
273
|
var individuals = [
|
|
274
|
+
{
|
|
275
|
+
username: "royalswe"
|
|
276
|
+
},
|
|
269
277
|
{
|
|
270
278
|
username: "alexturpin"
|
|
271
279
|
},
|