You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/userGuide/deployingTheSite.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -20,19 +20,19 @@
20
20
</div>
21
21
22
22
## Generic steps for deploying a MarkBind site
23
-
24
-
1. Set the [`baseUrl` property of the `site.json` file](siteJsonFile.html#baseurl) to match the deploy location.
25
-
1. (Optional) Use the [`markbind serve` command](cliCommands.html#serve-command) to stage the site locally and confirm the contents are as expected.
26
-
1. Use the [`markbind build` command](cliCommands.html#build-command) to generate the site from source files. That command puts the generated site files in a directory named `_site` (you can change the output directory using parameters supplied to the command).
27
-
1. Upload the site files to the Web server. The sections below explain how to automate this step if you are deploying to some online platforms.
23
+
* Set the [`baseUrl` property of the `site.json` file](siteJsonFile.html#baseurl) to match the deploy location. { text="Step 1:" }
24
+
* (Optional) Use the [`markbind serve` command](cliCommands.html#serve-command) to stage the site locally and confirm the contents are as expected. { text="Step 2:" }
25
+
* Use the [`markbind build` command](cliCommands.html#build-command) to generate the site from source files. That command puts the generated site files in a directory named `_site` (you can change the output directory using parameters supplied to the command). { text="Step 3:" }
26
+
* Upload the site files to the Web server. The sections below explain how to automate this step if you are deploying to some online platforms. { text="Step 4:" }
28
27
29
28
**Steps for deploying multiple MarkBind sites:**
30
29
31
-
1. Create multiple `site.json` files. Ensure that the [`baseUrl` property of each `site.json` file](siteJsonFile.html#baseurl) matches its deploy location.
32
-
1. (Optional) Use the [`markbind serve -s <file>` command](cliCommands.html#serve-command) to stage each site locally and confirm the contents are as expected.
33
-
1. For each site:
34
-
1. Use the [`markbind build -s <file>` command](cliCommands.html#build-command) to generate the site from source files.
35
-
1. Upload the site files to the Web server. The sections below explain how to automate this step if you are deploying to some online platforms.
* Ensure that the [`baseUrl` property of each `site.json` file](siteJsonFile.html#baseurl) matches its deploy location. { text="Step 1.1:" }
32
+
* (Optional) Use the [`markbind serve -s <file>` command](cliCommands.html#serve-command) to stage each site locally and confirm the contents are as expected. { text="Step 2:" }
33
+
* For each site: { text="Step 3:" }
34
+
* Use the [`markbind build -s <file>` command](cliCommands.html#build-command) to generate the site from source files. { text="Step 3.1:" }
35
+
* Upload the site files to the Web server. The sections below explain how to automate this step if you are deploying to some online platforms. { text="Step 3.2:" }
The customised icon appears for Item 2 but not for Item 1.1.
53
+
54
+
Hence, if you customize any item on a certain level, you must also **customize the first item on that level**. If not, the list will revert to its uncustomized form.
55
+
If you wish to remove the customization from the following levels, you can set `text` and/or `icon` to be an empty string `""`.
* Item 1 { icon="glyphicon-education" text="Only for this bullet" }
62
+
* Item 2 { icon="" }
63
+
</variable>
64
+
</include>
65
+
</box>
66
+
39
67
You can use any of the [icons](../formattingContents.html#icons) supported by MarkBind. If an item has a specified icon, that icon will be used for it and for subsequent items at that level.
40
68
69
+
Markdown can also be used in texts.
70
+
41
71
<boxtype=warningseamless>
42
-
If you customize any item on a certain level, you must also customize the first item on that level. If not, the list will revert to its uncustomized form.
72
+
You may need to add escape characters when using special characters for Markdown in text.
43
73
</box>
44
74
45
-
**You can adjust the icon's size by using the `i-size` attribute.**
75
+
**You can adjust the icon and text's size by using the `i-size`and `t-size`attribute respectively.**
You can utilize any [CSS size unit](https://www.w3schools.com/cssref/css_units.php).
59
100
60
101
**You can also use images as icons.**
@@ -72,19 +113,19 @@ You can utilize any [CSS size unit](https://www.w3schools.com/cssref/css_units.p
72
113
73
114
If either the `i-width` or the `i-height` of an image is not specified, the unspecified dimension will adjust to maintain the image's original aspect ratio. For example, for an image of size 800x600 (4:3), if `i-width` is set to 400px, its height will be 300px.
74
115
75
-
**The icon's appearance can be further customized by adding a `i-class` attribute.**
116
+
**The icon and text's appearance can be further customized by adding a `i-class`and `t-class`attribute respectively.**
@@ -104,9 +145,22 @@ If either the `i-width` or the `i-height` of an image is not specified, the unsp
104
145
105
146
<boxtype=tipseamless>
106
147
107
-
Similar to the `icon` attribute, other icon attributes such as `i-class`, `i-width`, `i-height`, `i-spacing` apply for subsequent list items at the same level, until they are overridden by the same attribute. For example, Item 2.3's `i-class` overrides Item 2.1's and applies up to Item 3.1.
148
+
Similar to the `icon` and `text` attribute, other icon attributes such as `i-class`, `i-width`, `i-height`, `i-spacing`, `t-size` and `t-class` apply for subsequent list items at the same level, until they are overridden by the same attribute. For example, Item 2.3's `i-class` overrides Item 2.1's and applies up to Item 3.1.
149
+
108
150
</box>
109
151
152
+
**The spacing between the icon and the content can be customized by using a `i-spacing` attribute.**
0 commit comments