Skip to content

Commit 155e681

Browse files
committed
TOC
1 parent 3753eb9 commit 155e681

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
2-
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
32
import { Code } from '@astrojs/starlight/components';
3+
import AutoStarlightPage from '@src/components/AutoStarlightPage.astro';
44
import NoteBox from '@src/components/NoteBox.astro';
55
---
66

7-
<StarlightPage frontmatter={{
7+
<AutoStarlightPage frontmatter={{
88
template: 'doc',
99
title: 'Meta.xml',
10-
tableOfContents: false,
1110
}}>
1211

1312
<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.
14-
It is also the scope of "elements". It is written in XML, which is based on HTML and is the parent of XHTML.</p>
13+
It is also the scope of "elements". It is written in XML, which is based on HTML and is the parent of XHTML.</p><br/>
1514

1615
<div id="tags">
17-
<h4>Tags</h4>
16+
<h3>Tags</h3>
1817
<p>XML is a textual data format which is widely used for the representation of data. MTA uses an XML-based language to describe the metadata for resources by using the tags below:</p>
1918
<ul>
2019
<li><strong>&lt;info/&gt;</strong> Information about this resource, possible parameters include (any arbitrary parameters can be used and read using <a href="/reference/getResourceInfo">getResourceInfo</a>).</li>
@@ -122,8 +121,9 @@ It is also the scope of "elements". It is written in XML, which is based on HTML
122121
</ul>
123122
</div>
124123

124+
<br/>
125125
<div id="Example">
126-
<h4>Examples</h4>
126+
<h3>Examples</h3>
127127
<p>Quick start template:</p>
128128
<Code code={`<meta>
129129
<script src="server.lua" type="server" />
@@ -212,8 +212,9 @@ It is also the scope of "elements". It is written in XML, which is based on HTML
212212
</meta>`} lang="xml"/>
213213
</div>
214214

215+
<br/>
215216
<div id="glob-example">
216-
<h4>Loading files via glob pattern</h4>
217+
<h3>Loading files via glob pattern</h3>
217218
<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>
218219
<Code code={`<meta>
219220
<script src="shared/**/*.lua" type="shared" cache="false" />
@@ -226,4 +227,4 @@ It is also the scope of "elements". It is written in XML, which is based on HTML
226227
</meta>`} lang="xml"/>
227228
</div>
228229

229-
</StarlightPage>
230+
</AutoStarlightPage>

0 commit comments

Comments
 (0)