mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added back aria-label to search input (#1517)
* update development guides on how to launch the local servers * brings back aria-label to search form as form elements must have labels
This commit is contained in:
@@ -201,15 +201,19 @@ npm install
|
|||||||
|
|
||||||
### Development mode
|
### Development mode
|
||||||
|
|
||||||
The development server can be started with:
|
Start the Webpack watchdog with:
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
This will also start the MkDocs development server which will monitor changes
|
Then, in a second session, start the MkDocs server with:
|
||||||
on assets, templates and documentation. Point your browser to
|
|
||||||
[localhost:8000][190] and you should see this documentation in front of you.
|
```sh
|
||||||
|
mkdocs serve
|
||||||
|
```
|
||||||
|
|
||||||
|
Point your browser to [localhost:8000][9] and you should see this documentation in front of you.
|
||||||
|
|
||||||
!!! warning "Automatically generated files"
|
!!! warning "Automatically generated files"
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
class="md-search__input"
|
class="md-search__input"
|
||||||
name="query"
|
name="query"
|
||||||
|
aria-label="{{ lang.t('search.placeholder') }}"
|
||||||
placeholder="{{ lang.t('search.placeholder') }}"
|
placeholder="{{ lang.t('search.placeholder') }}"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
|
|||||||
Reference in New Issue
Block a user