You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add llms.txt file generation feature. When the `llms` property is set to `true` in hyperbook.json, a `llms.txt` file will be generated during build that combines all markdown files in order. The file includes the book name and version in the header. Pages and sections with `hide: true` are automatically excluded from the generated file.
When you are writing a hyperbook syntax you must use markdown plus the documented elements, also keep track of colons. Colons act like parentheses in programming languages. Every opening colon must have a closing colon. For example, in the syntax :bold text: the first colon opens the bold formatting and the second colon closes it. If there is a missing colon, it can lead to formatting errors or unexpected behavior in the rendered output. Always ensure that colons are properly paired to maintain the intended structure and appearance of your hyperbook content.
122
+
123
+
Single colons are inline elements.
124
+
125
+
Example: :t[Test]
126
+
127
+
Double colons are block elements.
128
+
129
+
Example: ::p5{src="sketch.js"}
130
+
131
+
Triple colons are special elements that can contain other elements inside them.
132
+
133
+
Example:
134
+
135
+
:::::alert{info}
136
+
137
+
::::tabs
138
+
139
+
:::tab{title="JavaScript"}
140
+
141
+
Hi
142
+
143
+
:::
144
+
145
+
146
+
::::
147
+
148
+
:::::
149
+
150
+
When you want to nest elements you need to increase the number of colons by one for each level of nesting. The outer level should have the most colons.
151
+
152
+
Also you need to use unique ids when the element supports it.
Copy file name to clipboardExpand all lines: website/de/book/configuration/book.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ von Optionen, die du definieren kannst. Optionen mit einem "\*" müssen gesetzt
38
38
| allowDangerousHtml | Erlaube HTML im Hyperbook. Dies kann zu Inkompatibilität in zukünftigen Versionen führen. |
39
39
| qrcode | Zeigt ein Icon, um einen QR-Code zur aktuellen Seite anzuzeigen. |
40
40
| toc | Zeige ein Inhaltsverzeichnis. Diese ist standardmäßig aktiviert für Seiten und deaktiviert für Begriffe im Glossar. |
41
+
| llms | Wenn auf true gesetzt, wird eine llms.txt-Datei generiert, die alle Markdown-Dateien in Reihenfolge kombiniert. Die Datei enthält den Buchnamen und die Version im Header-Format. |
41
42
| trailingSlash | Exportiert alle Datei in eigene Verzeichnisse und erzeugt nur index.html Dateien. |
42
43
| importExport | Ermöglicht das Importieren und Exportieren des Zustands des Hyperbooks als Datei. Schaltflächen zum Importieren und Exportieren befinden sich am unteren Rand der Seite. |
Copy file name to clipboardExpand all lines: website/en/book/configuration/book.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ can and part wise must set (indicated by a \*).
37
37
| allowDangerousHtml | Allow HTML. This can lead to incompatibilities in future versions. |
38
38
| qrcode | Shows an icon, which opens a qr code to the current page. |
39
39
| toc | Show or hide a table of content for the page. This is on for pages and off for glossary entries by default |
40
+
| llms | When set to true, generates an llms.txt file that combines all markdown files in order. The file includes the book name and version in a header format. |
40
41
| trailingSlash | Outputs all files into ther own folders and produces only index.html files. |
41
42
| importExport | Allows to import and export the state of the Hyperbook as a file. Buttons for importing and exporting will be at the bottom of the page. |
0 commit comments