Add Python page
- Update styles for some includes - Use default markdown rendering instead of span rendering to allow multi-line content - Slight hack in customstyles to allow color overrides. A better fix would be to use the bootstrap sass to keep constant colors throughout the project - Added title parameter to note and warning includes
This commit is contained in:
@ -1 +1,10 @@
|
||||
<div markdown="span" class="bs-callout bs-callout-{{include.type}}">{{include.content}}</div>
|
||||
{% comment %}
|
||||
A "callout" (section with colored title and left margin)
|
||||
|
||||
Parameters:
|
||||
- type: A bootstrap color for the callout (info, warning, danger, default, success,
|
||||
and primary
|
||||
- content: markdown content
|
||||
{% endcomment -%}
|
||||
<div markdown="1" class="bs-callout bs-callout-{{include.type}}">{{include.content}}
|
||||
</div>
|
||||
|
@ -1 +1 @@
|
||||
<div markdown="span" class="alert alert-warning" role="alert"><i class="fa fa-warning"></i> <b>Important:</b> {{include.content}}</div>
|
||||
<div markdown="1" class="alert alert-warning" role="alert"><i class="fa fa-warning"></i> <b>Important:</b> {{include.content}}</div>
|
@ -1 +1,8 @@
|
||||
<div markdown="span" class="alert alert-info" role="alert"><i class="fa fa-info-circle"></i> <b>Note:</b> {{include.content}}</div>
|
||||
{% comment %}
|
||||
A blue alert box.
|
||||
|
||||
Parameters:
|
||||
- title: Initial word (default "Note")
|
||||
- content: markdown content
|
||||
{% endcomment -%}
|
||||
<div markdown="1" class="alert alert-info" role="alert"><i class="fa fa-info-circle"></i> <b>{{ include.title | default:"Note"}}:</b> {{include.content}}</div>
|
||||
|
@ -1 +1 @@
|
||||
<div markdown="span" class="alert alert-success" role="alert"><i class="fa fa-check-square-o"></i> <b>Tip:</b> {{include.content}}</div>
|
||||
<div markdown="1" class="alert alert-success" role="alert"><i class="fa fa-check-square-o"></i> <b>Tip:</b> {{include.content}}</div>
|
@ -1 +1,8 @@
|
||||
<div markdown="span" class="alert alert-danger" role="alert"><i class="fa fa-exclamation-circle"></i> <b>Warning:</b> {{include.content}}</div>
|
||||
{% comment %}
|
||||
A red alert box.
|
||||
|
||||
Parameters:
|
||||
- title: Initial word (default "warning")
|
||||
- content: markdown content
|
||||
{% endcomment -%}
|
||||
<div markdown="1" class="alert alert-danger" role="alert"><i class="fa fa-exclamation-circle"></i> <b>{{include.title | default:"Warning"}}:</b> {{include.content}}</div>
|
Reference in New Issue
Block a user