Skip to content

Commit d5b928e

Browse files
committed
update siteNav to code block
1 parent 88ff2de commit d5b928e

File tree

2 files changed

+30
-35
lines changed

2 files changed

+30
-35
lines changed

docs/userGuide/syntax/pageHead.mbdf

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ To specify that you want to insert `myCustomLinks.md` into the `<head>` of `myPa
3232

3333
{{ icon_example }} Here's how you can force the line `<script ... > ... </script>` to be inserted at the top of the `<head>` section.
3434

35-
```html {highlight-lines="1,3"}
35+
```html {.no-line-numbers} {highlight-lines="1,3"}
3636
<head-top>
37-
<script src="`{{ baseUrl }}`/js/myCustomScript.js"></script>
37+
<script src="`{{ baseUrl }}`/js/myCustomScript.js"></script>
3838
</head-top>
3939
<link rel="stylesheet" href="`{{ baseUrl }}`/css/main.css">
4040
<link rel="stylesheet" href="`{{ baseUrl }}`/css/extra.css">
@@ -58,15 +58,13 @@ To specify that you want to insert `myCustomLinks.md` into the `<head>` of `myPa
5858

5959
`_markbind/head/myCustomLinks.md`:
6060

61-
<box>
62-
63-
**`<head-top>`**<br>
64-
&nbsp;&nbsp;`<script src="`{{ showBaseUrlCode }}`/js/myCustomScript.js"></script>`<br>
65-
**`</head-top>`**<br>
66-
`<link rel="stylesheet" href="`{{ showBaseUrlCode }}`/css/main.css">`<br>
67-
`<link rel="stylesheet" href="`{{ showBaseUrlCode }}`/css/extra.css">`
68-
69-
</box>
61+
```html{.no-line-numbers}
62+
<head-top>
63+
<script src="`{{ showBaseUrlCode }}`/js/myCustomScript.js"></script>
64+
</head-top>
65+
<link rel="stylesheet" href="`{{ showBaseUrlCode }}`/css/main.css">
66+
<link rel="stylesheet" href="`{{ showBaseUrlCode }}`/css/extra.css">
67+
```
7068

7169
```html
7270
<frontmatter>

docs/userGuide/syntax/siteNavigationMenus.mbdf

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,17 @@ You may have additional HTML and Markdown content in a <tooltip content="the fil
7272

7373
{{ icon_example }} A siteNav code using a `<navigation>` tag.
7474

75-
<box>
76-
77-
<code>
78-
# Site Map<br>
79-
<strong><<span></span>navigation></strong><br>
80-
* [:house: Home]({{ showBaseUrlText }}/index.html)<br>
81-
* Docs<br>
82-
&nbsp;&nbsp;* [User Guide]({{ showBaseUrlText }}/ug.html)<br>
83-
&nbsp;&nbsp;* [Dev Guide]({{ showBaseUrlText }}/dg.html)<br>
84-
* [Search]({{ showBaseUrlText }}/search.html)<br>
85-
<strong><<span></span>/navigation></strong><br>
86-
</code>
87-
</box>
75+
```{.no-line-numbers}
76+
# Site Map
77+
<navigation>
78+
* [:house: Home]({{ baseUr }}/index.html)
79+
* Docs
80+
* [User Guide]({{ baseUrl }}/ug.html)
81+
* [Dev Guide]({{ baseUrl }}/dg.html)
82+
* [Search]({{ baseUrl }}/search.html)
83+
</navigation>
84+
```
85+
8886
</div>
8987

9088
More than one siteNav file can be in `_markbind/navigation/` directory but a page may not have more than one siteNav.
@@ -98,17 +96,16 @@ If you wish to use a Layout but exclude its navigation file, specify `siteNav: n
9896

9997
<span id="short" class="d-none">
10098

101-
<code>
102-
# Site Map<br>
103-
<strong><<span></span>navigation></strong><br>
104-
* [:house: Home]({{ showBaseUrlText }}/index.html)<br>
105-
* Docs :expanded:<br>
106-
&nbsp;&nbsp;* [User Guide]({{ showBaseUrlText }}/ug.html)<br>
107-
&nbsp;&nbsp;* [Dev Guide]({{ showBaseUrlText }}/dg.html)<br>
108-
* [Search]({{ showBaseUrlText }}/search.html)<br>
109-
<strong><<span></span>/navigation></strong><br>
110-
</code>
111-
</box>
99+
```{.no-line-numbers}
100+
# Site Map
101+
<navigation>
102+
* [:house: Home]({{ baseUrl }}/index.html)
103+
* Docs :expanded:
104+
* [User Guide]({{ baseUrl }}/ug.html)
105+
* [Dev Guide]({{ baseUrl }}/dg.html)
106+
* [Search]({{ baseUrl }}/search.html)
107+
</navigation>
108+
```
112109

113110
```html
114111
<frontmatter>

0 commit comments

Comments
 (0)