Skip to content

Commit

Permalink
Merge pull request #236 from helloflask/iconoverview-1
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Jul 30, 2022
2 parents 8aaffd8 + 5535538 commit 23b2a94
Show file tree
Hide file tree
Showing 10 changed files with 30,538 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,20 @@ Live demos of the latest release are:

- `Examples with Bootstrap 4 <http://173.212.198.217/>`_
- `Examples with Bootstrap 5 <http://173.212.227.186/>`_

Overview of icons
-----------------

The example applications contain a page called icons which gives an overview
of all icons supported by this version of Bootstrap-Flask. This overview can be
used for testing purposes but is also offline documentation on the icons
available.

When Bootstrap-Flask updates the icon file, the overview page can be upgraded
with:


.. code-block:: bash
$ python3 update-icons.py
5 changes: 5 additions & 0 deletions examples/bootstrap4/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,10 @@ def test_icon():
return render_template('icon.html')


@app.route('/icons')
def test_icons():
return render_template('icons.html')


if __name__ == '__main__':
app.run(debug=True)
1 change: 1 addition & 0 deletions examples/bootstrap4/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
{{ render_nav_item('test_flash', 'Flash Messages', use_li=True) }}
{{ render_nav_item('test_table', 'Table', use_li=True) }}
{{ render_nav_item('test_icon', 'Icon', use_li=True) }}
{{ render_nav_item('test_icons', 'Icons', use_li=True) }}
<li class="nav-item"><a class="nav-link" href="https://bootstrap-flask.readthedocs.io/" target="_blank">Documentation</a></li>
<li class="nav-item"><a class="nav-link" href="https://getbootstrap.com/docs/4.6/getting-started/introduction/" target="_blank">Bootstrap Documentation</a></li>
<li class="nav-item"><a class="nav-link" href="https://github.com/greyli/bootstrap-flask" target="_blank">GitHub</a></li>
Expand Down
15,230 changes: 15,230 additions & 0 deletions examples/bootstrap4/templates/icons.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/bootstrap4/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ <h1>Bootstrap-Flask Demo Application</h1>
<li><a href="{{ url_for('test_flash') }}">Flash Messages</a></li>
<li><a href="{{ url_for('test_table') }}">Table</a></li>
<li><a href="{{ url_for('test_icon') }}">Icon</a></li>
<li><a href="{{ url_for('test_icons') }}">Icons</a></li>
</ul>
{% endblock %}
5 changes: 5 additions & 0 deletions examples/bootstrap5/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,10 @@ def test_icon():
return render_template('icon.html')


@app.route('/icons')
def test_icons():
return render_template('icons.html')


if __name__ == '__main__':
app.run(debug=True)
1 change: 1 addition & 0 deletions examples/bootstrap5/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
{{ render_nav_item('test_flash', 'Flash Messages', use_li=True) }}
{{ render_nav_item('test_table', 'Table', use_li=True) }}
{{ render_nav_item('test_icon', 'Icon', use_li=True) }}
{{ render_nav_item('test_icons', 'Icons', use_li=True) }}
<li class="nav-item"><a class="nav-link" href="https://bootstrap-flask.readthedocs.io/" target="_blank">Documentation</a></li>
<li class="nav-item"><a class="nav-link" href="https://getbootstrap.com/docs/5.1/getting-started/introduction/" target="_blank">Bootstrap Documentation</a></li>
<li class="nav-item"><a class="nav-link" href="https://github.com/greyli/bootstrap-flask" target="_blank">GitHub</a></li>
Expand Down

0 comments on commit 23b2a94

Please sign in to comment.