mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
docs: Improve Quick start instructions (#1466)
Co-authored-by: Luffy <lufei@docsifyjs.org>
This commit is contained in:
parent
77420dfbb0
commit
c9301b0c9d
@ -124,7 +124,7 @@ If you want, you can show a loading dialog before docsify starts to render your
|
|||||||
<div id="app">Please wait...</div>
|
<div id="app">Please wait...</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
You should set the `data-app` attribute if you changed `el`:
|
By default, the `id` attribute of the main container is `app`. If you want to use a different id, you must also set the `data-app` attribute, and [configure](configuration.md#el) the `el` parameter accordingly:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- index.html -->
|
<!-- index.html -->
|
||||||
@ -138,8 +138,6 @@ You should set the `data-app` attribute if you changed `el`:
|
|||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
Compare [el configuration](configuration#el).
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
const linkElm = document.querySelector('#template a[download="index.html"]');
|
const linkElm = document.querySelector('#template a[download="index.html"]');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user