Skip to content

Commit 4967148

Browse files
authored
feat: Search and homepage (#2)
1 parent b2de638 commit 4967148

40 files changed

+1155
-1109
lines changed

.eslintrc.js

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
module.exports = {
55
root: true,
66
env: { browser: true, es2020: true },
7-
plugins: ['perfectionist', 'unused-imports', '@typescript-eslint', 'prettier'],
7+
plugins: ['unused-imports', '@typescript-eslint', 'prettier'],
88
extends: ['airbnb', 'airbnb-typescript', 'airbnb/hooks', 'prettier'],
99
parserOptions: {
1010
sourceType: 'module',
@@ -62,48 +62,5 @@ module.exports = {
6262
0,
6363
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
6464
],
65-
// perfectionist
66-
'perfectionist/sort-exports': [1, { order: 'asc', type: 'line-length' }],
67-
'perfectionist/sort-named-imports': [1, { order: 'asc', type: 'line-length' }],
68-
'perfectionist/sort-named-exports': [1, { order: 'asc', type: 'line-length' }],
69-
'perfectionist/sort-imports': [
70-
1,
71-
{
72-
order: 'asc',
73-
type: 'line-length',
74-
'newlines-between': 'always',
75-
groups: [
76-
'style',
77-
'type',
78-
['builtin', 'external'],
79-
'custom-mui',
80-
'custom-routes',
81-
'custom-hooks',
82-
'custom-utils',
83-
'internal',
84-
'custom-components',
85-
'custom-sections',
86-
'custom-auth',
87-
'custom-types',
88-
['parent', 'sibling', 'index'],
89-
['parent-type', 'sibling-type', 'index-type'],
90-
'object',
91-
'unknown',
92-
],
93-
'custom-groups': {
94-
value: {
95-
['custom-mui']: '@mui/**',
96-
['custom-auth']: 'src/auth/**',
97-
['custom-hooks']: 'src/hooks/**',
98-
['custom-utils']: 'src/utils/**',
99-
['custom-types']: 'src/types/**',
100-
['custom-routes']: 'src/routes/**',
101-
['custom-sections']: 'src/sections/**',
102-
['custom-components']: 'src/components/**',
103-
},
104-
},
105-
'internal-pattern': ['src/**'],
106-
},
107-
],
10865
},
10966
};
File renamed without changes.

docs/introduction.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Tutorial Intro
6+
7+
Let's discover **Docusaurus in less than 5 minutes**.
8+
9+
## Getting Started
10+
11+
Get started by **creating a new site**.
12+
13+
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14+
15+
### What you'll need
16+
17+
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
18+
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19+
20+
## Generate a new site
21+
22+
Generate a new Docusaurus site using the **classic template**.
23+
24+
The classic template will automatically be added to your project after you run the command:
25+
26+
```bash
27+
npm init docusaurus@latest my-website classic
28+
```
29+
30+
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
31+
32+
The command also installs all necessary dependencies you need to run Docusaurus.
33+
34+
## Start your site
35+
36+
Run the development server:
37+
38+
```bash
39+
cd my-website
40+
npm run start
41+
```
42+
43+
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44+
45+
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
46+
47+
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.

docs/swissknife/index.mdx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Tutorial Intro
6+
7+
Let's discover **Docusaurus in less than 5 minutes**.
8+
9+
## Getting Started
10+
11+
Get started by **creating a new site**.
12+
13+
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14+
15+
### What you'll need
16+
17+
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
18+
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19+
20+
## Generate a new site
21+
22+
Generate a new Docusaurus site using the **classic template**.
23+
24+
The classic template will automatically be added to your project after you run the command:
25+
26+
```bash
27+
npm init docusaurus@latest my-website classic
28+
```
29+
30+
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
31+
32+
The command also installs all necessary dependencies you need to run Docusaurus.
33+
34+
## Start your site
35+
36+
Run the development server:
37+
38+
```bash
39+
cd my-website
40+
npm run start
41+
```
42+
43+
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44+
45+
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
46+
47+
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.

docs/tutorial-basics/_category_.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/tutorial-basics/congratulations.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/tutorial-basics/create-a-blog-post.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/tutorial-basics/create-a-document.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/tutorial-basics/create-a-page.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/tutorial-basics/deploy-your-site.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)