-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update docs, add .readthedocs.yml, update CHANGELOG.md
- Loading branch information
Showing
7 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: docs/requirements.txt | ||
- method: pip | ||
path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
===== | ||
Forms | ||
===== | ||
|
||
Forms are an important part of any Bootstrap version. | ||
|
||
In this section, we describe our approach to rendering forms in Bootstrap 5. | ||
|
||
Reference: https://getbootstrap.com/docs/5.0/forms/validation/ | ||
|
||
Structure of a rendered field | ||
----------------------------- | ||
|
||
A rendered fields has these components: | ||
|
||
- wrapper | ||
- label (optional) | ||
- field | ||
- help text (optional) | ||
- validation texts (optional) | ||
|
||
See below for an example. | ||
|
||
.. code:: html | ||
|
||
<div class="mb-3"> <!-- wrapper start --> | ||
<label for="name" class="form-label">Email address</label> <!-- label --> | ||
<input type="text" class="form-control" id="name" aria-describedby="nameHelp"> <!-- field --> | ||
<div id="nameHelp" class="form-text">An alias is fine.</div> <!-- help text --> | ||
<div class="valid-feedback">Looks good!</div> <!-- validation text --> | ||
</div> | ||
|
||
How and in which order these will components be rendered differs per widget type. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ Contents: | |
installation | ||
quickstart | ||
migrate | ||
forms | ||
templatetags | ||
settings | ||
templates | ||
widgets | ||
authors | ||
changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters