Skip to content

Commit 4622d89

Browse files
lakesareaduh95
andauthored
Building uppy.io/docs VS uppy.io/blog (#243)
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 5358994 commit 4622d89

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

README.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
11
# Uppy.io
22

3-
Website and documentation for [uppy](https://uppy.io/).
3+
Website and documentation for [uppy.io](https://uppy.io).
44

5-
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern
6-
static website generator.
5+
Code for [uppy.io/blog](https://uppy.io/blog) lives in this repo.
6+
Code for [uppy.io/docs](https://uppy.io/docs/quick-start) lives in
7+
[github.com/transloadit/uppy](https://github.com/transloadit/uppy).
78

89
## Developer guide
910

10-
### Installation
11+
If you want to edit [uppy.io/blog](https://uppy.io/blog), just edit the files in
12+
this repo.
13+
14+
If you want to edit [uppy.io/docs](https://uppy.io/docs/quick-start), then you
15+
should:
16+
17+
1. Clone both the **uppy** repo and **uppy.io** repo.
18+
19+
2. Then, from your `uppy.io` clone, run:
20+
21+
```sh
22+
ln -s /path-to-your-uppy-repo/docs docs
23+
```
24+
25+
Now, treat **/uppy/docs** as your working directory, but run the build/lint
26+
scripts from your **/uppy.io** directory - **/uppy.io** will pick up your
27+
changes.
28+
29+
### Install Dependencies
1130

1231
```sh
1332
corepack yarn
@@ -19,8 +38,17 @@ corepack yarn
1938
corepack yarn dev
2039
```
2140

22-
This command starts a local development server and opens up a browser window.
23-
Most changes are reflected live without having to restart the server.
41+
This command builds **/uppy/docs** and **/uppy.io**, and shows them in a
42+
browser. Most changes are reflected live without having to restart the server.
43+
44+
### Lint
45+
46+
```sh
47+
corepack yarn run format
48+
corepack yarn lint
49+
```
50+
51+
This command lints **/uppy/docs** and **/uppy.io**.
2452

2553
### Build
2654

@@ -30,3 +58,8 @@ corepack yarn build
3058

3159
This command generates static content into the `build` directory and can be
3260
served using any static contents hosting service.
61+
62+
---
63+
64+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern
65+
static website generator.

0 commit comments

Comments
 (0)