Skip to content

Commit fa2f7b0

Browse files
committed
docs deploy in package.json
1 parent aff02ad commit fa2f7b0

13 files changed

+57
-59
lines changed

.github/workflows/docs.yml

-39
This file was deleted.

apps/docs/docs/deployment/translate-your-site.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
sidebar_position: 2
33
---
44

5-
# Translate your site
5+
<!-- # Translate your site
66
77
Let's translate `docs/intro.md` to French.
88
@@ -85,4 +85,4 @@ Or build your site to include all the locales at once:
8585
8686
```bash
8787
npm run build
88-
```
88+
``` -->

apps/docs/docs/faqs.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ sidebar_position: 5
55
# FAQs
66

77
1.
8-
2.
8+
2.
9+
3.

apps/docs/docs/getting-started/congratulations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 6
44

55
# Congratulations!
66

7-
You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
7+
<!-- You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
88
99
Docusaurus has **much more to offer**!
1010
@@ -20,4 +20,4 @@ Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://
2020
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
2121
- Add a [search bar](https://docusaurus.io/docs/search)
2222
- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
23-
- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
23+
- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support) -->

apps/docs/docs/getting-started/create-a-blog-post.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 3
44

55
# Create a Blog Post
66

7-
Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...
7+
<!-- Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...
88
99
## Create your first Post
1010
@@ -31,4 +31,4 @@ Congratulations, you have made your first post!
3131
Feel free to play around and edit this post as much as you like.
3232
```
3333
34-
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
34+
A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings). -->

apps/docs/docs/getting-started/create-a-document.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 2
44

55
# Create a Document
66

7-
Documents are **groups of pages** connected through:
7+
<!-- Documents are **groups of pages** connected through:
88
99
- a **sidebar**
1010
- **previous/next navigation**
@@ -54,4 +54,4 @@ export default {
5454
},
5555
],
5656
};
57-
```
57+
``` -->

apps/docs/docs/getting-started/deploy-your-site.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 5
44

55
# Deploy your site
66

7-
Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**).
7+
<!-- Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**).
88
99
It builds your site as simple **static HTML, JavaScript and CSS files**.
1010
@@ -28,4 +28,4 @@ npm run serve
2828
2929
The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
3030
31-
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
31+
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**). -->

apps/docs/docs/getting-started/markdown-features.mdx renamed to apps/docs/docs/getting-started/markdown-features.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 4
44

55
# Markdown Features
66

7-
Docusaurus supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**.
7+
<!-- Docusaurus supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**.
88
99
## Front Matter
1010
@@ -149,4 +149,4 @@ export const Highlight = ({children, color}) => (
149149
150150
This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
151151
152-
This is <Highlight color="#1877F2">Facebook blue</Highlight> !
152+
This is <Highlight color="#1877F2">Facebook blue</Highlight> ! -->

apps/docs/docusaurus.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const config: Config = {
4040
// Please change this to your repo.
4141
// Remove this to remove the "edit this page" links.
4242
editUrl:
43-
'https://github.com/anoopkarnik/code-automation-systems/tree/main/apps/docs/docs/',
43+
'https://github.com/anoopkarnik/code-automation-systems/tree/main/apps/docs',
4444
},
4545
blog: {
4646
showReadingTime: true,

apps/docs/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "docusaurus build",
99
"swizzle": "docusaurus swizzle",
1010
"deploy": "docusaurus deploy",
11+
"deploy-s3": "docusaurus build && dotenv -e .env -- aws s3 rm s3://docs.bsamaritan.com --recursive && dotenv -e .env -- aws s3 sync ./build s3://docs.bsamaritan.com",
1112
"clear": "docusaurus clear",
1213
"serve": "docusaurus serve",
1314
"write-translations": "docusaurus write-translations",
@@ -19,6 +20,7 @@
1920
"@docusaurus/preset-classic": "3.6.1",
2021
"@mdx-js/react": "^3.0.0",
2122
"clsx": "^2.0.0",
23+
"dotenv-cli": "^7.4.4",
2224
"prism-react-renderer": "^2.3.0",
2325
"react": "^18.0.0",
2426
"react-dom": "^18.0.0"

apps/docs/src/pages/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function HomepageHeader() {
1919
<div className={styles.buttons}>
2020
<Link
2121
className="button button--secondary button--lg"
22-
to="/docs/intro">
23-
CASY Tutorial
22+
to="/docs/overview">
23+
CASY Overview
2424
</Link>
2525
</div>
2626
</div>

package-lock.json

+37-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
99
"db:migrate": "cd packages/prisma-db && npx prisma migrate dev --name init",
1010
"db:generate": "cd packages/prisma-db && npx prisma generate",
11-
"build-docs": "cd ./apps/docs && docusaurus && docusaurus build",
11+
"build-deploy-docs": "cd ./apps/docs && npm run deploy-s3 ",
1212
"build-dashboard-app": "cd ./apps/dashboard-app && npm run build",
1313
"start-dashboard-app": "cd ./apps/dashboard-app && npm run start",
1414
"start-scheduler": "cd ./apps/scheduler && npm run dev",

0 commit comments

Comments
 (0)