Skip to content

Commit 63cd216

Browse files
Merge branch 'main' of github.com:GraphicalPlayground/gp-docs
2 parents 596525c + 9db1a22 commit 63cd216

68 files changed

Lines changed: 1749 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/gp-engine/Introduction.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Introduction
6+
7+
_the following section will just demonstrate docs capacity to render markdown content, and will be
8+
removed in the future_
9+
10+
## Tabs
11+
12+
import Tabs from '@theme/Tabs';
13+
import TabItem from '@theme/TabItem';
14+
15+
<Tabs>
16+
<TabItem value="apple" label="Apple" default>
17+
This is an apple 🍎
18+
</TabItem>
19+
<TabItem value="orange" label="Orange">
20+
This is an orange 🍊
21+
</TabItem>
22+
<TabItem value="banana" label="Banana">
23+
This is a banana 🍌
24+
</TabItem>
25+
</Tabs>
26+
27+
## Code blocks
28+
29+
_Normal code blocks_
30+
31+
```cpp
32+
#include <iostream>
33+
34+
int main()
35+
{
36+
std::cout << "Hello World!" << std::endl;
37+
return 0;
38+
}
39+
```
40+
41+
_Code blocks with line numbers_
42+
43+
```cpp showLineNumbers
44+
#include <iostream>
45+
46+
int main()
47+
{
48+
std::cout << "Hello World!" << std::endl;
49+
return 0;
50+
}
51+
```
52+
53+
_Code blocks with line numbers and highlights_
54+
55+
```cpp showLineNumbers {2-4,6}
56+
#include <iostream>
57+
58+
int main()
59+
{
60+
std::cout << "Hello World!" << std::endl;
61+
return 0;
62+
}
63+
```
64+
65+
_Code blocks with filename_
66+
67+
```cpp title="source/Main.cpp"
68+
#include <iostream>
69+
70+
int main()
71+
{
72+
std::cout << "Hello World!" << std::endl;
73+
return 0;
74+
}
75+
```
76+
77+
## Admonitions
78+
79+
:::note
80+
Some **content** with _Markdown_ `syntax`. Check [this api](#).
81+
:::
82+
83+
:::tip
84+
Some **content** with _Markdown_ `syntax`. Check [this api](#).
85+
:::
86+
87+
:::info
88+
Some **content** with _Markdown_ `syntax`. Check [this api](#).
89+
:::
90+
91+
:::warning
92+
Some **content** with _Markdown_ `syntax`. Check [this api](#).
93+
:::
94+
95+
:::danger
96+
Some **content** with _Markdown_ `syntax`. Check [this api](#).
97+
:::
98+
99+
## Collapsibles
100+
101+
<details>
102+
<summary>Click to expand</summary>
103+
<p>This is the hidden content that will be revealed when the user clicks on the summary.</p>
104+
</details>
105+
106+
## Math
107+
108+
Inline math: $E=mc^2$
109+
110+
Block math:
111+
$$
112+
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
113+
$$
114+
115+
## Mermaid
116+
117+
```mermaid
118+
graph TD;
119+
A-->B;
120+
A-->C;
121+
B-->D;
122+
C-->D;
123+
```
124+
125+
_This section will be removed in the future_

0 commit comments

Comments
 (0)