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
* ✨ Added some missing features to the default theme
* ✏️ Fixed docs and contributing typos
* 🚧 Attempted to add examples
* 🚧 Gave up on the examples
* 📝 Finished the docs overhaul
* 📝 Made the headings easier to differentiate
* 📝 Improved the documentation for the create-entry functions
* 📝 Rerendered the docs
* 📝 Fixed formatting of raw blocks
---------
Co-authored-by: BattleCh1cken <BattleCh1cken@larkov.de>
Themes are stored as dictionaries with a set number of fields.
89
105
90
106
#def-arg(
91
-
"rules", [`<function>`], default: none, [ The show and set rules that will be applied to the document ],
107
+
"rules",
108
+
[`<function>`],
109
+
default: none,
110
+
[ The show and set rules that will be applied to the document ],
92
111
)
93
112
#def-arg(
94
-
"cover", [`<function>`], default: none, [ A function that returns the cover of the notebook. Must take context as input. ],
113
+
"cover",
114
+
[`<function>`],
115
+
default: none,
116
+
[ A function that returns the cover of the notebook. Must take context as input. ],
95
117
)
96
118
#def-arg(
97
-
"frontmatter-entry", [`<function>`], default: none, [ A function that returns a frontmatter entry. Must take context and body as
119
+
"frontmatter-entry",
120
+
[`<function>`],
121
+
default: none,
122
+
[ A function that returns a frontmatter entry. Must take context and body as
98
123
input. ],
99
124
)
100
125
#def-arg(
101
-
"body-entry", [`<function>`], default: none, [ A function that returns a body entry. Must take context and body as input. ],
126
+
"body-entry",
127
+
[`<function>`],
128
+
default: none,
129
+
[ A function that returns a body entry. Must take context and body as input. ],
102
130
)
103
131
#def-arg(
104
-
"appendix-entry", [`<function>`], default: none, [ A function that returns a appendix entry. Must take context and body as input. ],
132
+
"appendix-entry",
133
+
[`<function>`],
134
+
default: none,
135
+
[ A function that returns a appendix entry. Must take context and body as input. ],
105
136
)
106
137
107
138
=== Context <context>
@@ -112,20 +143,46 @@ Context is stored as a dictionary with the following fields:
112
143
113
144
#def-arg("title", [`<string>`], default: none, [The title of the entry])
114
145
#def-arg(
115
-
"type", [`<string>` or `<none>`], default: none, [The type of the entry. This value is used differently by different templates.
146
+
"type",
147
+
[`<string>` or `<none>`],
148
+
default: none,
149
+
[The type of the entry. This value is used differently by different templates.
116
150
Refer to the template level documentation to see what this means for your theme.],
117
151
)
118
152
#def-arg(
119
-
"start-date", [`<datetime>`], default: none, [The date at which the entry started.],
153
+
"start-date",
154
+
[`<datetime>`],
155
+
default: none,
156
+
[The date at which the entry started.],
120
157
)
121
158
#def-arg(
122
-
"end-date", [`<datetime>`], default: none, [The date at which the entry ended.],
159
+
"end-date",
160
+
[`<datetime>`],
161
+
default: none,
162
+
[The date at which the entry ended.],
123
163
)
124
164
#def-arg(
125
-
"page-number", [`<integer>` or `<none>`], default: none, [The page number of the first page of the entry. Only available while using the `print-toc()` utility
126
-
function. ],
165
+
"page-number",
166
+
[`<integer>` or `<none>`],
167
+
default: none,
168
+
[The page number of the first page of the entry. Only available while using the
169
+
`print-toc()` utility function. ],
127
170
)
128
171
172
+
== Default Theme
173
+
174
+
The default theme.
175
+
176
+
#warning[
177
+
This theme is very minimal, and is generally intended as a fallback for stuff
0 commit comments