git test/example typ
This commit is contained in:
parent
9ed2b151ef
commit
4693003806
2 changed files with 119 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1 +1 @@
|
||||||
test_template
|
test_template/*.html
|
||||||
|
|
|
||||||
118
test_template/main.typ
Normal file
118
test_template/main.typ
Normal file
|
|
@ -0,0 +1,118 @@
|
||||||
|
#import "@local/template-web:0.0.1": *
|
||||||
|
|
||||||
|
#set document(
|
||||||
|
title: "TeTyTe",
|
||||||
|
author: "Me!",
|
||||||
|
description: "Test of the TTT template",
|
||||||
|
)
|
||||||
|
|
||||||
|
#show: webpage.with(
|
||||||
|
"http://test.example.com",
|
||||||
|
"https://jean-marie.mineau.eu/website_assets/platypus.png",
|
||||||
|
"A drawing of a blue-ish round-ish platypus with big eyes, holding a laptop. This platypus is quite cute, but I might be biased.",
|
||||||
|
header: [
|
||||||
|
= Test TeTyTe
|
||||||
|
Hello World!
|
||||||
|
],
|
||||||
|
menu: [
|
||||||
|
- #link("example.com")[Hello Void!]
|
||||||
|
- #link("example.com")[Demons]
|
||||||
|
- #link("example.com")[Run]
|
||||||
|
- #link("example.com")[When]
|
||||||
|
- #link("example.com")[A]
|
||||||
|
- #link("example.com")[Good]
|
||||||
|
- #link("example.com")[Man]
|
||||||
|
- #link("example.com")[Goes]
|
||||||
|
- #link("example.com")[To]
|
||||||
|
- #link("example.com")[War]
|
||||||
|
],
|
||||||
|
site-name: "TTT",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
#lorem(200)
|
||||||
|
|
||||||
|
Test, `this is not a code block`, end test.
|
||||||
|
|
||||||
|
```python
|
||||||
|
def plopliplop(n: int)
|
||||||
|
for i in range(n):
|
||||||
|
if i % 3 == 0 and i % 5 == 0:
|
||||||
|
print("plopliplop")
|
||||||
|
elif i % 3 == 0:
|
||||||
|
print("plop")
|
||||||
|
elif i % 5 == 0:
|
||||||
|
print("plip")
|
||||||
|
else:
|
||||||
|
print(i)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#figure({
|
||||||
|
show table: set text(size: 0.80em)
|
||||||
|
table(
|
||||||
|
columns: 5,
|
||||||
|
//inset: (x: 0% + 5pt, y: 0% + 2pt),
|
||||||
|
stroke: none,
|
||||||
|
align: center+horizon,
|
||||||
|
table.hline(),
|
||||||
|
table.header(
|
||||||
|
table.cell(colspan: 5, inset: 3pt)[],
|
||||||
|
table.cell(rowspan: 2)[*SDK version*],
|
||||||
|
table.vline(end: 3),
|
||||||
|
table.vline(start: 4),
|
||||||
|
table.cell(colspan: 4)[*Number of API methods*],
|
||||||
|
[Documented], [In emulator], [Only documented], [Only in emulator],
|
||||||
|
),
|
||||||
|
table.cell(colspan: 5, inset: 3pt)[],
|
||||||
|
table.hline(),
|
||||||
|
table.cell(colspan: 5, inset: 3pt)[],
|
||||||
|
|
||||||
|
[32], [495713], [499837], [1060], [5184],
|
||||||
|
[33], [537427], [539236], [1258], [3067],
|
||||||
|
[34], [605106], [605098], [26], [18],
|
||||||
|
|
||||||
|
table.cell(colspan: 4, inset: 3pt)[],
|
||||||
|
table.hline(),
|
||||||
|
)},
|
||||||
|
|
||||||
|
caption: [Comparison of API methods between documentation and emulators],
|
||||||
|
)<tab:cl-platform_apis>
|
||||||
|
|
||||||
|
```raw-css
|
||||||
|
table {
|
||||||
|
//border: 1px solid blue;
|
||||||
|
border-bottom: 1px solid #999999;
|
||||||
|
border-top: 1px solid #999999;
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin: 0.4em;
|
||||||
|
}
|
||||||
|
th, td {
|
||||||
|
padding: 0.2em 0.5em;
|
||||||
|
}
|
||||||
|
td {
|
||||||
|
//border: 1px solid red;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
border-bottom: 1px solid #999999;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#table(
|
||||||
|
columns: 5,
|
||||||
|
//inset: (x: 0% + 5pt, y: 0% + 2pt),
|
||||||
|
//stroke: none,
|
||||||
|
align: center+horizon,
|
||||||
|
table.hline(),
|
||||||
|
table.header(
|
||||||
|
table.cell(rowspan: 2)[*SDK version*],
|
||||||
|
table.cell(colspan: 4)[*Number of API methods*],
|
||||||
|
table.cell(stroke: black)[Documented], [In emulator], [Only documented], [Only in emulator],
|
||||||
|
),
|
||||||
|
table.hline(),
|
||||||
|
[32], [495713], [499837], [1060], [5184],
|
||||||
|
[33], [537427], [539236], [1258], [3067],
|
||||||
|
[34], [605106], [605098], [26], [18],
|
||||||
|
table.hline(),
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue