diff --git a/.gitignore b/.gitignore index aa091beba7..f3e44dd394 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ node_modules npm-debug.log /build/ -.tmp.* \ No newline at end of file +.tmp.* +package-lock.json \ No newline at end of file diff --git a/README.md b/README.md index 8b7edb96f6..e1b1ce6525 100644 --- a/README.md +++ b/README.md @@ -12,18 +12,14 @@ The site chrome are all in JS files in `site/_core/`. The first time, get all the dependencies loaded via -``` -npm install -``` +`$ npm install` or `$ yarn install` Then, run the server via -``` -npm start -Open http://localhost:8444/ -``` +`$ npm start` or `$ yarn start` -Anytime you change the contents, just refresh the page and it's going to be updated. +Open [http://localhost:8444](http://localhost:8444) to view it in the browser. +Anytime you make some changes, refresh the page to see the updates. ### Publish the Website diff --git a/site/_core/HeaderLinks.js b/site/_core/HeaderLinks.js index 052f435efb..79baa65c0e 100644 --- a/site/_core/HeaderLinks.js +++ b/site/_core/HeaderLinks.js @@ -15,6 +15,7 @@ const links = [ { section: 'spec', text: '规范', href: 'https://spec.graphql.cn/' }, { section: 'codeofconduct', text: '行为守则', href: '/codeofconduct/' }, { section: 'foundation', text: '基金会', href: 'https://foundation.graphql.org/' }, + { section: 'landscape', text: '社区总览', href: 'https://l.graphql.org/' }, { section: 'principles', text: '开发原则', href: 'https://principles.graphql.cn/' }, ]; diff --git a/site/_core/Redirect.js b/site/_core/Redirect.js index b6c0304886..29c2ddb887 100644 --- a/site/_core/Redirect.js +++ b/site/_core/Redirect.js @@ -9,7 +9,7 @@ var React = require('react'); export default ({ to }) => - + diff --git a/site/_core/Search.js b/site/_core/Search.js index f54d9fffc7..356e6562ea 100644 --- a/site/_core/Search.js +++ b/site/_core/Search.js @@ -10,5 +10,5 @@ var React = require('react'); export default () =>
- +
diff --git a/site/_core/Site.js b/site/_core/Site.js index 43fd94a08b..719cd1067e 100644 --- a/site/_core/Site.js +++ b/site/_core/Site.js @@ -12,7 +12,7 @@ var Search = require('./Search'); var SiteData = require('./SiteData'); export default ({ page, category, title, section, className, noSearch, children }) => - + @@ -22,6 +22,7 @@ export default ({ page, category, title, section, className, noSearch, children `GraphQL | ${SiteData.description}`} + @@ -45,7 +46,7 @@ export default ({ page, category, title, section, className, noSearch, children
- + GraphQL Logo GraphQL @@ -57,7 +58,7 @@ export default ({ page, category, title, section, className, noSearch, children
- +
学习
入门 @@ -88,19 +89,21 @@ export default ({ page, category, title, section, className, noSearch, children
- Copyright © 2019 GraphQL 基金会。保留所有权利。Linux 基金会已经注册了商标和使用商标。有关 Linux 基金会的商标清单,请参阅我们的 商标使用 页面。Linux 是 Linus Torvalds 的注册商标。隐私政策使用条款。 + Copyright © {`${new Date().getFullYear()}`} GraphQL 基金会。保留所有权利。Linux 基金会已经注册了商标和使用商标。有关 Linux 基金会的商标清单,请参阅我们的 商标使用 页面。Linux 是 Linus Torvalds 的注册商标。隐私政策使用条款
-