-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,44 @@ | ||
# MKDocs Gitlinks | ||
# MKDocs Gitlinks | ||
This is a simple plugin for MKDocs that creates links to git projects easier. | ||
|
||
# Usage | ||
|
||
To use the plugin you need to set it up | ||
|
||
### Config | ||
In the mkdocs.yml add: | ||
|
||
```yaml | ||
plugins: | ||
- mkdocs_gitlinks: | ||
``` | ||
### Markdown | ||
Then in the markdown you can link to git projects (currently only Github is supported) by using the syntax below: | ||
```markdown | ||
[github](orginisation/project) | ||
``` | ||
|
||
For example to link to this project use: | ||
|
||
```markdown | ||
[github](umaaz/mkdocs_gitlinks) | ||
``` | ||
|
||
### Output | ||
|
||
The result of this is to change the link to: | ||
|
||
![img.png](img.png) | ||
|
||
|
||
# Options | ||
There are a few options available | ||
|
||
```yaml | ||
plugins: | ||
- mkdocs_gitlinks: | ||
show_docs: false # setting this to true will include a link to the github pages for the project | ||
github_host: github.com # this allows for changing the github host name | ||
``` |