- Introduction
- Uploading an image
- Badges
- Dropdown Lists
- Using Font Awesome Icons
- Styling Text
- Task Lists
- Contribute
This is a simplified outline of a few tips that can be added to a git README.md markdown to spice up your documentation.
Uploading a picture is very simple. Just copy and paste. This works with png, jpg, and jpeg files.
The colors relay different messages
On how to add badges check this detailed blog for a step to step guide.
For more badges check shields.io
Nested dropdown lists are made with the details
html tag. By defaul the details tag is closed
Click to open
Hello World!<details><summary>Click to open</summary>
Hello World!
</details>
But can be made open using the open
attribute
Click to close
You left me open...<details open><summary>Click to close</summary>
You left me open...
</details>
Git markdown does not have support for inline CSS so the font-awesome icons themselves can't be used. However, there is a way to work around that:
- First download or get a pic of the icon. It should be in a png, jpg, or jpeg format.
- Upload the picture to the markdown. The link should be placed in a pair of square brackets []
- Add the link to your site in round brackets
[![alt text](uploaded-file-link)](link-to-site)
[![image](https://user-images.githubusercontent.com/66228179/153211323-6e521f21-b21c-4883-ab46-71b3755d03d7.png)](https://dev.to/babib)
[![twitter](https://user-images.githubusercontent.com/66228179/153213725-4c03dc46-1e33-4928-abb3-0d1cccb06420.png)](https://twitter.com/BTweets47)
You can indicate emphasis with bold, italic, strikethrough, subscript, or superscript text in comment fields and .md files.
- This text would be Bold
**This text would be Bold**
- This text would be Italic
* This text would be Italic*
This text would be strikethrough
~~This text would be strikethrough~~
- Bold with italic within
**Bold with *italic* within**
- All Bold and italic
***All Bold and italic***
-
Quoting Text: This is mainly used when You want to lay more emphasis on a paragraph or block in your text
> Quoting Text: This is mainly used when You want to lay more emphasis on a paragraph or block in your text
To create a task list, preface list items with a hyphen and space followed by [ ]. To mark a task as complete, use [x].
- Star the repository
- Fork the repository
- Make changes to the repository
- Create a pull request
- [x] Star the repository
- [x] Fork the repository
- [x] Make changes to the repository
- [ ] Create a pull request
Contributions are always welcome! Please read the contribution guidelines first.
I have written a detailed blog on how each tip mentioned here can be implemented.
Babi 💞