Skip to content

Commit 52263ed

Browse files
committed
fix: docs layout + troubleshoot section (#2670)
* update docs layout * update docs styling * add troubleshoot section
1 parent cc9da5a commit 52263ed

File tree

16 files changed

+83
-47
lines changed

16 files changed

+83
-47
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Contributing
22

33
To keep all docs in one place, we've moved the contributing guide here:
4-
https://docs.onlook.com/contributing/developers
4+
https://docs.onlook.com/developers
55

66
### Running locally
77

88
To get set up and run Onlook locally, see here:
9-
https://docs.onlook.com/contributing/developers/running-locally
9+
https://docs.onlook.com/developers/running-locally

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ builders.
100100
## Getting Started
101101

102102
Available soon with a [hosted app](https://onlook.com) or
103-
[run locally](https://docs.onlook.com/contributing/developers/running-locally).
103+
[run locally](https://docs.onlook.com/developers/running-locally).
104104

105105
### Usage
106106

@@ -138,8 +138,7 @@ objects, and experiment with layouts.
138138
For full documentation, visit [docs.onlook.com](https://docs.onlook.com)
139139

140140
To see how to Contribute, visit
141-
[Contributing to Onlook](https://docs.onlook.com/contributing/developers) in our
142-
docs.
141+
[Contributing to Onlook](https://docs.onlook.com/developers) in our docs.
143142

144143
## How it works
145144

@@ -158,7 +157,7 @@ displays DOM elements declaratively (e.g. jsx/tsx/html). We are focused on
158157
making it work well with Next.js and TailwindCSS for now.
159158

160159
For a full walkthrough, check out our
161-
[Architecture Docs](https://docs.onlook.com/contributing/developers/architecture).
160+
[Architecture Docs](https://docs.onlook.com/developers/architecture).
162161

163162
### Our Tech Stack
164163

File renamed without changes.
File renamed without changes.

docs/content/docs/contributing/developers/index.mdx renamed to docs/content/docs/developers/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ When contributing to this repository, please first discuss the change you wish t
2121
Please note we have a [code of conduct](https://github.com/onlook-dev/onlook/blob/main/CODE_OF_CONDUCT.md), please follow it in all your interactions with the project.
2222

2323
### Running the project locally
24-
You can build the project from source using instructions [here](/contributing/developers/running-locally).
24+
You can build the project from source using instructions [here](/developers/running-locally).
2525

2626
### Pull Request Process
2727

docs/content/docs/contributing/developers/running-locally.mdx renamed to docs/content/docs/developers/running-locally.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Run the interactive environment setup script:
7373
bun run setup:env
7474
```
7575

76-
Note: If you'd prefer manually setting up the environment variables, see the [appendix](/contributing/developers/appendix) for instructions.
76+
Note: If you'd prefer manually setting up the environment variables, see the [appendix](/developers/appendix) for instructions.
7777

7878
### 6. Initialize the database
7979

@@ -125,6 +125,6 @@ node --version
125125
Now that you have Onlook running locally, explore these resources to make your first contribution or learn more about the architecture. Understanding how Onlook works will help you contribute more effectively to this visual editor for React and TailwindCSS.
126126

127127
<Cards>
128-
<Card title="Learn about Architecture" href="/contributing/developers/architecture" />
129-
<Card title="How to Contribute" href="/contributing/developers" />
128+
<Card title="Learn about Architecture" href="/developers/architecture" />
129+
<Card title="How to Contribute" href="/developers" />
130130
</Cards>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Troubleshooting
3+
description: Troubleshooting common issues
4+
---
5+
6+
# Common Issues
7+
8+
### Codesandbox Preview
9+
10+
Codesandbox may ask you to confirm to proceed. You can click the button by switching to Preview mode in onlook, and click the "Yes, proceed to preview" link and switch back. The UI should render properly inside the iframe after that.
11+
12+
![Codesandbox confirmation mode](/images/csb-proceed-to-preview.png)
13+
14+
![Switch to Preview mode](/images/visual-switch-to-preview.png)
15+
16+
### Authentication Issues
17+
18+
If you encounter issues with reloading pages and being unauthenticated then check your node version, install a more recent version, re-install dependencies and restart the project.
19+
Minimum version `v20.16.0` or latest is recommended.
20+
21+
Avoid version `v20.11.0` of Node as it has shown this issue in the past.
22+
23+
```bash
24+
node --version
25+
```
26+
27+
You may have to delete cookies to clear the authentication state.
28+
29+
![Delete cookies](/images/delete-cookies.png)
30+
31+
### "Column not found" error
32+
33+
If you encounter issues such as "Column not found" error, your database may be out of sync with the schema. There are 2 things to try to get it back in sync:
34+
35+
1. Run `bun db:push` to push the schema to the database. If there are conflicts, you can try step 2.
36+
2. Run `bun db:reset` to fully reset the database and re-run the migrations. WARNING: This will delete all data in the database.

docs/content/docs/faq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ You can report bugs or request features on our [GitHub Issues page](https://gith
123123

124124
### How can I contribute to Onlook?
125125

126-
Check out our [Contributing Guide](/contributing/developers) for information on how to contribute to Onlook.
126+
Check out our [Contributing Guide](/developers) for information on how to contribute to Onlook.

docs/content/docs/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Ready to dive in? Here's how to get started with Onlook:
4747
Want to contribute to Onlook? Check out our developer documentation:
4848

4949
<Cards>
50-
<Card title="How to Contribute" href="/contributing/developers" />
51-
<Card title="Run Onlook Locally" href="/contributing/developers/running-locally" />
52-
<Card title="Onlook Architecture" href="/contributing/developers/architecture" />
50+
<Card title="How to Contribute" href="/developers" />
51+
<Card title="Run Onlook Locally" href="/developers/running-locally" />
52+
<Card title="Onlook Architecture" href="/developers/architecture" />
5353
</Cards>
5454

5555
## Need Help?

0 commit comments

Comments
 (0)