Skip to content

Commit b855deb

Browse files
committed
Fix missing documentation.
Signed-off-by: Frank Endres <[email protected]>
1 parent 7cbe89a commit b855deb

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
5555
-- top level
5656
('title', 'Text header at the top of the list of cards.', 'TEXT', TRUE, TRUE),
5757
('description', 'A short paragraph displayed below the title.', 'TEXT', TRUE, TRUE),
58-
58+
('description_md', 'A short paragraph displayed below the title - formatted using markdown.', 'TEXT', TRUE, TRUE),
5959
('columns', 'The number of columns in the grid of cards. This is just a hint, the grid will adjust dynamically to the user''s screen size, rendering fewer columns if needed to fit the contents.', 'INTEGER', TRUE, TRUE),
6060
-- item level
6161
('title', 'Name of the card, displayed at the top.', 'TEXT', FALSE, FALSE),
@@ -219,7 +219,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
219219
('title', 'A name to display at the top of the form. It will be displayed in a larger font size at the top of the form.', 'TEXT', TRUE, TRUE),
220220
('validate', 'The text to display in the button at the bottom of the form that submits the values.', 'TEXT', TRUE, TRUE),
221221
-- item level
222-
('type', 'The type of input to use: text for a simple text field, number for field that accepts only numbers, checkbox or radio for a button that is part of a group specified in the ''name'' parameter. This is set to "text" by default.', 'TEXT', FALSE, TRUE),
222+
('type', 'The type of input to use: text for a simple text field, textarea for a multi-line text input control, number for field that accepts only numbers, checkbox or radio for a button that is part of a group specified in the ''name'' parameter. This is set to "text" by default.', 'TEXT', FALSE, TRUE),
223223
('name', 'The name of the input field, that you can use in the target page to get the value the user entered for the field.', 'TEXT', FALSE, FALSE),
224224
('label', 'A friendly name for the text field to show to the user.', 'TEXT', FALSE, TRUE),
225225
('placeholder', 'A placeholder text that will be shown in the field when is is empty.', 'TEXT', FALSE, TRUE),
@@ -435,4 +435,4 @@ INSERT INTO example(component, description, properties) VALUES
435435
"font": "Poppins",
436436
"icon": "book",
437437
"footer": "Official [SQLPage](https://sql.ophir.dev) documentation"
438-
}]'));
438+
}]'));

examples/official-site/sqlpage/migrations/02_hero_component.sql

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ FROM (
3131
TRUE,
3232
TRUE
3333
),
34+
(
35+
'description_md',
36+
'A description of the page. Displayed below the title, in smaller characters and slightly greyed out - formatted using markdown.',
37+
'TEXT',
38+
TRUE,
39+
TRUE
40+
),
3441
(
3542
'image',
3643
'The URL of an image to display next to the page title.',
@@ -59,6 +66,7 @@ FROM (
5966
TRUE,
6067
TRUE
6168
),
69+
-- item level
6270
(
6371
'title',
6472
'The name of a single feature section highlighted by this hero.',
@@ -73,12 +81,26 @@ FROM (
7381
FALSE,
7482
TRUE
7583
),
84+
(
85+
'description_md',
86+
'Description of the feature section - formatted using markdown.',
87+
'TEXT',
88+
FALSE,
89+
TRUE
90+
),
7691
(
7792
'icon',
7893
'Icon of the feature section.',
7994
'TEXT',
8095
FALSE,
8196
TRUE
97+
),
98+
(
99+
'link',
100+
'An URL to which the user should be taken when they click on the section title.',
101+
'TEXT',
102+
FALSE,
103+
TRUE
82104
)
83105
) x;
84106
INSERT INTO example(component, description, properties)
@@ -108,4 +130,4 @@ VALUES (
108130
'{"title": "Beautiful", "description": "Uses pre-defined components that look professional.", "icon": "eye", "color": "green", "link": "/"},' ||
109131
'{"title": "Easy", "description_md": "You can teach yourself enough SQL to use [**SQLPage**](https://sql.ophir.dev) in a weekend.", "icon": "sofa", "color": "blue", "link": "/"}' || ']'
110132
)
111-
);
133+
);

0 commit comments

Comments
 (0)