Skip to content

Commit

Permalink
refactor: remove contentlayer for mdx (Codehagen#210)
Browse files Browse the repository at this point in the history
* refactor: remove contentlayer for mdx

* fix: version mismatch
  • Loading branch information
matteobad authored Mar 15, 2024
1 parent 774e71a commit bb221ac
Show file tree
Hide file tree
Showing 65 changed files with 717 additions and 3,499 deletions.
7 changes: 0 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ DATABASE_NAME=YOUR_DB_NAME
# Email (Resend)
# -----------------------------------------------------------------------------
RESEND_API_KEY=re_
TEST_EMAIL_ADDRESS='delivered@resend.dev'

# Stripe
STRIPE_API_KEY="sk_test_"
Expand All @@ -35,12 +34,6 @@ NEXT_PUBLIC_STRIPE_STD_MONTHLY_PRICE_ID="price_"
NEXT_PUBLIC_STRIPE_PRO_PRODUCT_ID="prod_"
NEXT_PUBLIC_STRIPE_PRO_MONTHLY_PRICE_ID="price_"

# -----------------------------------------------------------------------------
# Uploads (EdgeStore)
# -----------------------------------------------------------------------------
EDGE_STORE_ACCESS_KEY=acckey_
EDGE_STORE_SECRET_KEY=secKey_

# -----------------------------------------------------------------------------
# OpenBanking
# -----------------------------------------------------------------------------
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,5 @@ yarn-error.log*
# email
.react-email/

# contentlayer
.contentlayer

# turbo
.turbo
1 change: 0 additions & 1 deletion apps/www/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ next-env.d.ts
/.react-email/

.vscode
.contentlayer

venv
109 changes: 0 additions & 109 deletions apps/www/app/(docs)/docs/[[...slug]]/page.tsx

This file was deleted.

File renamed without changes.
9 changes: 9 additions & 0 deletions apps/www/app/(docs)/docs/installation/clerk/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Clerk

## Clerk is our authentication service

---

1. Go to https://clerk.com and create an account. You will be redirected to the Sign In builder page.
2. Choose an application name and customize options if you want. Then, click **Create application**. You will be redirected to your dashboard. There is a section that says API Keys.
3. Copy these values to the appropriate location `.env.local` file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Setup
description: Just some basic web development prerequisites!
# Setup

## Just some basic web development prerequisites!

---

1. You need Node.js installed on your machine. You can download it from [here](https://nodejs.org/en/download/).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Planet Scale
description: Planet Scale is a hosted MySQL database
# Planet Scale

## Planet Scale is a hosted MySQL database

---

1. Go to https://planetscale.com and create an account
Expand All @@ -21,7 +22,7 @@ Scroll down to the **Add credentials to .env** sectio and copy those values to y

Lastly, run `pnpm run db:push`

## Local Alternative
### Local Alternative

If you don't want to use PlanetScale, or don't have a credit card, you can use a local MySQL database. MySQL is open source and free to use.
[Here are instructions to get started](https://dev.mysql.com/doc/mysql-getting-started/en/#mysql-getting-started-installing).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Resend
description: Programmatically send emails!
# Resend

## Programmatically send emails!

---

1. Go to https://resend.com/ and create an account
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Stripe
description: Stripe provides finance APIs!
# Stripe

## Stripe provides finance APIs!

---

1. Follow [these steps](https://docs.stripe.com/stripe-cli/) to install the Stripe CLI.
Expand All @@ -15,7 +16,7 @@ Skip all prompts asking you to active your account. Navigate to https://dashboar

5. Click on the **webhooks** tab. Click on **Test in a local environment**. Find the `endpoint_secret` variable and copy that value to `STRIPE_WEBHOOK_SECRET`

## Product key
### Product key

1. Navigate to your terminal and run the following command using the Stripe CLI:

Expand Down Expand Up @@ -53,7 +54,7 @@ You will get this object back. Copy the `id` value to `NEXT_PUBLIC_STRIPE_STD_PR

Repeat the above step for another product with a different name. Copy the `id` value to `NEXT_PUBLIC_STRIPE_PRO_PRODUCT_ID`.

## Price key
### Price key

You will now create a price property for the two products you created.

Expand Down
5 changes: 3 additions & 2 deletions apps/www/app/(docs)/docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { docsConfig } from "@/config/docs";
import { DocsSidebarNav } from "@/components/docs/sidebar-nav";

import { DocsSidebarNav } from "./_components/sidebar-nav";

interface DocsLayoutProps {
children: React.ReactNode;
Expand All @@ -11,7 +12,7 @@ export default function DocsLayout({ children }: DocsLayoutProps) {
<aside className="fixed top-14 z-30 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 overflow-y-auto border-r py-6 pr-2 md:sticky md:block lg:py-10">
<DocsSidebarNav items={docsConfig.sidebarNav} />
</aside>
{children}
<main className="max-w-4xl">{children}</main>
</div>
);
}
16 changes: 16 additions & 0 deletions apps/www/app/(docs)/docs/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Callout } from "@/components/shared/callout";

# Introduction

## Welcome to the Badget documentation.

---

Badget is a community driven, open source personal finance tracker.
Think of it as the open source version to https://copilot.money

<Callout>
The documentation is still a work in progress. [We welcome
contributions!](https://github.com/projectx-codehagen/Badget)\ You can follow
updates on Twitter [@CodeHagen](https://twitter.com/CodeHagen).
</Callout>
119 changes: 0 additions & 119 deletions apps/www/app/(docs)/guides/[...slug]/page.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions apps/www/app/(docs)/guides/layout.tsx

This file was deleted.

Loading

0 comments on commit bb221ac

Please sign in to comment.