Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/devGuide/design.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title">Design</variable>
{% set title = "Design" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "{{ title }}"
layout: devGuide
Expand Down
4 changes: 3 additions & 1 deletion docs/devGuide/devGuide.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title">Contributing</variable>
{% set title = "Contributing" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "{{ title }}"
layout: devGuide
Expand Down
4 changes: 3 additions & 1 deletion docs/devGuide/projectManagement.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title">Project management</variable>
{% set title = "Project management" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "{{ title }}"
layout: devGuide
Expand Down
4 changes: 3 additions & 1 deletion docs/devGuide/settingUp.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title">Setting up</variable>
{% set title = "Setting up" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "{{ title }}"
layout: devGuide
Expand Down
4 changes: 3 additions & 1 deletion docs/devGuide/styleGuides.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title">Appendix: Style guides</variable>
{% set title = "Appendix: Style guides" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "{{ title }}"
layout: devGuide
Expand Down
4 changes: 3 additions & 1 deletion docs/devGuide/workflow.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title">Workflow</variable>
{% set title = "Workflow" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "{{ title }}"
layout: devGuide
Expand Down
4 changes: 3 additions & 1 deletion docs/devGuide/writingPlugins.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title">Writing Plugins</variable>
{% set title = "Writing Plugins" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "{{ title }}"
layout: devGuide
Expand Down
5 changes: 3 additions & 2 deletions docs/userGuide/addingPages.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<variable name="title" id="title">Adding Pages</variable>
<variable name="filename">addingPages</variable>
{% set title = "Adding Pages" %}
{% set filename = "addingPages" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }}"
Expand Down
4 changes: 3 additions & 1 deletion docs/userGuide/authoringContents.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title" id="title">Authoring Contents</variable>
{% set title = "Authoring Contents" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }}"
layout: userGuide
Expand Down
9 changes: 7 additions & 2 deletions docs/userGuide/components/advanced.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
## Advanced Tips and Tricks

<variable name="slot_info_trigger"><trigger for="on-slots" trigger="click"><strong>^\[S\]^</strong></trigger></variable>
<variable name="slot_type_info_trigger"><trigger for="on-slots" trigger="click">Slot</trigger></variable>
{% set slot_info_trigger %}
<trigger for="on-slots" trigger="click"><strong>^\[S\]^</strong></trigger>
{% endset %}

{% set slot_type_info_trigger %}
<trigger for="on-slots" trigger="click">Slot</trigger>
{% endset %}

### Richer formatting of attributes using slots

Expand Down
6 changes: 4 additions & 2 deletions docs/userGuide/deployingTheSite.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<variable name="title" id="title">Deploying the Site</variable>
<variable name="filename" id="filename">deployingTheSite</variable>
{% set title = "Deploying the Site" %}
{% set filename = "deployingTheSite" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }}"
layout: userGuide
Expand Down
5 changes: 3 additions & 2 deletions docs/userGuide/formattingContents.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<variable name="title" id="title">Formatting Contents</variable>
<variable name="filename">formattingContents</variable>
{% set title = "Formatting Contents" %}
{% set filename = "formattingContents" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }}"
Expand Down
4 changes: 3 additions & 1 deletion docs/userGuide/gettingStarted.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<variable name="title" id="title">Getting Started</variable>
{% set title = "Getting Started" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide - {{ title }}"
layout: userGuide
Expand Down
6 changes: 4 additions & 2 deletions docs/userGuide/makingTheSiteSearchable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<variable name="title" id="title">Making the Site Searchable</variable>
<variable name="filename">makingTheSiteSearchable</variable>
{% set title = "Making the Site Searchable" %}
{% set filename = "makingTheSiteSearchable" %}
<span id="title" class="d-none">{{ title }}</span>

{% from "njk/common.njk" import embed with context %}

<frontmatter>
Expand Down
6 changes: 4 additions & 2 deletions docs/userGuide/markBindInTheProjectWorkflow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<variable name="title" id="title">MarkBind in the Project Workflow</variable>
<variable name="filename" id="filename">markBindInTheProjectWorkflow</variable>
{% set title = "MarkBind in the Project Workflow" %}
{% set filename = "markBindInTheProjectWorkflow" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }}"
layout: userGuide
Expand Down
5 changes: 3 additions & 2 deletions docs/userGuide/markBindSyntaxOverview.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<variable name="title" id="title">MarkBind Syntax Overview</variable>
<variable name="filename">markBindSyntaxOverview</variable>
{% set title = "MarkBind Syntax Overview" %}
{% set filename = "markBindSyntaxOverview" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }} "
Expand Down
5 changes: 3 additions & 2 deletions docs/userGuide/reusingContents.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<variable name="title" id="title">Reusing Contents</variable>
<variable name="filename">reusingContents</variable>
{% set title = "Reusing Contents" %}
{% set filename = "reusingContents" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }}"
Expand Down
5 changes: 3 additions & 2 deletions docs/userGuide/settingSiteProperties.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<variable name="title" id="title">Setting Site Properties</variable>
<variable name="filename" id="filename">settingSiteProperties</variable>
{% set title = "Setting Site Properties" %}
{% set filename = "settingSiteProperties" %}
<span id="title" class="d-none">{{ title }}</span>

<frontmatter>
title: "User Guide: {{ title }}"
Expand Down
2 changes: 1 addition & 1 deletion docs/userGuide/syntax/boxes.mbdf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<import slot_info_trigger from="../components/advanced.md"></import>
{% from "userGuide/components/advanced.md" import slot_info_trigger %}

## Boxes

Expand Down
4 changes: 2 additions & 2 deletions docs/userGuide/syntax/dates.mbdf
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ Dates can be supplied using [page variables](../reusingContents.html#variables)

Inside `variables.md` or referencing page:
```
<variable name="date_pagevar">2020-03-06</variable>
{% raw %}{% set date_pagevar = "2020-03-06" %}{% endraw %}
```
<variable name="date_pagevar">2020-03-06</variable>
{% set date_pagevar = "2020-03-06" %}

{{ njcode('date_pagevar | date(format2)') }} :glyphicon-arrow-right: {{ date_pagevar | date(format2) }} <br/>

Expand Down
2 changes: 1 addition & 1 deletion docs/userGuide/syntax/dropdowns.mbdf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<import slot_info_trigger from="../components/advanced.md"></import>
{% from "userGuide/components/advanced.md" import slot_info_trigger %}

## Dropdowns

Expand Down
2 changes: 1 addition & 1 deletion docs/userGuide/syntax/modals.mbdf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<import slot_info_trigger slot_type_info_trigger from="../components/advanced.md"></import>
{% from "userGuide/components/advanced.md" import slot_info_trigger, slot_type_info_trigger %}

## Modals

Expand Down
2 changes: 1 addition & 1 deletion docs/userGuide/syntax/panels.mbdf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<import slot_info_trigger from="../components/advanced.md"></import>
{% from "userGuide/components/advanced.md" import slot_info_trigger %}

## Panels

Expand Down
2 changes: 1 addition & 1 deletion docs/userGuide/syntax/popovers.mbdf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<import slot_info_trigger from="../components/advanced.md"></import>
{% from "userGuide/components/advanced.md" import slot_info_trigger %}

## Popovers

Expand Down
21 changes: 13 additions & 8 deletions docs/userGuide/syntax/questions.mbdf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<import slot_info_trigger slot_type_info_trigger from="../components/advanced.md"></import>
{% from "userGuide/components/advanced.md" import slot_info_trigger, slot_type_info_trigger %}

## Questions and Quizzes

Expand Down Expand Up @@ -150,7 +150,8 @@ Optionally, you can provide the reason for the particular option using the `<q-o

**MCQ Questions**

<variable name="mcqQuestion"><question type="mcq" header="Which of these **contradicts** the heuristics recommended when creating test cases with multiple inputs?">
{% set mcqQuestion %}
<question type="mcq" header="Which of these **contradicts** the heuristics recommended when creating test cases with multiple inputs?">
<!-- Insert the reason for the option using the reason attribute -->
<q-option reason="This is **correct**. We need to figure out if a positive test case works!">
Each valid test input should appear at least once in a test case that doesn’t have any invalid inputs.
Expand All @@ -174,7 +175,8 @@ Optionally, you can provide the reason for the particular option using the `<q-o
<div slot="hint">
How do you figure out which inputs are wrong? (or correct)
</div>
</question></variable>
</question>
{% endset %}

<include src="codeAndOutput.md" boilerplate >
<variable name="highlightStyle">html</variable>
Expand All @@ -185,7 +187,8 @@ Optionally, you can provide the reason for the particular option using the `<q-o

**Checkbox Questions**

<variable name="checkboxQuestion"><question type="checkbox" hint="Use your calculator! :fas-calculator:">
{% set checkboxQuestion %}
<question type="checkbox" hint="Use your calculator! :fas-calculator:">

##### Which of the following is true?

Expand All @@ -199,7 +202,8 @@ Optionally, you can provide the reason for the particular option using the `<q-o
<q-option correct>
11 / 11 = 1
</q-option>
</question></variable>
</question>
{% endset %}

<include src="codeAndOutput.md" boilerplate>
<variable name="highlightStyle">html</variable>
Expand Down Expand Up @@ -237,16 +241,17 @@ and not others.

You can provide your answer in the `answer` attribute, or similarly, the `<div slot="answer">` slot for more expressive formatting.

<variable name="textQuestion"><question type="text" header="Which country did the Hawaiian pizza originate from?"
{% set textQuestion %}
<question type="text" header="Which country did the Hawaiian pizza originate from?"
keywords="hawaii" threshold="0.5" answer="It originated from Hawaii!">
<div slot="hint">

Watch some pizza commercials! :tv:

:pizza: :pizza: :pizza: :pizza: :pizza: :pizza: :pizza: :pizza: :pizza: :pizza: :pizza: :pizza:
</div>
</question></variable>

</question>
{% endset %}

<include src="codeAndOutput.md" boilerplate>
<variable name="highlightStyle">html</variable>
Expand Down
Loading