Skip to content

Commit

Permalink
Merge upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sync Fork committed Jan 10, 2024
1 parent 01f4359 commit 14de471
Show file tree
Hide file tree
Showing 701 changed files with 32,245 additions and 4,260 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-wolves-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nhost/docs': major
---

New Docs powered by Mintlify
5 changes: 5 additions & 0 deletions .changeset/sour-fishes-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nhost/dashboard': minor
---

feat: don't show deprecated plans
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ node_modules/
tmp/
.pnpm-store
.turbo
.env
.env*
.secrets
out/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function OverviewTopBar() {
<div className="mt-1 inline-grid grid-flow-col items-center justify-start gap-2 md:mt-0">
<Chip
size="small"
label={isPro ? 'Pro' : 'Starter'}
label={currentProject.plan.name}
color={isPro ? 'primary' : 'default'}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function AllWorkspaceApps() {

<Chip
size="small"
label={project.plan.isFree ? 'Starter' : 'Pro'}
label={project.plan.name}
color={project.plan.isFree ? 'default' : 'primary'}
/>
</ListItem.Button>
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/gql/app/prefetchNewApp.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ query PrefetchNewApp {
regions(order_by: { city: asc }) {
...PrefetchNewAppRegions
}
plans(order_by: { sort: asc }) {
plans(order_by: {sort: asc}, where: {deprecated: {_eq: false}}) {
...PrefetchNewAppPlans
}
workspaces {
Expand Down
33 changes: 32 additions & 1 deletion dashboard/src/utils/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/build

# Generated files
.docusaurus
.cache-loader

# Misc
Expand All @@ -18,5 +17,3 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
docs/reference/docgen
43 changes: 19 additions & 24 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
# Nhost Docs
# Mintlify Starter Kit

This documentation describes how to build, start and test the documentation locally.
Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including

### Installation
- Guide pages
- Navigation
- Customizations
- API Reference pages
- Use of popular components

```bash
$ pnpm i
```
### Development

### Local Development
Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command

```bash
$ pnpm start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

### Build

```bash
$ pnpm build
npm i -g mintlify
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.
Run the following command at the root of your documentation (where mint.json is)

### Serve

```bash
$ pnpm serve
```
mintlify dev
```

### Publishing Changes

This command serves the static content from the `build` directory.
Install our Github App to autopropagate changes from youre repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.

### Contributing
#### Troubleshooting

All pull requests are greatly appreciated! See our [contributing guide](https://github.com/nhost/nhost/blob/main/CONTRIBUTING.md) to get started.
- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
- Page loads as a 404 - Make sure you are running in a folder with `mint.json`
3 changes: 3 additions & 0 deletions docs/_snippets/snippet-example.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## My Snippet

<Info>This is an example of a reusable snippet</Info>
Loading

0 comments on commit 14de471

Please sign in to comment.