mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Document column macro
This commit is contained in:
parent
8dd83bdf62
commit
78f7666697
@ -443,7 +443,7 @@ By default, mark provides several built-in templates and macros:
|
|||||||
|
|
||||||
* template: `ac:panel` to display a block of text within a customisable panel
|
* template: `ac:panel` to display a block of text within a customisable panel
|
||||||
- Title: Panel title (optional)
|
- Title: Panel title (optional)
|
||||||
- Body: Body text of the panel
|
- Body: Body text of the panel
|
||||||
- BGColor: Background Color
|
- BGColor: Background Color
|
||||||
- TitleBGColor: Background color of the title bar
|
- TitleBGColor: Background color of the title bar
|
||||||
- TitleColor: Text color of the title
|
- TitleColor: Text color of the title
|
||||||
@ -461,6 +461,10 @@ By default, mark provides several built-in templates and macros:
|
|||||||
* template: `ac:pagetreesearch` to add a search box to your Confluence page.
|
* template: `ac:pagetreesearch` to add a search box to your Confluence page.
|
||||||
- Root: Name of the root page whose hierarchy of pages will be searched by this macro. If this not specified, the root page is the current page.
|
- Root: Name of the root page whose hierarchy of pages will be searched by this macro. If this not specified, the root page is the current page.
|
||||||
|
|
||||||
|
* template: `ac:column` To be used with the section macro to define the columns in a page.
|
||||||
|
- Width: Width of the column
|
||||||
|
- Body: The content of the column
|
||||||
|
|
||||||
* macro `@{...}` to mention user by name specified in the braces.
|
* macro `@{...}` to mention user by name specified in the braces.
|
||||||
|
|
||||||
## Template & Macros Usecases
|
## Template & Macros Usecases
|
||||||
|
@ -336,7 +336,7 @@ func templates(api *confluence.API) (*template.Template, error) {
|
|||||||
/* https://confluence.atlassian.com/conf59/user-profile-macro-792499223.html */
|
/* https://confluence.atlassian.com/conf59/user-profile-macro-792499223.html */
|
||||||
|
|
||||||
`ac:profile`: text(
|
`ac:profile`: text(
|
||||||
`{{ with .Name | user }}`,
|
`{{ with .Name | user }}`,
|
||||||
`<ac:structured-macro ac:name="profile">`,
|
`<ac:structured-macro ac:name="profile">`,
|
||||||
`<ac:parameter ac:name="user">`,
|
`<ac:parameter ac:name="user">`,
|
||||||
`{{ if .AccountID }}`,
|
`{{ if .AccountID }}`,
|
||||||
@ -431,7 +431,7 @@ func templates(api *confluence.API) (*template.Template, error) {
|
|||||||
`ac:column`: text(
|
`ac:column`: text(
|
||||||
`<ac:structured-macro ac:name="column">`,
|
`<ac:structured-macro ac:name="column">`,
|
||||||
`<ac:parameter ac:name="width">{{ or .Width "" }}</ac:parameter>`,
|
`<ac:parameter ac:name="width">{{ or .Width "" }}</ac:parameter>`,
|
||||||
`<ac:rich-text-body>{{ or .Body "" }}</ac:rich-text-body>`,
|
`<ac:rich-text-body>{{ or .Body "" }}</ac:rich-text-body>`,
|
||||||
`</ac:structured-macro>`,
|
`</ac:structured-macro>`,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user