Skip to content

Commit

Permalink
fix docusaurus (#61)
Browse files Browse the repository at this point in the history
* fix docs & make add-remote-resource work only work when REMOTE_REPO_URL env variable is set

* Update README.md
  • Loading branch information
matthewwong525 authored Apr 14, 2024
1 parent 1c921e5 commit 316b728
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 26 deletions.
30 changes: 10 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Production Boilerplate for Startups

[Join Discord Community](https://discord.gg/8cUHbgAHXH)
[See documentation to get started](https://resources.devtodollars.com/docs)

[See Documentation](https://docs.devtodollars.com)

## Getting Started

To get started, choose which frontend you need and go from there:
## Additional Support
Support me by purchasing premium support from yours truly :)

- [Choose Flutter](./flutter/README.md) if you plan to build or expand into cross-platform apps (e.g. Duolingo, Fitbit, Spotify, Tinder, etc.)
- [Choose NextJS](./nextjs/README.md) if SEO, page load speeds, and web-specific libraries are integral to your app (e.g. Shopify, Medium, Wix, etc.)

Additionally, it's also possible to start with one-platform and move onto the next one depending on your needs. For example, start with Next.JS and then move to Flutter when a mobile app is needed. Both are configured to work straight out of the box.
| Code + Docs (**$0**) | Premium Support (**$49**) | I'll Build Your MVP (**$5000~**) |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| ✓ Code | ✓ 30 Min Setup Call | ✓ Completed MVP |
| ✓ Documentation | ✓ Premium Discord Support | ✓ Technical Co-founder |
| ✓ Discord Community | ✓ Weekly Office Hours | |
| ✓ Life-time Updates | ✓ Support Matt | |
| [View Code](https://github.com/devtodollars/startup-boilerplate) | [Buy Now](https://flutter.devtodollars.com/payments?price=price_1P3MEnFttF99a1NCjNcCLLvA) | [Book a Call](https://usemotion.com/meet/ithinkwong/mvp-consulting?d=30) |

## What's Included:

Expand Down Expand Up @@ -77,14 +78,3 @@ Additionally, it's also possible to start with one-platform and move onto the ne

### 🚧 [Error Monitoring](https://github.com/devtodollars/flutter-supabase-production-template/issues/18) ([Sentry](https://sentry.io/welcome/)) 🚧

## Additional Support
Support me by purchasing premium support from yours truly :)


| Code + Docs (**$0**) | Premium Support (**$49**) | I'll Build Your MVP (**$5000~**) |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| ✓ Code | ✓ 30 Min Setup Call | ✓ Completed MVP |
| ✓ Documentation | ✓ Premium Discord Support | ✓ Technical Co-founder |
| ✓ Discord Community | ✓ Weekly Office Hours | |
| ✓ Life-time Updates | ✓ Support Matt | |
| [View Code](https://github.com/devtodollars/startup-boilerplate) | [Buy Now](https://flutter.devtodollars.com/payments?price=price_1P3MEnFttF99a1NCjNcCLLvA) | [Book a Call](https://usemotion.com/meet/ithinkwong/mvp-consulting?d=30) |
4 changes: 0 additions & 4 deletions docusaurus/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
.docusaurus
.cache-loader

# Resources
/blog
/docs

# Misc
.DS_Store
.env.local
Expand Down
10 changes: 8 additions & 2 deletions docusaurus/add-remote-resources.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
const shell = require('shelljs');
const tmp = require('tmp');

// Define the repository URL and the target directory
const REPO_URL = "https://github.com/devtodollars/resources.git";
// Check for the environment variable and use it if available, otherwise exit
const REPO_URL = process.env.REMOTE_REPO_URL;
if (!REPO_URL) {
console.log("Environment variable RESOURCE_REPO_URL is not set. Exiting.");
process.exit();
}

// Define target repo
const TARGET_DIR = shell.pwd().stdout;

// Create a temporary directory for cloning
Expand Down
1 change: 1 addition & 0 deletions docusaurus/docs/intro.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 1
slug: /
---

# Tutorial Intro
Expand Down
Binary file added docusaurus/static/img/docusaurus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 316b728

Please sign in to comment.