Skip to content
项目

关于

Pantheon Docs

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Actively Maintained

Pantheon Documentation

This repository contains the Next.js source code and the content of Pantheon's Documentation site.

Contributing documentation changes

The content of this website lives within markdown files in the src/source folder. If you wish to contribute to or edit documentation, you can make pull requests to this repository like any other on GitHub.

Site Architecture

This site is built in Next.js and relies mainly on dynamic rendering (SSR) of routes. While a site like this one could function just as well with pages rendered statically, dynamic rendering is used

  • to reduce initial build times
  • to fit with the trend in Next.js sites toward "dynamic by default" architectures
  • to accommodate future changes in which some content will be sourced from Pantheon's Content Publisher in addition to local markdown files

Local Development

To perform local development tasks on this Next.js site, clone it to your local machine.

Install dependencies:

npm install

Start a local development server:

npm run dev

For some development tasks you may want to do a full build that matches how this site is deployed to the web on Pantheon's own Next.js infrastructure.

Execute a full production build with:

npm run build

Then start that site with

npm run start

Some pages and React components may behave differently in the dev server compared to a full build.

探索相关项目

加载中…