mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
100 lines
1.9 KiB
Markdown
100 lines
1.9 KiB
Markdown
# Titelseite
|
|
|
|
Aktiviere die Unterstützung für Titelseiten, indem du `coverpage` auf **true** einstellst, vergleiche [coverpage Einstellungen](configuration.md#coverpage).
|
|
|
|
## Einfache Verwendung
|
|
|
|
Setze `coverpage` auf **true**, und erstelle `_coverpage.md`:
|
|
|
|
```html
|
|
<!-- index.html -->
|
|
|
|
<script>
|
|
window.$docsify = {
|
|
coverpage: true
|
|
}
|
|
</script>
|
|
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
|
```
|
|
|
|
```markdown
|
|
<!-- _coverpage.md -->
|
|
|
|

|
|
|
|
# docsify <small>3.5</small>
|
|
|
|
> Ein magischer Generator für Dokumentationsseiten.
|
|
|
|
* Einfach und wenig Speicherbedarf (~19kB gzipped)
|
|
* Keine statischen HTML Dateien
|
|
* Mehrere Themes
|
|
|
|
[GitHub](https://github.com/QingWei-Li/docsify/)
|
|
[Schnellstart](#docsify)
|
|
```
|
|
|
|
!> Die Dokumentationsseiten können nur eine Titelseite haben!
|
|
|
|
## Eigener Hintergrund
|
|
|
|
Die Hintergrundfarbe wird in der Standardeinstellung zufällig generiert. Du kannst sie anpassen, oder auch ein Hintergrundbild verwenden:
|
|
|
|
```markdown
|
|
<!-- _coverpage.md -->
|
|
|
|
# docsify <small>3.5</small>
|
|
|
|
[GitHub](https://github.com/QingWei-Li/docsify/)
|
|
[Schnellstart](#quick-start)
|
|
|
|
<!-- Hintegrundbild -->
|
|
|
|

|
|
|
|
<!-- Hintegrundfarbe -->
|
|
|
|

|
|
```
|
|
|
|
## Coverpage as homepage
|
|
|
|
Normal, the coverpage and the homepage appear at the same time. Of course, you can also separate the coverpage by [onlyCover option](de-de/configuration.md#onlycover).
|
|
|
|
## Multiple covers
|
|
|
|
If your docs site is in more than one language, it may be useful to set multiple covers.
|
|
|
|
For example, your docs structure is like this
|
|
|
|
```text
|
|
.
|
|
└── docs
|
|
├── README.md
|
|
├── guide.md
|
|
├── _coverpage.md
|
|
└── zh-cn
|
|
├── README.md
|
|
└── guide.md
|
|
└── _coverpage.md
|
|
```
|
|
|
|
Now, you can set
|
|
|
|
```js
|
|
window.$docsify = {
|
|
coverpage: ['/', '/zh-cn/']
|
|
};
|
|
```
|
|
|
|
Or a special file name
|
|
|
|
```js
|
|
window.$docsify = {
|
|
coverpage: {
|
|
'/': 'cover.md',
|
|
'/zh-cn/': 'cover.md'
|
|
}
|
|
};
|
|
```
|