WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c619651

Browse files
committed
Added help links to Layouts and Popups workshops.
1 parent 7d7f50b commit c619651

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/workshops/layout/ko/layoutsToolButton.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ToolButton, ViewManager, View } from "@paperbits/common/ui";
22

3-
const helpText = "<h1>Layouts</h1><p>Add or edit layouts. Layouts let you centralize common content (e.g., navigation bar, footer), which will be applied to pages. Each page is automatically matched with a layout based on the URL template.</p>";
3+
const helpText = "<p>Add or edit layouts. Layouts let you centralize common content (e.g., navigation bar, footer), which will be applied to pages. Each page is automatically matched with a layout based on the URL template.</p>";
44

55
export class LayoutsToolButton implements ToolButton {
66
public readonly iconClass: string = "paperbits-icon paperbits-layout-11-2";
@@ -14,7 +14,9 @@ export class LayoutsToolButton implements ToolButton {
1414

1515
const view: View = {
1616
heading: this.title,
17+
helpHeading: this.title,
1718
helpText: helpText,
19+
helpArticle: "/layouts",
1820
component: { name: "layouts" }
1921
};
2022

src/workshops/popups/ko/popupsToolButton.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ToolButton, ViewManager, View } from "@paperbits/common/ui";
22

3-
const helpText = `<h1>Popups</h1><p>Add or edit popups - floating windows shown on top of page content. It gets invoked and dismissed by user actions, like clicking or hovering over a link, button, map marker, etc.</p>`;
3+
const helpText = `<p>Add or edit popups - floating windows shown on top of page content. It gets invoked and dismissed by user actions, like clicking or hovering over a link, button, map marker, etc.</p>`;
44

55
export class PopupsToolButton implements ToolButton {
66
public readonly iconClass: string = "paperbits-icon paperbits-polaroid";
@@ -14,7 +14,9 @@ export class PopupsToolButton implements ToolButton {
1414

1515
const view: View = {
1616
heading: this.title,
17+
helpHeading: this.title,
1718
helpText: helpText,
19+
helpArticle: "/popups",
1820
component: { name: "popups" }
1921
};
2022

0 commit comments

Comments
 (0)