+ 🔥 Removed markdown documentation in favor of GitBook (#121)

This commit is contained in:
Inter 2023-12-29 17:27:20 +00:00
parent 34c2fecead
commit b6bbd9ae99
3 changed files with 0 additions and 226 deletions

View file

@ -1,64 +0,0 @@
<div align="center">
<img src="assets/customising.svg" alt="customising" width="500">
⚠️ Please note that all of these badges use `flat` style badges for their examples.
Want to change the style of the button? Please see [Styles](STYLES.md) for documentation.
---
When using Shield.io badges in Markdown, you can modify various aspects such as badge color, text, logos, and styles.
### 1. Changing Badge Color
You can change the badge color by replacing `<color>` with your desired hexadecimal color code in the badge URL.
For Example: `![Custom Badge](https://img.shields.io/badge/Custom%20Badge-blue?style=flat&logo=github)`
Result: ![Custom Badge](https://img.shields.io/badge/Custom%20Badge-blue?style=flat&logo=github)
Replace `blue` with your desired color.
### 1a. Using hexadecimal colors
Alternatively, you can use hexadecimal colors to get a specific shade of a color that shield.io may not have built in.
For Example: `![Custom Badge](https://img.shields.io/badge/Custom%20Badge-02354b?style=flat&logo=github)`
Result: ![Custom Badge](https://img.shields.io/badge/Custom%20Badge-02354b?style=flat&logo=github)
---
### 2. Modifying Text
Change the text displayed on the badge by altering the text after the badge name in the URL (in this case, its **Some%20Placeholder%20Text**).
For Example: `![Modified Text Badge](https://img.shields.io/badge/Some%20Placeholder%20Text-blue?style=flat&logo=github)`
Result: ![Modified Text Badge](https://img.shields.io/badge/Some%20Placeholder%20Text-blue?style=flat&logo=github)
### 2a. Splitting text
Want to split the text to have 2 different sections? You can do this by adding a `-` between the words.
For Example: `![Modified Text Badge](https://img.shields.io/badge/Made%20In-Markdown-blue?style=flat&logo=github)`
Result: ![Modified Text Badge](https://img.shields.io/badge/Made%20In-Markdown-blue?style=flat&logo=github)
---
### 3. Adding Logos
Include logos on badges by specifying the logo name after the logo= parameter in the badge URL.
For Example (using the Docker logo): `![Logo Badge](https://img.shields.io/badge/Text%20with%20Logo-black?style=flat&logo=docker)`
Result: ![Logo Badge](https://img.shields.io/badge/Text%20with%20Logo-black?style=flat&logo=docker)
Another Example (using the Sass logo): `![Logo Badge](https://img.shields.io/badge/Text%20with%20Logo-pink?style=flat&logo=Sass)`
Result: ![Logo Badge](https://img.shields.io/badge/Text%20with%20Logo-pink?style=flat&logo=Sass)
### 3a. Supported icons/logos
Shield.io uses [Simple Icons](https://github.com/simple-icons/simple-icons) and a small sub-set of it's own icons/logos. If you can find your icon/logo on https://simpleicons.org, it will work with your badge. Shield.io also has its own few custom badges that you can find [here](https://github.com/badges/shields/tree/6e803367e0f3c8e0cc4196a700af37fac1629f4d/logo).

View file

@ -1,100 +0,0 @@
<div align="center">
<img src="assets/getting-started.svg" width="450">
There are no extra prerequisites to start using these badges. Simply copy the 'Markdown Code' of the badge that you'd like an paste it into your Markdown file.
Here's an example:
<img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMQ2PNjxiOlGknJG0UQAJ%2Fuploads%2FSvoE6iNy0teOrlPaWejX%2Fimage.png?alt=media&token=f3fea543-8699-44e2-8730-efcaf2808cc0" alt="Copying" width="550">
Step 1: Copying the Markdown Code
<br>
<br>
<img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMQ2PNjxiOlGknJG0UQAJ%2Fuploads%2FQe23lT4SZLeaSJwFx05E%2Fimage.png?alt=media&token=8610925e-c56f-48ff-bee6-64d6ae90075e" alt="Pasting" width="550">
Step 2: Pasting the Markdow into your file.
<br>
#### 💡 Use 'Ctrl + F' or the Table Of Contents to search quickly for your badge. 💡
<hr>
# 🤔 FAQ
### Q: Why won't my badge lead anywhere?
<details>
<summary><strong>View Answer:</strong></summary>
<br>
By default, (mostly) all badges have (#) at the end of their code to define a link.
**You need to replace the (#) with a link that you'd like the badge to go to when clicked on.**
For example, if the code is:
`[![GitHub](https://img.shields.io/badge/GitHub-%23121011.svg?logo=github&logoColor=white)](#)`
...you'll need to replace the (#) with a link (eg. https://github.com/inttter).
If the code is a dynamically updating badge such as this one:
`[![GitHub release](https://img.shields.io/github/release/saadeghi/daisyui.svg)](https://github.com/badges/shields/releases)`
<!-- daisyUI is used as an example - https://github.com/saadeghi/daisyui !-->
You must replace 'saadeghi' with your GitHub username/organization, and 'daisyUI' with your repository name. This includes the redirect URL aswell.
</details>
### Q: Can I customize these badges?
<details>
<summary><strong>View Answer:</strong></summary>
<br>
Yes, please refer to the [Styles](STYLES.md) and [Customization](CUSTOMISING.md) documentations for how to style and customize your badges.
</details>
### Q: Can I use badges on any repository hosting platform?
<details>
<summary><strong>View Answer:</strong></summary>
<br>
As long as they support Markdown rendering, you can.
If you need more info, consult the help page for your platform.
</details>
### Q: Do these only work in Markdown?
<details>
<summary><strong>View Answer:</strong></summary>
<br>
**No**, you can also use them in HTML, by using `<a>` tags to link to a website, and `<img src>` tags to display the badge.
Here's how you may format it if you were to link the badge to a website inside of a HTML file:
```html
<a href="https://kotlinlang.org">
<img src="https://img.shields.io/badge/Kotlin-%237F52FF.svg?logo=kotlin&logoColor=white" alt="Kotlin">
</a>
```
Result: <a href="https://kotlinlang.org">
<img src="https://img.shields.io/badge/Kotlin-%237F52FF.svg?logo=kotlin&logoColor=white" alt="Kotlin">
</a>
</details>
<hr>

View file

@ -1,62 +0,0 @@
<div align="center">
<img src="assets/styles.svg" alt="Styles" width="500" height="200">
# ⛩️ Types of Badges ⛩️
[shield.io](https://github.com/badges/shields) has 5 different styles of buttons, including:
|| Types | Styles |
| :-: | :------------ | :-------------------------------------------------------------------------------------------------------- |
| 1 | Plastic | ![Plastic](https://shields.io/badge/this%20is%20a%20plastic%20badge-03650f?logo=github&style=plastic) |
| 2 | Flat-Square | ![Flat-Square](https://shields.io/badge/this%20is%20a%20flat%20square%20badge-03650f?logo=github&style=flat-square) |
| 3 | Flat | ![Flat](https://shields.io/badge/this%20is%20a%20flat%20badge-03650f?logo=github&style=flat) |
| 4 | Social | ![Social](https://shields.io/badge/this%20is%20a%20social%20badge-03650f?logo=github&style=social) |
| 5 | For The Badge | ![For-The-Badge](https://shields.io/badge/this%20is%20a%20for%20the%20badge%20(badge)-03650f?logo=github&style=for-the-badge) |
This project uses **Flat** badges for the sake of simplicity, similar to how [markdown-badges](https://github.com/Ileriayo/markdown-badges) uses **For The Badge** badges for theirs.
If you want to change the style of your badge, add the following code into your badge link:
## **Plastic:**
`style=plastic`
**Example:** `![GitHub](https://img.shields.io/badge/GitHub-%23121011.svg?style=plastic&logo=github&logoColor=white)`
**Result:** ![GitHub](https://img.shields.io/badge/GitHub-%23121011.svg?style=plastic&logo=github&logoColor=white)
## **Flat Square:**
`style=flat-square`
**Example:** `![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=flat-square&logo=YouTube&logoColor=white)`
**Result:** ![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=flat-square&logo=YouTube&logoColor=white)
## **Flat:**
`style=flat`
**Example:** `![Twitch](https://img.shields.io/badge/Twitch-%239146FF.svg?style=flat&logo=Twitch&logoColor=white)`
**Result:** ![Twitch](https://img.shields.io/badge/Twitch-%239146FF.svg?style=flat&logo=Twitch&logoColor=white)
## Social
`style=social`
**Example:** `![GitHub repo watchers](https://img.shields.io/github/watchers/badges/shields.svg?style=social)`
**Result:** ![GitHub repo watchers](https://img.shields.io/github/watchers/badges/shields.svg?style=social)
## For The Badge
`style=for-the-badge`
**Example:** `![Spotify](https://img.shields.io/badge/Spotify-1ED760?style=for-the-badge&logo=spotify&logoColor=white)`
**Result:** ![Spotify](https://img.shields.io/badge/Spotify-1ED760?style=for-the-badge&logo=spotify&logoColor=white)