@brillout/docpress 0.6.21-commit-f22016e → 0.6.21-commit-e35fa3b
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.
|
@@ -214,15 +214,6 @@ function getHeadingsResolved(config: {
|
|
|
214
214
|
const headingsWithoutBreadcrumb: Omit<HeadingResolved, 'linkBreadcrumb'>[] = config.headings.map(
|
|
215
215
|
(heading: HeadingDefinition) => {
|
|
216
216
|
const titleInNav = heading.titleInNav || heading.title
|
|
217
|
-
/* TODO: remove this and all realted code
|
|
218
|
-
let titleInNavParsed: JSX.Element
|
|
219
|
-
titleInNavParsed = parseTitle(titleInNav)
|
|
220
|
-
if ('titleEmoji' in heading) {
|
|
221
|
-
assert(heading.titleEmoji)
|
|
222
|
-
titleInNavParsed = withEmoji(heading.titleEmoji, titleInNavParsed)
|
|
223
|
-
}
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
217
|
const headingResolved: Omit<HeadingResolved, 'linkBreadcrumb'> = {
|
|
227
218
|
...heading,
|
|
228
219
|
titleInNav,
|
|
@@ -175,14 +175,6 @@ function getPageSectionsResolved(pageContext, activeHeading) {
|
|
|
175
175
|
function getHeadingsResolved(config) {
|
|
176
176
|
var headingsWithoutBreadcrumb = config.headings.map(function (heading) {
|
|
177
177
|
var titleInNav = heading.titleInNav || heading.title;
|
|
178
|
-
/* TODO: remove this and all realted code
|
|
179
|
-
let titleInNavParsed: JSX.Element
|
|
180
|
-
titleInNavParsed = parseTitle(titleInNav)
|
|
181
|
-
if ('titleEmoji' in heading) {
|
|
182
|
-
assert(heading.titleEmoji)
|
|
183
|
-
titleInNavParsed = withEmoji(heading.titleEmoji, titleInNavParsed)
|
|
184
|
-
}
|
|
185
|
-
*/
|
|
186
178
|
var headingResolved = __assign(__assign({}, heading), { titleInNav: titleInNav });
|
|
187
179
|
return headingResolved;
|
|
188
180
|
});
|
package/dist/types/Heading.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { HeadingResolved };
|
|
|
2
2
|
export { HeadingDetachedResolved };
|
|
3
3
|
export { HeadingDetachedDefinition };
|
|
4
4
|
export { HeadingDefinition };
|
|
5
|
-
import type { EmojiName } from '../utils/server';
|
|
6
5
|
type HeadingResolved = {
|
|
7
6
|
url?: null | string;
|
|
8
7
|
level: number;
|
|
@@ -32,7 +31,6 @@ type IsCategory = {
|
|
|
32
31
|
};
|
|
33
32
|
type HeadingDefinitionLevel = ({
|
|
34
33
|
level: 1;
|
|
35
|
-
titleEmoji: EmojiName;
|
|
36
34
|
} & IsCategory) | ({
|
|
37
35
|
level: 4;
|
|
38
36
|
} & IsCategory) | {
|
package/package.json
CHANGED