autolink-references-mkdocs-plugin-0.2.1
توضیحات
This plugin allows to configure your own autolink references for non-GitHub URLs.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | autolink-references-mkdocs-plugin-0.2.1 |
| نام | autolink-references-mkdocs-plugin |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Saurabh Kumar |
| ایمیل نویسنده | noreply@theskumar.github.com |
| آدرس صفحه اصلی | https://github.com/theskumar/autolink-references-mkdocs-plugin |
| آدرس اینترنتی | https://pypi.org/project/autolink-references-mkdocs-plugin/ |
| مجوز | MIT |
# Autolink References (MkDocs Plugin)
This [mkdocs plugin](http://www.mkdocs.org/user-guide/plugins/)
look in each MkDocs article for the presence of a reference to tickets from issues
trackers like Jira, Linear, etc and convert them to links that point to respective
platforms:
## Getting started
To install it, using `pip`:
```
pip install autolink-references-mkdocs-plugin
```
Edit your `mkdocs.yml` file and add these few lines of code:
```yaml
plugins:
- autolink_references:
autolinks:
- reference_prefix: AF-
target_url: https://linear.com/AF-<num>
- reference_prefix: PROJ-
target_url: https://jiracloud.com/PROJ-<num>
```
- __reference_prefix__: This prefix appended by a number will generate a link any time it is found in a page.
- __target_url__: The URL must contain `<num>` for the reference number.
### An example
For example, you could edit the `docs/index.md` file and insert the ticket references like this:
````markdown
Changelog:
- AF-100: add new feature.
````
This will generate pre-processed to:
```
Changelog:
- [AF-100](https://linear.com/AF-100): add new feature.
```
## Changelog
### 0.2.0
- Ignore already linked references.
- Converts text `[AF-100]` to a linked version and removes the brackets `AF-100`
## License
MIT
Built with ❤️ by [Saurabh Kumar](https://saurabh-kumar.com?ref=autolink-references-mkdocs-plugin)
نیازمندی
| مقدار | نام |
|---|---|
| - | mkdocs |
نحوه نصب
نصب پکیج whl autolink-references-mkdocs-plugin-0.2.1:
pip install autolink-references-mkdocs-plugin-0.2.1.whl
نصب پکیج tar.gz autolink-references-mkdocs-plugin-0.2.1:
pip install autolink-references-mkdocs-plugin-0.2.1.tar.gz