提交 84f43e50 编写于 作者: 李海枫

reset data

上级 2b8fc14e
# CodeChina Explore
\ No newline at end of file
# CodeChina Explore
## Making edits to a topic
If you're making edits to a topic page, the following fields are available for use. Not all fields are required.
### topic
(required) Name of the topic, which will be used in the URL, e.g. `https://codechina.net/topics/[URL]`. Formatted as lowercase.
Acceptable formatting:
* Starts with a letter or number
* Contains only letters, numbers, and hyphens
* At most 35 characters long
### display_name
(required) The topic name that will be displayed on the topic page (ex. `React`). Should use proper noun capitalization. Emoji are not allowed.
### description
(required) A short description of the topic, which will be used on the Explore homepage, Topics subpage, and other preview areas. Must be 130 characters or less. Emoji are not allowed.
### selected
(required) Set topic to selection topics, default false.
### aliases
(if applicable) Synonyms for the topic name. For example, `react` and `reactjs` are aliases. You
should only list an alias for your topic if the majority of repositories using that alias are
referring to the same subject matter as the topic. You should not list another topic as an alias
if the alias is a superset of your topic.
For example, `api` makes sense in the `related` field for the `graphql` topic, but because many
repositories tagged with `api` are _not_ be associated with `graphql`, `api` does not make sense
in the `aliases` field for `graphql`.
Each alias must be formatted like that topic's `topic` field (same as the URL slug). Acceptable formatting:
* Starts with a letter or number
* Contains only letters, numbers, and hyphens
* At most 35 characters long
### logo
(if applicable) The official logo url associated with that topic. You must have permission to use this logo. If no official logo exists, do not include an image url.
### website
(if applicable) URL to the topic's official website
### blog
(if applicable) URL to the topic's blog website
## example
```yaml
---
topic: ruby
aliases: 'ruby on rails, rails, ror'
display_name: Ruby
website: 'http://rubyonrails.com'
description: 'Ruby is a scripting language designed for simplified object-oriented programming.'
blog: 'http://rubychina.com'
logo: 'https://github.com/github/explore/blob/master/topics/ruby/ruby.png?raw=true'
selected: true
---
```
......@@ -5,4 +5,5 @@ display_name: 'Bootstrap'
website: 'https://github.com/twbs'
description: 'Bootstrap is an HTML, CSS, and JavaScript framework.'
selected: true
logo: 'https://github.com/github/explore/blob/master/topics/bootstrap/bootstrap.png?raw=true'
---
\ No newline at end of file
......@@ -3,7 +3,7 @@ display_name: Html
topic: html
selected: true
aliases: 'html'
description: 'html is a general purpose and object-oriented programming language.'
website: 'https://isocpp.org/'
description: 'HTML is the fundamental markup language for webpages.'
website: 'https://www.w3.org/html/'
logo: 'https://github.com/github/explore/blob/master/topics/html/html.png?raw=true'
---
---
topic: js
display_name: JavaScript
aliases: 'javascript'
selected: true
website: 'http://www.javascript.com'
description: 'JavaScript (JS) is a lightweight interpreted programming language with first-class functions.'
blog: 'http://blog.js.com'
logo: 'https://github.com/github/explore/blob/master/topics/javascript/javascript.png?raw=true'
---
......@@ -7,5 +7,4 @@ description: 'Ruby is a scripting language designed for simplified object-orient
blog: 'http://rubychina.com'
logo: 'https://github.com/github/explore/blob/master/topics/ruby/ruby.png?raw=true'
selected: true
hello: world
---
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册