Skip to content

Commit 0bf676e

Browse files
committed
cleanup docusaurus for netlify deploy
1 parent 0383d7d commit 0bf676e

File tree

7 files changed

+34
-90
lines changed

7 files changed

+34
-90
lines changed

.github/workflows/deploy-website.yml

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

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: FormatCodeAndShowDiff
22
on:
33
push:
44
branches: [master]

Dockerfile

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

docker-compose.yml

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

netlify.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[build]
2+
# Directory to change to before starting a build.
3+
# This is where we will look for package.json/.nvmrc/etc.
4+
base = "website"
5+
6+
# Directory (relative to root of your repo) that contains the deploy-ready
7+
# HTML files and assets generated by the build. If a base directory has
8+
# been specified, include it in the publish directory path.
9+
publish = "website/build/react-typescript-cheatsheet"
10+
11+
# Default build command.
12+
command = "yarn build"
13+
14+
# Directory with the serverless Lambda functions to deploy to AWS.
15+
# functions = "project/functions/"

website/i18n/en.json

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,17 @@
6565
"sidebar_label": "Utility Types"
6666
},
6767
"basic/editor_integration": {
68-
"title": "Editor Tooling and Integration",
69-
"sidebar_label": "Editor Tooling and Integration"
68+
"title": "Editor Tooling and Integration"
7069
},
7170
"basic/examples": {
7271
"title": "Example App",
7372
"sidebar_label": "Examples"
7473
},
7574
"basic/getting-started/basic_type_example": {
76-
"title": "Basic Prop Types Examples",
77-
"sidebar_label": "Basic Prop Types Examples"
75+
"title": "Basic Prop Types Examples"
7876
},
7977
"basic/getting-started/class_components": {
80-
"title": "Class Components",
81-
"sidebar_label": "Class Components"
78+
"title": "Class Components"
8279
},
8380
"basic/getting-started/concurrent": {
8481
"title": "Concurrent React/React Suspense"
@@ -87,8 +84,7 @@
8784
"title": "Context"
8885
},
8986
"basic/getting-started/default_props": {
90-
"title": "Typing defaultProps",
91-
"sidebar_label": "Typing defaultProps"
87+
"title": "Typing defaultProps"
9288
},
9389
"basic/getting-started/error_boundaries": {
9490
"title": "Error Boundaries"
@@ -100,30 +96,25 @@
10096
"title": "forwardRef/createRef"
10197
},
10298
"basic/getting-started/function_components": {
103-
"title": "Function Components",
104-
"sidebar_label": "Function Components"
99+
"title": "Function Components"
105100
},
106101
"basic/getting-started/get_derived_props_from_state": {
107102
"title": "getDerivedStateFromProps"
108103
},
109104
"basic/getting-started/hooks": {
110-
"title": "Hooks",
111-
"sidebar_label": "Hooks"
105+
"title": "Hooks"
112106
},
113107
"basic/getting-started/portals": {
114108
"title": "Portals"
115109
},
116110
"basic/getting-started/react_prop_type_example": {
117-
"title": "Useful React Prop Type Examples",
118-
"sidebar_label": "Useful React Prop Type Examples"
111+
"title": "Useful React Prop Type Examples"
119112
},
120113
"basic/getting-started/types_or_interfaces": {
121-
"title": "Types or Interfaces?",
122-
"sidebar_label": "Types or Interfaces?"
114+
"title": "Types or Interfaces?"
123115
},
124116
"basic/linting": {
125-
"title": "Linting",
126-
"sidebar_label": "Linting"
117+
"title": "Linting"
127118
},
128119
"basic/recommended/other_resources": {
129120
"title": "Other React + TypeScript resources",
@@ -138,8 +129,7 @@
138129
"sidebar_label": "Talks"
139130
},
140131
"basic/setup": {
141-
"title": "Setup",
142-
"sidebar_label": "Setup"
132+
"title": "Setup"
143133
},
144134
"basic/troubleshooting/learn_ts": {
145135
"title": "Getting Started",

website/siteConfig.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const siteConfig = {
2626
"Cheatsheets for experienced React developers getting started with TypeScript",
2727
/* TODO: Change this to official branch before gets merged */
2828
url: "https://raulfdm.github.io", // Your website URL
29-
baseUrl: "/react-typescript-cheatsheet/",
29+
baseUrl: "",
3030
/* TODO: Change this to official branch before gets merged */
3131
projectName: "react-typescript-cheatsheet",
3232
organizationName: "raulfdm",
@@ -101,6 +101,13 @@ const siteConfig = {
101101

102102
repoUrl:
103103
"https://github.com/typescript-cheatsheets/react-typescript-cheatsheet",
104+
105+
// // https://docusaurus.io/docs/en/site-config#algolia-object
106+
// algolia: {
107+
// apiKey:
108+
// indexName:
109+
// appId:
110+
// }
104111
};
105112

106113
module.exports = siteConfig;

0 commit comments

Comments
 (0)