expressjs.com

Github星跟踪图

expressjs.com

This is the repository of the website expressjs.com. It is hosted directly from the repository as a GitHub Pages website.

Local Setup

To preview the website locally:

  1. Install Ruby and Bundler if you don't have them already.

  2. Install the jekyll-redirect-from gem:

    $ gem install jekyll-redirect-from
    
  3. cd to the repository directory and run the following command:

    $ cd expressjs.com
    $ bundle install
    

    Bundler will look in the Gemfile for which gems to install. The github-pages gem includes the same version of Jekyll and other dependencies as used by GitHub Pages, so that your local setup mirrors GitHub Pages as closely as possible.

  4. Run Jekyll using the following command:

    $ bundle exec jekyll serve
    

    Then, load http://localhost:4000 in your browser.

Formatting

Jekyll uses a variant of Markdown known as Kramdown.

Jekyll uses the Liquid template engine for templating.

You can use GFM fenced code blocks for JavaScript; for example:

The result looks like this:

var express = require('express')
var app = express()
app.listen(3000)

The default GitHub Pages syntax highlighting has been disabled in _config.yml to allow highlighting with prism.js.

Contributing

Feel free to make changes to the template files or the document files. The supporting docs are located in their respective directories, and the API docs are located under the _includes directory.

Please see the Contributors' Guide for more information on contributing to the documentation, including information on contributing translations.

Why use Jekyll instead of an Express-based solution?

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.

主要指标

概览
名称与所有者expressjs/expressjs.com
主编程语言CSS
编程语言HTML (语言数: 6)
平台
许可证Creative Commons Attribution 4.0 International
所有者活动
创建于2012-06-06 03:08:03
推送于2025-05-20 02:01:25
最后一次提交
发布数0
用户参与
星数5.3k
关注者数159
派生数1.7k
提交数2.7k
已启用问题?
问题数641
打开的问题数68
拉请求数927
打开的拉请求数16
关闭的拉请求数284
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?