Skip to content

gAmadorH/make-a-great-readme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

make-a-great-readme

License

Let's make a great README file.

A README file describe your project purpose, features, dependencies, how to use, license and another thins you like to inform.
It's written in a markup language, the most common is markdown (.md or .markdown extension) but it's not the only one, there're another alternatives like reStructuredText (.rst extension) and GitHub support both.
In this case we are focus in markdown, and this isn't a syntax tutorial, this is a good practices tutorial on how to make a great README file (using markdown and vscode editor).

You can check a mastering Markdown guide here: https://guides.github.com/features/mastering-markdown/

Before to start

Before to start to write a great README.md file, we need to set up some extensions for vscode to improve our development.

Use EditorConfig

I recommend you write a .editorconfig file in the project root in order to maintain a consistent code style with your team
even if you are working alone, it's a good idea write it (if it's your case, don't worry with a great README many developers will want to work in your idea).
To use EditorConfig your editor needs an extension, many editors have it by default, you can check what editors need a plugin/extension here.
For vscode editor, you need a EditorConfig for VS code extension. In the last section I will list the best vscode extensions to make a great README.

So your .editorconfig configuration file could be like this:

# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

Note that the last rule is for markdown files, it means while for all files the whitespace at the end of each line will be removed, for markdown files this won't happen.
Sometimes we want a line break file and we need to use 2 spaces at the end and the trim_trailing_whitespace rule allows us to do this.
This rule is important because many developers use this markdown feature.

Use Code Spell Checker

Use a Markdown Preview

Use a Markdown Linter

Basic structure

Use code blocks

Languages Supported by Github Flavored Markdown

Use badges

License badge

you can check the must common license badges here: license-badges.md

License

MIT. Copyright (c)