Skip to content

Commit

Permalink
Remove unnecessary info
Browse files Browse the repository at this point in the history
  • Loading branch information
jingting1412 committed Feb 25, 2024
1 parent 91c2b6d commit 987ee38
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 33 deletions.
4 changes: 1 addition & 3 deletions docs/userGuide/syntax/dates.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ Thu 22/08
<div id="short" class="d-none">

<box><span>
{{ njcode('"2019-08-12" | date("DD.MM.YYYY", 10)') }} <!-- 22.08.2019 --><br/>
{{ njcode('baseDate | date(format, daysToAdd)') }} <!-- 22.08.2019 --><br/>
</span></box>

{{ "2019-08-12" | date("DD.MM.YYYY", 10) }}
</div>
30 changes: 4 additions & 26 deletions docs/userGuide/syntax/pageNavigationMenus.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ You can specify multiple `<page-nav-print />` components in a page and they do n
{{ icon_example }}
In the page that you want to have page navigation printed (i.e. to serve as a table of content when viewed on PDFs), use the `<page-nav-print />` component to position the pageNav like so:

<div id="short" class="indented">

```html
<frontmatter>
pageNav: 2
Expand All @@ -47,6 +49,8 @@ In the page that you want to have page navigation printed (i.e. to serve as a ta
Content of the page...
```

</div>

To view the pageNav on print, open the print preview of the page using the browser's print function.

<box type="info" seamless>
Expand All @@ -57,32 +61,6 @@ You can try it out by going to our [CLI Commands page]({{baseUrl}}/userGuide/cli

</panel>

<div id="short" class="indented">

{{ icon_example }}
In the page that you want to have page navigation, you may show only `<h1>` and `<h2>` headings in the pageNav, and set a custom pageNav title like so:

```html
<frontmatter>
pageNav: 2
pageNavTitle: "Chapters of This Page"
</frontmatter>
```

Then, in your [layout file]({{baseUrl}}/userGuide/tweakingThePageStructure.html#layouts), use the `<page-nav />` component to position the pageNav.

{% if not doNotShowPageNav %}
{{ icon_example }} <trigger for="modal:page-nav-example" trigger="click">Example usage of the `<page-nav />` component</trigger>

<modal header="Using the `pageNav` variable in a layout" id="modal:page-nav-example" large>
<include src="../tweakingThePageStructure.md#layout-code-snippet">
<variable name="highlightLines">54</variable>
</include>
</modal>
{% endif %}

</div>

</div>

<div id="examples" class="d-none">
Expand Down
20 changes: 17 additions & 3 deletions docs/userGuide/syntax/siteNavigationMenus.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ Steps to add a siteNav:
2. Include it under a `<site-nav>` element.
3. (Optional) To make siteNav accessible on smaller screens, you can use the `<site-nav-button />` component in the [navbar]({{baseUrl}}/userGuide/components/navigation.html#navbars).

<div id="short">

<include src="codeAndOutput.md" boilerplate >
<include src="codeAndOutput.md" boilerplate >
<variable name="code">
<site-nav>
* [**Getting Started**]({{baseUrl}}/userGuide/gettingStarted.html)
Expand All @@ -25,7 +24,6 @@ Steps to add a siteNav:
</variable>
</include>

</div>

MarkBind has styles nested lists with additional padding and smaller text sizes up to **4** nesting levels.
Beyond that, you'd have to include your own styles.
Expand All @@ -37,3 +35,19 @@ You can **append the `:expanded:` to a <tooltip content="a menu item with sub me
</div>

<div id="examples"></div>

<div id="short" class="d-none">

```html
<site-nav>
* [**Getting Started**]({{baseUrl}}/userGuide/gettingStarted.html)
* **Authoring Contents** :expanded:
* [Overview]({{baseUrl}}/userGuide/authoringContents.html)
* [Adding Pages]({{baseUrl}}/userGuide/addingPages.html)
* [MarkBind Syntax Overview]({{baseUrl}}/userGuide/markBindSyntaxOverview.html)
* [Formatting Contents]({{baseUrl}}/userGuide/formattingContents.html)
* [Using Components]({{baseUrl}}/userGuide/usingComponents.html)
</site-nav>
```

</div>
2 changes: 1 addition & 1 deletion docs/userGuide/syntaxReference.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% from "userGuide/syntax/fullSyntaxSet.njk" import syntax_topics as topics %}

{% macro show_topic(filename, heading) %}
<panel type="seamless" no-close>
<panel type="seamless" no-close popup-url="{{ filename }}.html">
<div slot="header">
<markdown>##### **{{ heading }}**</markdown>
<include src="syntax/{{ filename }}.md#short" />
Expand Down

0 comments on commit 987ee38

Please sign in to comment.