Skip to content

Commit 8edd9e7

Browse files
committed
[Init] Initial deploy
1 parent b19bdc0 commit 8edd9e7

Some content is hidden

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

49 files changed

+18876
-33
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
cache: npm
21+
- name: Install dependencies
22+
run: |
23+
npm install
24+
- name: Build website
25+
run: |
26+
npm run build
27+
- name: Deploy to GitHub Pages
28+
uses: JamesIves/github-pages-deploy-action@v4
29+
with:
30+
folder: build

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Seongjun Jang
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Whitespace-only changes.

babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

docs/intro.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
sidebar_position: 0
3+
---
4+
5+
# Intro
6+
7+
Get Codes
8+
9+
```python
10+
print("Hello, World!")
11+
```

docs/novice-high/01/01/1.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# 수도코드

docs/novice-high/01/01/2.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 2
3+
---
4+
5+
# 수도코드 2

docs/novice-high/01/01/3.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# 수도코드 3
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"position": 100,
3+
"label": "수도코드",
4+
"collapsible": true,
5+
"collapsed": true
6+
}

docs/novice-high/01/01/index.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
sidebar_position: 100
3+
---
4+
5+
# 수도코드
6+
7+
<sup>기본 개념 1개, 연습 문제 1개, 테스트 1개</sup>
8+
9+
수도코드의 정의와 읽는 방법에 대해 배우게 됩니다.

docs/novice-high/01/02/1.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# 기호 변환

docs/novice-high/01/02/2.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 2
3+
---
4+
5+
# O, Ω, Θ

docs/novice-high/01/02/3.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# 펜트하우스

docs/novice-high/01/02/4.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 4
3+
---
4+
5+
# 수식들의 관계
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"position": 200,
3+
"label": "점근 표기법",
4+
"collapsible": true,
5+
"collapsed": true
6+
}

docs/novice-high/01/02/index.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
sidebar_position: 200
3+
---
4+
5+
# 점근 표기법
6+
7+
<sup>기본 개념 1개, 연습 문제 2개, 테스트 1개</sup>
8+
9+
점근 표기법의 정의와 그 쓰임에 대해 배우게 됩니다.

docs/novice-high/01/_category_.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"position": 1,
3+
"label": "01. 시간, 공간복잡도",
4+
"collapsible": true,
5+
"collapsed": true
6+
}

docs/novice-high/01/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
sidebar_position: 100
3+
---
4+
5+
# 시간, 공간복잡도
6+
7+
시간복잡도와 공간복잡도의 정의와 그 쓰임에 대해 배우게 됩니다.

docs/novice-high/_category_.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"position": 3,
3+
"label": "Novice High",
4+
"collapsible": true,
5+
"collapsed": true
6+
}

docs/overview/_category_.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"position": 300,
3+
"label": "Overview",
4+
"collapsible": true,
5+
"collapsed": true
6+
}

docs/overview/katex.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
sidebar_position: 200
3+
title: KaTeX
4+
---
5+
6+
# $\KaTeX$
7+
8+
$\KaTeX$ equations can be inserted into Markdown docs pages using dollar
9+
sign notation (`$<inline>$` or `$$<block>$$`).
10+
11+
See the
12+
[Docusaurus](https://docusaurus.io/docs/markdown-features/math-equations) and
13+
[$\KaTeX$](https://katex.org/) documentation for more.

docs/overview/python.md

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
sidebar_position: 100
3+
---
4+
5+
# Python Code Blocks
6+
7+
Markdown preformatted code blocks with the `python` language identifier are
8+
automatically converted to runnable and editable code blocks thanks
9+
to [react-py](https://github.com/elilambnz/react-py).
10+
See the react-py repo and documentation for more info.
11+
12+
For example, in a Markdown docs file:
13+
14+
````
15+
```python
16+
print("Hello, World!")
17+
```
18+
````
19+
20+
Becomes:
21+
22+
```python
23+
print("Hello, World!")
24+
```
25+
26+
Play and reset buttons appear when hovering over the code windows.
27+
28+
Non-runnable preformatted python blocks can be included by using `py` as the
29+
language identifier.
30+
31+
````
32+
```py
33+
print("Hello, World!")
34+
```
35+
````
36+
37+
Becomes:
38+
39+
```py
40+
print("Hello, World!")
41+
```
42+
43+
## Modifying the Default Code Editor / Runner
44+
45+
The `CodeEditor` component is located in `src/components/CodeEditor.js`.
46+
This code editor uses font files located in `static/fonts` for the run and
47+
reset buttons. Modifying this will alter all code editing windows.
48+
49+
Code windows are automatically inserted into documents by the modified
50+
`CodeBlock` theme component located in `src/theme/CodeBlock/index.js`. This
51+
is a good place to pass any global/default props to the `CodeEditor`
52+
component – for example, globally setting the `showButtons` prop to have
53+
play and reset buttons always visible.
54+
55+
The `PythonProvider` required by `react-py` is located in the `Root` theme
56+
component in `src/theme/Root.js`. This is where lazy-loading or any other
57+
global `react-py` settings can be set.
58+
59+
## Notes
60+
61+
If you intend to have several runnable code windows on a single page, it is
62+
recommended to leave the react-py `lazy-loading` flag on. This means code
63+
runner workers are only spawned when a code block is run. Without this, it
64+
is likely several of the code windows will not work on weaker
65+
browsers/computers.
66+
67+
## A Note on Usability
68+
69+
The default implementation of runnable and editable python code blocks on this
70+
site is keyboard-navigable.
71+
72+
When navigating with the keyboard using <kbd>tab</kbd> or <kbd>shift +
73+
tab</kbd>, code blocks can be focused, but do NOT capture tabs to indent code.
74+
Tabs are only captured when the code block is either clicked on, or some other
75+
key is used to interact with the code block (e.g. arrow keys, typing
76+
characters) — at which point tabs and shift-tabs will indent and dedent the
77+
code.
78+
To go back to navigating the page, the escape key can be pressed — at which
79+
point tabs will work as before.
80+
81+
Try it below:
82+
83+
### The First Code Block
84+
85+
```python
86+
def main():
87+
print("Hello, Code Block 1!")
88+
89+
main()
90+
```
91+
92+
### The second Code Block
93+
94+
```python
95+
def main():
96+
print("Hello, Code Block 2!")
97+
98+
main()
99+
```

docs/overview/search_bar.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
sidebar_position: 300
3+
---
4+
5+
# Search Bar
6+
7+
A search bar is available using
8+
[`docusaurus-search-local`](https://github.com/easyops-cn/docusaurus-search-local).
9+
Read the documentation for information on configuring this to support other
10+
languages etc.
11+
12+
**Note:** This the search bar only works after building and serving the docs
13+
site.

0 commit comments

Comments
 (0)