@redocly/theme 0.27.3 → 0.27.4
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.
|
@@ -14,11 +14,12 @@ const LastUpdated_1 = require("../../components/LastUpdated/LastUpdated");
|
|
|
14
14
|
const hooks_1 = require("../../hooks");
|
|
15
15
|
const Breadcrumbs_1 = require("../../components/Breadcrumbs");
|
|
16
16
|
function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, lastModified, nextPage, prevPage, className, }) {
|
|
17
|
+
var _a;
|
|
17
18
|
const { markdown } = (0, hooks_1.useThemeConfig)();
|
|
18
19
|
const { editPage: themeEditPage } = markdown || {};
|
|
19
20
|
const mergedConf = editPage ? Object.assign(Object.assign({}, themeEditPage), editPage) : undefined;
|
|
20
21
|
return (react_1.default.createElement(PageWrapper_1.PageWrapper, { "data-component-name": "Markdown/MarkdownLayout", className: className },
|
|
21
|
-
react_1.default.createElement(ContainerWrapper_1.ContainerWrapper, { withToc:
|
|
22
|
+
react_1.default.createElement(ContainerWrapper_1.ContainerWrapper, { withToc: !((_a = markdown === null || markdown === void 0 ? void 0 : markdown.toc) === null || _a === void 0 ? void 0 : _a.hide) },
|
|
22
23
|
react_1.default.createElement(Breadcrumbs, null),
|
|
23
24
|
react_1.default.createElement(LayoutTop, null,
|
|
24
25
|
lastModified && react_1.default.createElement(LastUpdated_1.LastUpdated, { lastModified: new Date(lastModified) }),
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ export function MarkdownLayout({
|
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
44
|
<PageWrapper data-component-name="Markdown/MarkdownLayout" className={className}>
|
|
45
|
-
<ContainerWrapper withToc={
|
|
45
|
+
<ContainerWrapper withToc={!markdown?.toc?.hide}>
|
|
46
46
|
<Breadcrumbs />
|
|
47
47
|
<LayoutTop>
|
|
48
48
|
{lastModified && <LastUpdated lastModified={new Date(lastModified)} />}
|