Skip to content

Commit 44418e5

Browse files
committed
CI/CD for docs
1 parent 2424796 commit 44418e5

31 files changed

+168
-101
lines changed

.github/workflows/docs.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Deploy Docs to AWS S3
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'apps/docs/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Step 1: Check out the repository
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
# Step 2: Set up Node.js
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 18 # Use the version matching your project
24+
25+
# Step 3: Install dependencies and build the app
26+
- name: Install dependencies and build
27+
run: |
28+
npm ci
29+
npm run build
30+
31+
# Step 4: Configure AWS CLI
32+
- name: Configure AWS CLI
33+
uses: aws-actions/configure-aws-credentials@v2
34+
with:
35+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
36+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
37+
aws-region: ${{ secrets.AWS_REGION }}
38+
39+
# Step 5: Upload to S3
40+
- name: Upload to S3
41+
run: aws s3 sync ./apps/docs/build s3://docs.bsamaritan.com --delete

apps/docs/docs/tutorial-extras/_category_.json renamed to apps/docs/docs/deployment/_category_.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"label": "Tutorial - Extras",
2+
"label": "Deployment",
33
"position": 3,
44
"link": {
55
"type": "generated-index"

apps/docs/docs/faqs.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 5
3+
---
4+
5+
# FAQs
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Getting Credentials",
3+
"position": 2,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Getting API Keys or OAuth Credentials for the third party connections."
7+
}
8+
}

apps/docs/docs/getting-started/Get Credentials/google-drive.md

Whitespace-only changes.

apps/docs/docs/getting-started/Get Credentials/notion.md

Whitespace-only changes.

apps/docs/docs/getting-started/Get Credentials/openai.md

Whitespace-only changes.

apps/docs/docs/getting-started/Get Credentials/youtube.md

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Getting Started",
3+
"position": 2,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this section, we'll guide you through the initial steps to get started with deploying the application locally. Before you dive into the specifics, make sure you meet the system requirements and have everything in place."
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Requirements
6+
7+
## Public Site
8+
9+
- Any Browser
10+
11+
## Using Locally in Dev Mode
12+
13+
- python >= 3.8
14+
``` bash
15+
# Check Availability and Version
16+
python
17+
```
18+
Download using this site https://www.python.org/downloads/
19+
20+
- node >= 21.7.3
21+
``` bash
22+
# Check Availability and Version
23+
node -v
24+
```
25+
Download using this site https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
26+
27+
- npm >= 10.5.0
28+
``` bash
29+
# Check Availability and Version
30+
npm -v
31+
```
32+
Download using this site https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
33+
34+
- git
35+
``` bash
36+
# Check Availability
37+
git
38+
```
39+
Download using this site https://git-scm.com/downloads
40+
41+
## Using Locally using Docker Compose
42+
43+
- docker >= 27.1.1
44+
``` bash
45+
# Check Availability and Version
46+
docker -v
47+
```
48+
Download using this site https://www.docker.com/products/docker-desktop/
49+
50+
51+
- docker-compose >= 1.29.2
52+
``` bash
53+
# Check Availability and Version
54+
docker-compose -v
55+
```
56+
Download using this site https://docs.docker.com/compose/install
57+
58+
- git
59+
``` bash
60+
# Check Availability
61+
git
62+
```
63+
Download using this site https://git-scm.com/downloads

apps/docs/docs/intro.md

-47
This file was deleted.

apps/docs/docs/overview.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Overview
6+
7+
CASY (Code Automation System) is a open source semi code automation solution to automate every aspect of your life with sample code generation and public workflows with third party connections like Notion, Open AI, Youtube and Google Drive using the above boilerplate.
8+
9+
## Key Features
10+
11+
CASY comes with a fully customizable features that cater to a diverse set of users. Here are some of the key features:
12+
13+
* **Automations**: Create Automations by creating series of trigger and actions of multiple code blocks.
14+
* **Sample Code Generation**: Generate Code Blocks related to third party api calls to Notion, OpenAI, Youtube, Google Drive, etc.
15+
* **Notion Systems**: Links of Notion Pages which can be duplicated with different Systems to gamify all aspect of your life.
16+
* **Third Party Connections**: OAuth and API key connections with lot of third party apps.
17+
18+
## Who Should Use This Documentation
19+
20+
This documentation is intended for:
21+
22+
* **New Users**: If you're new to CASY, this guide will help you get started, set up your account, and begin using the application effectively.
23+
* **Experienced Users**: If you're already familiar with our application, this documentation serves as a valuable resource for advanced configurations, best practices, and troubleshooting.
24+
25+
## How to Use This Documentation
26+
27+
* **Search**: Use the search bar to quickly find information on specific topics.
28+
* **Navigation**:The documentation is organized into sections, so you can navigate through the table of contents to locate the information you need.
29+
* **Links**: We've included links to related articles and resources for in-depth exploration.
30+
* **Feedback**: If you can't find the information you're looking for or have suggestions for improvement, please let us know.
31+
32+
## Contacting Support
33+
34+
If you encounter any issues or have questions not covered in this documentation, our dedicated support team is here to assist you. Contact us at *[email protected]*.

apps/docs/docs/troubleshooting.md

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

apps/docs/docs/tutorial-basics/_category_.json

-8
This file was deleted.

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

-43
This file was deleted.

apps/docs/docusaurus.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const config: Config = {
9696
items: [
9797
{
9898
label: 'Tutorial',
99-
to: '/docs/intro',
99+
to: '/docs/overview',
100100
},
101101
],
102102
},

apps/docs/src/components/HomepageFeatures/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Feature({title, path, description}: FeatureItem) {
5151
return (
5252
<div className={clsx('col col--4')}>
5353
<div className="text--center">
54-
<img src={path} alt={title} className='w-4 h-4' />
54+
<img src={path} alt={title} width="100" height="100"/>
5555
</div>
5656
<div className="text--center padding-horiz--md">
5757
<Heading as="h3">{title}</Heading>

apps/docs/static/img/automations.png

279 KB
Loading
-11.7 KB
Loading
54.3 KB
Loading
23.4 KB
Loading

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +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 && npm ci && npm run build",
1112
"build-dashboard-app": "cd ./apps/dashboard-app && npm run build",
1213
"start-dashboard-app": "cd ./apps/dashboard-app && npm run start",
1314
"start-scheduler": "cd ./apps/scheduler && npm run dev",

0 commit comments

Comments
 (0)