Skip to content

Commit c8f0517

Browse files
committed
More headings for our AutoStarlightPage component
1 parent 155e681 commit c8f0517

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

web/src/components/AutoStarlightPage.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function escapeHtml(str: string) {
3939
.replace(/>/g, '>');
4040
}
4141
42-
root.querySelectorAll('h2, h3').forEach((el) => {
42+
root.querySelectorAll('h2, h3, h4, h5, h6').forEach((el) => {
4343
const level = parseInt(el.tagName[1]);
4444
const text = el.text.trim();
4545
const slug = text

web/src/pages/reference/Meta.xml.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import NoteBox from '@src/components/NoteBox.astro';
77
<AutoStarlightPage frontmatter={{
88
template: 'doc',
99
title: 'Meta.xml',
10+
tableOfContents: {
11+
maxHeadingLevel: 4
12+
}
1013
}}>
1114

1215
<p>The meta.xml file presents MTA with a set of metadata, such as the resource's name, the scripts to include, and which files to precache for sending to clients among other things.
@@ -214,7 +217,7 @@ It is also the scope of "elements". It is written in XML, which is based on HTML
214217

215218
<br/>
216219
<div id="glob-example">
217-
<h3>Loading files via glob pattern</h3>
220+
<h4>Loading files via glob pattern</h4>
218221
<p>Since version <strong>1.6.0 r22430</strong> and above, you can conveniently load files into your resources using <a href="https://en.wikipedia.org/wiki/Glob%20(programming)">glob library</a> - see <a href="https://github.com/p-ranav/glob">more details</a>.</p>
219222
<Code code={`<meta>
220223
<script src="shared/**/*.lua" type="shared" cache="false" />

0 commit comments

Comments
 (0)