Skip to content

Commit

Permalink
CI/CD for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopkarnik committed Nov 23, 2024
1 parent 2424796 commit 44418e5
Show file tree
Hide file tree
Showing 31 changed files with 168 additions and 101 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Deploy Docs to AWS S3

on:
push:
branches:
- main
paths:
- 'apps/docs/**'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- name: Checkout code
uses: actions/checkout@v3

# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18 # Use the version matching your project

# Step 3: Install dependencies and build the app
- name: Install dependencies and build
run: |
npm ci
npm run build
# Step 4: Configure AWS CLI
- name: Configure AWS CLI
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

# Step 5: Upload to S3
- name: Upload to S3
run: aws s3 sync ./apps/docs/build s3://docs.bsamaritan.com --delete
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "Tutorial - Extras",
"label": "Deployment",
"position": 3,
"link": {
"type": "generated-index"
Expand Down
5 changes: 5 additions & 0 deletions apps/docs/docs/faqs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 5
---

# FAQs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Getting Credentials",
"position": 2,
"link": {
"type": "generated-index",
"description": "Getting API Keys or OAuth Credentials for the third party connections."
}
}
Empty file.
Empty file.
Empty file.
Empty file.
8 changes: 8 additions & 0 deletions apps/docs/docs/getting-started/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Getting Started",
"position": 2,
"link": {
"type": "generated-index",
"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."
}
}
63 changes: 63 additions & 0 deletions apps/docs/docs/getting-started/requirements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
sidebar_position: 1
---

# Requirements

## Public Site

- Any Browser

## Using Locally in Dev Mode

- python >= 3.8
``` bash
# Check Availability and Version
python
```
Download using this site https://www.python.org/downloads/

- node >= 21.7.3
``` bash
# Check Availability and Version
node -v
```
Download using this site https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

- npm >= 10.5.0
``` bash
# Check Availability and Version
npm -v
```
Download using this site https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

- git
``` bash
# Check Availability
git
```
Download using this site https://git-scm.com/downloads

## Using Locally using Docker Compose

- docker >= 27.1.1
``` bash
# Check Availability and Version
docker -v
```
Download using this site https://www.docker.com/products/docker-desktop/


- docker-compose >= 1.29.2
``` bash
# Check Availability and Version
docker-compose -v
```
Download using this site https://docs.docker.com/compose/install

- git
``` bash
# Check Availability
git
```
Download using this site https://git-scm.com/downloads
47 changes: 0 additions & 47 deletions apps/docs/docs/intro.md

This file was deleted.

34 changes: 34 additions & 0 deletions apps/docs/docs/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
sidebar_position: 1
---

# Overview

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.

## Key Features

CASY comes with a fully customizable features that cater to a diverse set of users. Here are some of the key features:

* **Automations**: Create Automations by creating series of trigger and actions of multiple code blocks.
* **Sample Code Generation**: Generate Code Blocks related to third party api calls to Notion, OpenAI, Youtube, Google Drive, etc.
* **Notion Systems**: Links of Notion Pages which can be duplicated with different Systems to gamify all aspect of your life.
* **Third Party Connections**: OAuth and API key connections with lot of third party apps.

## Who Should Use This Documentation

This documentation is intended for:

* **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.
* **Experienced Users**: If you're already familiar with our application, this documentation serves as a valuable resource for advanced configurations, best practices, and troubleshooting.

## How to Use This Documentation

* **Search**: Use the search bar to quickly find information on specific topics.
* **Navigation**:The documentation is organized into sections, so you can navigate through the table of contents to locate the information you need.
* **Links**: We've included links to related articles and resources for in-depth exploration.
* **Feedback**: If you can't find the information you're looking for or have suggestions for improvement, please let us know.

## Contacting Support

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]*.
5 changes: 5 additions & 0 deletions apps/docs/docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 4
---

# Troubleshooting
8 changes: 0 additions & 8 deletions apps/docs/docs/tutorial-basics/_category_.json

This file was deleted.

43 changes: 0 additions & 43 deletions apps/docs/docs/tutorial-basics/create-a-page.md

This file was deleted.

2 changes: 1 addition & 1 deletion apps/docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const config: Config = {
items: [
{
label: 'Tutorial',
to: '/docs/intro',
to: '/docs/overview',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Feature({title, path, description}: FeatureItem) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<img src={path} alt={title} className='w-4 h-4' />
<img src={path} alt={title} width="100" height="100"/>
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
Expand Down
Binary file added apps/docs/static/img/automations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/docs/static/img/notion_systems.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/static/img/sample_code_generation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/static/img/third_party_connections.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"db:migrate": "cd packages/prisma-db && npx prisma migrate dev --name init",
"db:generate": "cd packages/prisma-db && npx prisma generate",
"build-docs": "cd ./apps/docs && npm ci && npm run build",
"build-dashboard-app": "cd ./apps/dashboard-app && npm run build",
"start-dashboard-app": "cd ./apps/dashboard-app && npm run start",
"start-scheduler": "cd ./apps/scheduler && npm run dev",
Expand Down

0 comments on commit 44418e5

Please sign in to comment.