You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-17Lines changed: 30 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,30 @@
1
1
# Remix Website
2
2
3
-
## Installation
3
+
## Setup
4
4
5
5
First setup your `.env` file, use `.env.example` to know what to set.
6
6
7
+
```sh
8
+
cp .env.example .env
9
+
```
10
+
11
+
Install dependencies
12
+
7
13
```sh
8
14
npm i
9
15
```
10
16
17
+
## Local Development
18
+
11
19
Now you should be good to go:
12
20
13
21
```sh
14
22
npm run dev
15
23
```
16
24
17
-
To preview local changes to the `docs` folder in the Remix repo, select "local" from the version dropdown menu on the site.
25
+
To preview local changes to the `docs` folder in the Remix repo, select "local" from the version dropdown menu on the site. Make sure you have the [remix repo](https://github.com/remix-run/remix) cloned locally and `LOCAL_REPO_RELATIVE_PATH` is pointed to the correct filepath.
18
26
19
-
There are a couple LRUCache's for talking to GitHub and processing markdown that expire after 5 minutes. If you want them to expire immediately for local development, set the `NO_CACHE` environment variable.
27
+
We leverage a number of LRUCache's to server-side cache various resources, such as processed markdown from GitHub, that expire at various times (usually after 5 minutes). If you want them to expire immediately for local development, set the `NO_CACHE` environment variable.
20
28
21
29
```sh
22
30
NO_CACHE=1 npm run dev
@@ -55,15 +63,7 @@ When you're happy with it, merge your branch into `main` and push.
55
63
56
64
## Content
57
65
58
-
Content is synced to the SQLite distributed system from the `main` branch. You do not need to deploy a tag in order to add or update content.
59
-
60
-
```sh
61
-
git push origin main
62
-
# watch the app instances pull the new content
63
-
fly logs -a remixdotrun
64
-
```
65
-
66
-
**Authoring Blog Articles:**
66
+
### Authoring Blog Articles
67
67
68
68
- Put a markdown file in `data/posts/{your-post-slug}.md`
69
69
- Follow the conventions found in other blog articles for author/meta
@@ -76,14 +76,27 @@ fly logs -a remixdotrun
76
76
77
77
When linking to other posts use `[name](article-slug)`, you don't need to do `[name](/blog/article-slug)`
78
78
79
-
**Changing page content:**
79
+
### Adding to Showcase
80
+
81
+
[The Showcase](https://remix.run/showcase) page is a collection of sites built on Remix that are particularly impressive. If you think there is something missing from this list, feel free to open a PR for the team to review.
82
+
83
+
- Record quick demo of the website (~6s)
84
+
- Grab or screenshot the first frame of the video
85
+
- Add both resources to public/showcase-assets
86
+
- Run `cd public/showcase-assets && ./convert.sh` to convert images and videos to compressed formats
87
+
- Warning: this script was created hastily with ChatGPT and little concern for others running it. Feel free to offer improvements to the script and/or documentation
88
+
- Remove/don't commit the original video and image
89
+
- Add new showcase example data to [showcase.yaml](./data/showcase.yaml)
90
+
91
+
### Adding to Resources
92
+
93
+
[The Resources](https://remix.run/resources) page is a collection of templates and libraries that make building sites with Remix even easier. For now this data is driven by a yaml file, but eventually we anticipate replacing it with a database.
80
94
81
-
- Edit markdown files in `content/{pages,other}/{file}.md`
82
-
- Push to `main`
95
+
If you would like to contribute a new resource to these pages, simply add it to [resources.yaml](./data/resources.yaml)
83
96
84
97
## CSS Notes
85
98
86
-
You'll want the tailwind VSCode plugin fer sure, the hints are amazing.
99
+
You'll want the [tailwind VSCode plugin](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) fer sure, the hints are amazing.
87
100
88
101
The color scheme has various shades but we also have a special "brand" rule for each of our brand colors so we don't have to know the specific number of that color like this: `<div className="text-pink-brand" />`.
89
102
@@ -95,6 +108,6 @@ We want to use Tailwind's default classes as much as possible to avoid a large C
95
108
96
109
## Algolia Search
97
110
98
-
We use [DocSearch](https://docsearch.algolia.com/) by Algolia for our documetnations search. The site is automatically scraped and an index generated weekly by the [Algolia Crawler](https://crawler.algolia.com/).
111
+
We use [DocSearch](https://docsearch.algolia.com/) by Algolia for our documentation's search. The site is automatically scraped and indexed weekly by the [Algolia Crawler](https://crawler.algolia.com/).
99
112
100
113
If the doc search results ever seem outdated or incorrect be sure to check that the crawler isn't blocked. If it is, it might just need to be canceled and restarted to kick things off again. There is also an editor in the Crawler admin that lets you adjust the crawler's script if needed.
0 commit comments