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: CONTRIBUTING.md
+25-53Lines changed: 25 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -2,40 +2,31 @@
2
2
3
3
### The Official Documentation of the Express JS Framework
4
4
5
-
This is the contribution documentation for the [Expressjs.com](https://github.com/expressjs/expressjs.com) website.
5
+
This is the contribution documentation for the [expressjs.com](https://github.com/expressjs/expressjs.com) website.
6
6
7
7
>[!NOTE]
8
8
> This is not the repo for Express JS framework. To contribute to the _[Express JS framework](https://github.com/expressjs/express_)_, check out the [Github repo contributing page](https://github.com/expressjs/express/blob/master/Contributing.md) or the website's [Contributing to Express](https://expressjs.com/en/resources/contributing.html) page.
9
9
10
10
11
11
#### Need some ideas? These are some typical issues.
12
12
13
-
1.**Website issues**:
14
-
If you see anything on the site that could use a tune-up, think about how to fix it.
15
-
13
+
1.**Website issues**: If you see anything on the site that could use a tune-up, think about how to fix it.
16
14
- Display or screen sizing problems
17
15
- Mobile responsiveness issues
18
16
- Missing or broken accessibility features
19
17
- Website outages
20
18
- Broken links
21
19
- Page structure or user interface enhancements
22
20
23
-
24
-
2.**Content Issues**:
25
-
Fix anything related to site content or typos.
21
+
2.**Content Issues**: Fix anything related to site content or typos.
26
22
- Spelling errors
27
23
- Incorrect/outdated Express JS documentation
28
24
- Missing content
29
25
30
-
31
26
3.**Translation Issues**: Fix any translation errors or contribute new content.
32
27
- Fix spelling errors
33
28
- Fix incorrect/poorly translated words
34
-
- Translate new content
35
-
> [!IMPORTANT]
36
-
> All translation submissions are currently paused. See this [notice](#notice-we-have-paused-all-translation-contributions) for more information.
37
-
38
-
- Check out the [Contributing translations](#contributing-translations) section below for a contributing guide.
29
+
- Check out the [Contributing translations](#contributing-translations) section below for a contributing guide.
39
30
40
31
#### Want to work on a backlog issue?
41
32
@@ -45,6 +36,7 @@ We often have bugs or enhancements that need work. You can find these under our
45
36
46
37
If you've found a bug or a typo, or if you have an idea for an enhancement, you can:
47
38
- Submit a [new issue](https://github.com/expressjs/expressjs.com/issues/new/choose) on our repo. Do this for larger proposals, or if you'd like to discuss or get feedback first.
39
+
48
40
- Make a [Github pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). If you have already done work and it's ready to go, feel free to send it our way.
49
41
50
42
## Getting Started
@@ -65,7 +57,9 @@ So you've found a problem that you want to fix, or have a site enhancement you w
After you've got the code you're ready to start making your changes!
71
65
@@ -91,64 +85,42 @@ follow the specific instructions for [How to write a blog post.](https://express
91
85
**CSS or Javascript**
92
86
- All css and js files are kept in `css` and `js` folders on the project root.
93
87
94
-
The Express JS website is build using [Jeykyll](https://jekyllrb.com/) and is hosted on [Github Pages](https://pages.github.com/).
88
+
The Express JS website is built using [Jekyll](https://jekyllrb.com/) and is hosted on [Github Pages](https://pages.github.com/).
95
89
96
90
#### Step 3: Running the Application
97
91
98
-
99
92
Now you'll need a way to see your changes, which means you'll need a running version of the application. You have two options.
100
-
1.__Run Locally__: This gets the local version of the application up and running on your machine. Follow our [Local Setup Guide](https://github.com/expressjs/expressjs.com?tab=readme-ov-file#local-setup) to use this option.
93
+
94
+
>[!NOTE]
95
+
>If you're only making changes to the content, you most likely won't need to run the site locally.
96
+
97
+
1.__Run Locally__: This gets the local version of the application up and running on your machine. Follow our [Local Setup Guide](https://github.com/expressjs/expressjs.com?tab=readme-ov-file#build-the-website-locally) to use this option.
101
98
- This is the recommended option for moderate to complex work.
99
+
102
100
2.__Run using Deploy Preview__: Use this option if you don't want to bother with a local installation. Part of our continuous integration pipeline includes [Netlify Deploy Preview](https://docs.netlify.com/site-deploys/deploy-previews/).
103
101
1. To use this you'll need to get your changes online - after you've made your first commit on your feature branch, make a *draft* pull request.
104
102
2. After the build steps are complete, you'll have access to a __Deploy Preview__ tab that will run your changes on the web, rebuilding after each commit is pushed.
105
103
3. After you are completely done your work and it's ready for review, remove the draft status on your pull request and submit your work.
106
104
107
105
## Contributing translations
108
106
109
-
#### Notice: We have paused all translation contributions.
110
-
> [!IMPORTANT]
111
-
> We are currently working toward a more streamlined translations workflow. As long as this notice is posted, we will _not_ be accepting any translation submissions.
112
-
113
-
We highly encourage community translations! We no longer have professional translations, and we believe in the power of our community to provide accurate and helpful translations.
107
+
We use Crowdin to manage our translations in multiple languages and achieve automatic translation with artificial intelligence. Since these translations can be inefficient in some cases, we need help from the community to provide accurate and helpful translations.
114
108
115
109
The documentation is translated into these languages:
110
+
111
+
- Chinese Simplified (`zh-cn`)
112
+
- Chinese Traditional (`zh-tw`)
116
113
- English (`en`)
117
-
- Spanish (`es`)
118
114
- French (`fr`)
115
+
- German (`de`)
119
116
- Italian (`it`)
120
-
- Indonesian (`id`)
121
117
- Japanese (`ja`)
122
118
- Korean (`ko`)
123
119
- Brazilian Portuguese (`pt-br`)
124
-
- Russian (`ru`)
125
-
- Slovak (`sk`)
126
-
- Thai (`th`)
127
-
- Turkish (`tr`)
128
-
- Ukrainian (`uk`)
129
-
- Uzbek (`uz`)
130
-
- Simplified Chinese (`zh-cn`)
131
-
- Traditional Chinese (`zh-tw`)
132
-
133
-
### Adding New Full Site Translations
134
-
135
-
If you find a translation is missing from the list you can create a new one.
136
-
137
-
To translate Expressjs.com into a new language, follow these steps:
138
-
139
-
1. Clone the [`expressjs.com`](https://github.com/expressjs/expressjs.com) repository.
140
-
2. Create a directory for the language of your choice using its [ISO 639-1 code](https://www.loc.gov/standards/iso639-2/php/code_list.php) as its name.
141
-
3. Copy `index.md`, `api.md`, `starter/`, `guide/`, `advanced/`, `resources/`, `4x/`, and `3x/`, to the language directory.
142
-
4. Remove the link to 2.x docs from the "API Reference" menu.
143
-
5. Update the `lang` variable in the copied markdown files.
144
-
6. Update the `title` variable in the copied markdown files.
145
-
7. Create the header, footer, notice, and announcement file for the language in the `_includes/` directory, in the respective directories, and make necessary edits to the contents.
146
-
8. Create the announcement file for the language in the `_includes/` directory.
147
-
9. Make sure to append `/{{ page.lang }}` to all the links within the site.
148
-
10. Update the [CONTRIBUTING.md](https://github.com/expressjs/expressjs.com/blob/gh-pages/CONTRIBUTING.md#contributing-translations) and the `.github/workflows/translation.yml` files with the new language.
149
-
150
-
### Adding Page and Section Translations
120
+
- Spanish (`es`)
151
121
152
-
Many site translations are still missing pages. To find which ones we need help with, you can [filter for merged PRs](https://github.com/expressjs/expressjs.com/pulls?q=is%3Apr+is%3Aclosed+label%3Arequires-translation-es) that include the tag for your language, such as `requires-translation-es` for requires Spanish translation.
122
+
### How to translate
153
123
154
-
If you contribute a page or section translation, please reference the original PR. This helps the person merging your translation to remove the tag from the original PR.
124
+
1. Request to join the Express.js Website project on [Crowdin](https://express.crowdin.com/website)
125
+
2.[Select the language you want to translate](https://support.crowdin.com/joining-translation-project/#starting-translation)
Copy file name to clipboardExpand all lines: README.md
+28-44Lines changed: 28 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,32 @@
2
2
3
3
This is the repository of the website [expressjs.com](https://expressjs.com). It is hosted directly from the repository as a [GitHub Pages](https://pages.github.com/) website.
4
4
5
-
## Local Setup
5
+
## Contributing
6
+
7
+
Any person who wants to contribute to the Website is welcome! Please read [Contributors' Guide](CONTRIBUTING.md) for more information on contributing to the Express.js documentation.
8
+
9
+
## Translations
10
+
11
+
If you're interested in contributing to the site's translations, you can find more information [here](https://github.com/expressjs/expressjs.com/blob/gh-pages/CONTRIBUTING.md#contributing-translations).
12
+
13
+
## Build the website locally
14
+
15
+
>[!NOTE]
16
+
>If you're only making changes to the content, you most likely won't need to run the site locally.
17
+
18
+
To preview the website locally, we have two options: using Docker or using Bundler.
19
+
20
+
### Using Docker
6
21
7
-
To preview the website locally:
22
+
>[!TIP]
23
+
> You can run `make help` to obtain detailed information on how to use our make commands.
24
+
25
+
1. Ensure that you have Docker and Make installed.
26
+
1. Run `make build` to build the project.
27
+
1. Run `make serve` to serve the project, this include live reloading so any change will be reflected (it can take a while, check the logs).
28
+
1. Run `make clean` to remove the docker images and resources generated.
29
+
30
+
### Using Bundle
8
31
9
32
1. Install [Ruby and Bundler](https://help.github.com/articles/setting-up-your-pages-site-locally-with-jekyll/) if you don't have them already.
10
33
@@ -15,6 +38,7 @@ To preview the website locally:
15
38
```
16
39
17
40
1. Clone this repository by running the following command:
@@ -35,46 +59,6 @@ To preview the website locally:
35
59
36
60
Then, load <http://localhost:4000> in your browser.
37
61
38
-
## Local Setup using Docker
39
-
40
-
>[!TIP]
41
-
> You can run `make help` to obtain detailed information on how to use our make commands.
42
-
43
-
0. Ensure that you have Docker and Make installed.
44
-
1. Run `make build` to build the project.
45
-
2. Run `make serve` to serve the project, this include live reloading so any change will be reflected (it can take a while, check the logs).
46
-
3. Run `make clean` to remove the docker images and resources generated.
47
-
48
-
## Formatting
49
-
50
-
Jekyll uses a variant of Markdown known as [Kramdown](https://kramdown.gettalong.org/quickref.html).
51
-
52
-
Jekyll uses the [Liquid template engine](https://shopify.github.io/liquid/) for templating.
53
-
54
-
You can use [GFM](https://kramdown.gettalong.org/parser/gfm.html) fenced code blocks for JavaScript; for example:
55
-
56
-
<pre>
57
-
```js
58
-
var express = require('express')
59
-
var app = express()
60
-
app.listen(3000)
61
-
```
62
-
</pre>
63
-
64
-
The result looks like this:
65
-
66
-
```js
67
-
constexpress=require('express')
68
-
constapp=express()
69
-
app.listen(3000)
70
-
```
71
-
72
-
The default GitHub Pages syntax highlighting has been disabled in `_config.yml` to allow highlighting with [prism.js](https://prismjs.com/).
73
-
74
-
## Contributing
75
-
76
-
Please see the [Contributors' Guide](CONTRIBUTING.md) for more information on contributing to the Express JS documentation, including information on contributing translations.
77
-
78
-
## Why use Jekyll instead of an Express-based solution?
62
+
## License
79
63
80
-
Jekyll comes built-in with GitHub Pages. Since we are already using GitHub Pages to host the website, it makes sense to leverage the capabilities it provides. It's all about using the right tool, for the right job, under the right circumstances.
64
+
Content submitted to [expressjs.com](expressjs.com) is Creative Commons Attribution 4.0 International licensed, as found in the [LICENSE.md](LICENSE.md) file.
0 commit comments