-
Notifications
You must be signed in to change notification settings - Fork 2
/
project_setup.sh
executable file
·30 lines (25 loc) · 1.19 KB
/
project_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# npx create-docusaurus@latest [name] [template] [rootDir]
name="docusaurus";
tempDir="${HOME}/TEMP/";
npx create-docusaurus@latest $name classic "${tempDir}" --typescript
mv "${tempDir}${name}"/* . # all except .gitignore
rm -r "${tempDir}${name}"
# types for react-dom
# for:
# import {renderToStaticMarkup} from "react-dom/server";
# https://react.dev/reference/react-dom/server/renderToStaticMarkup
npm install -S @types/react-dom
# YouTube embed videos
# see: https://github.com/facebook/docusaurus/blob/main/website/src/pages/index.tsx
# https://www.npmjs.com/package/react-lite-youtube-embed
npm install -S react-lite-youtube-embed
# Font Awesome
# see: https://docusaurus.community/knowledge/design/icons/fontawesome/
#
# https://fontawesome.com/docs/web/use-with/react/
# https://fontawesome.com/docs/web/use-with/react/style
#
# https://fontawesome.com/search?o=r&m=free&s=solid (1390 icons)
# https://fontawesome.com/search?o=r&m=free&s=regular (163 icons)
# https://fontawesome.com/search?o=r&f=brands (484 icons)
npm install -S @fortawesome/fontawesome-svg-core @fortawesome/react-fontawesome@latest @fortawesome/free-solid-svg-icons @fortawesome/free-regular-svg-icons @fortawesome/free-brands-svg-icons