Skip to content
项目

jehna/readme-best-practices

在 GitHub 查看

关于

为开源项目编写 README 的最佳实践

学习与教育

这些数字如何统计

可以做什么

  • Bootstrap your open-source project properly
  • Make sure everyone gets what you're trying to achieve with your project
  • Follow simple instructions for a perfect README.md

实测星标增长

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

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

README.md

原文

Readme Best Practices

A place to copy-paste your README.md from

Demo: a project with an empty README.md runs one curl command to fetch README-default.md, a template with seven ready-made sections — Installing, Developing, Features, Configuration, Contributing, Links and Licensing — then fills in the blanks and pushes with git.

One of the most crucial things in your open-source project is the README.md file. This repository has a ready-to-copy-paste template you can use for all your projects.

Getting started

Copy the README-default.md file for yourself and start editing! At the root of your project, run:

curl https://raw.githubusercontent.com/jehna/readme-best-practices/master/README-default.md > README.md

The code above fetches the README-default.md file from this repository and renames it to README.md.

Fill with your own text

The default template has some guiding text to get you started. However, you'll need to edit the file with your own text to use it with your project.

code README.md

If you're using VS Code code editor, the code above opens the file for editing. If necessary, substitute with your preferred markdown editor.

Add to git and push

After you've filled your README.md file with your own project's text, you should push it to your GitHub project:

git add README.md
git commit -m "Added: README"
git push

This adds the README.md file to your git repository, creates a commit for it and pushes it to GitHub (or your preferred remote repository).

Features

This project makes it easy to:

  • Bootstrap your open-source project properly
  • Make sure everyone gets what you're trying to achieve with your project
  • Follow simple instructions for a perfect README.md

Contributing

As I use this for my own projects, I know this might not be the perfect approach for all the projects out there. If you have any ideas, just open an issue and tell me what you think.

If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.

If your vision of a perfect README.md differs greatly from mine, it might be because your projects are vastly different. In this case, you can create a new file README-yourplatform.md and create the perfect boilerplate for that.

E.g. if you have a perfect README.md for a Grunt project, just name it as README-grunt.md.

Related projects

Here's a list of other related projects where you can find inspiration for creating the best possible README for your own project:

Licensing

This project is licensed under an Unlicense license. This license does not require you to take the license with you to your project.

探索相关项目

加载中…