1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:30:05 +08:00
SpaceVim/docs/development.md

93 lines
2.9 KiB
Markdown
Raw Normal View History

2017-02-12 16:36:17 +08:00
---
title: "Development"
---
2017-03-01 23:15:00 +08:00
# Development
2017-02-07 01:51:23 +08:00
2017-03-01 23:15:00 +08:00
Development happens in the GitHub repository. here is a throughput graph of the repository for the last few weeks:
2017-02-07 01:51:23 +08:00
2017-03-01 23:15:00 +08:00
[![Throughput Graph](https://graphs.waffle.io/SpaceVim/SpaceVim/throughput.svg)](https://waffle.io/SpaceVim/SpaceVim/metrics/throughput)
2017-02-07 01:51:23 +08:00
2017-03-02 20:17:13 +08:00
## Content
- [Contribution guidelines](#contribution-guidelines)
- [Asking for help](#asking-for-help)
- [Reporting issues](#reporting-issues)
- [Contributing code](#contributing-code)
2017-02-25 21:23:27 +08:00
## Contribution guidelines
2017-03-02 20:17:13 +08:00
SpaceVim is a effort of all the volunteers, we encourage you to pitch in. The community makes SpaceVim what it is.
We have a few guidelines, which we ask all contributors to follow.
You can only consider reading the sections relevant to what you are going to do:
- [Asking for help](#asking-for-help) if you are about to open an issue to ask a question.
- [Reporting issues](#reporting-issues) if you are about to open a new issue.
- [Contributing code](#contributing-code) if you are about to send a Pull-Request.
### Asking for help
If you want to ask an usage question, be sure to look first into some places as it may hold the answers:
- <kbd>:h SpaceVim-faq</kbd> Some of the most frequently asked questions are answered there.
- [SpaceVim documentation](https://spacevim.org/documentation), It is the general documentation of SpaceVim.
### Reporting issues
issues have to be reported on issues tracker, Please:
- Check that there is no duplicate issue in the issues tracker, you can search keywords in the issues tracker.
- Check that the issue has not been fixed in latest version of SpaceVim, please update your SpaceVim, and try to reproduce the bug here.
- Use a clear title and follow the issue template.
- Include details on how to reproduce it, just like a step by step guide.
### Contributing code
2017-02-25 21:23:27 +08:00
## Conventions
2017-02-10 00:52:19 +08:00
## Report bugs
2017-02-07 01:51:23 +08:00
If you get any issues, please open an issue with the ISSUE_TEMPLATE. It is useful for me to debug for this issue.
2017-02-10 00:52:19 +08:00
## Contribute Layers
2017-02-10 22:05:19 +08:00
1. fork SpaceVim repo
2. add a layer file `autoload/SpaceVim/layers/foo.vim` for `foo` layer.
3. edit layer file, check out the example below:
```vim
function! SpaceVim#layers#foo#plugins() abort
2017-02-12 19:21:46 +08:00
let plugins = []
call add(plugins, ['Shougo/foo.vim', {'option' : 'value'}])
return plugins
2017-02-10 22:05:19 +08:00
endfunction
function! SpaceVim#layers#foo#config() abort
2017-02-12 19:21:46 +08:00
" here you can set some value or mappings
2017-02-10 22:05:19 +08:00
endfunction
```
4. send PR to SpaceVim.
2017-02-12 19:21:46 +08:00
2017-02-14 23:15:22 +08:00
## Build with SpaceVim
2017-02-16 23:23:12 +08:00
SpaceVim provide a lot of public [APIs](https://spacevim.org/apis), you can create plugins base on this APIs. also you can add a badge to the README.md of your plugin.
2017-02-14 23:15:22 +08:00
![](https://img.shields.io/badge/build%20with-SpaceVim-ff69b4.svg)
markdown
2017-02-15 23:56:04 +08:00
2017-02-14 23:15:22 +08:00
```md
2017-02-15 23:56:04 +08:00
[![](https://spacevim.org/img/build-with-SpaceVim.svg)](https://spacevim.org)
2017-02-14 23:15:22 +08:00
```
2017-02-12 19:21:46 +08:00
## Changelog
<ul>
2017-02-12 19:36:33 +08:00
{% for post in site.categories.changelog %}
2017-02-12 19:21:46 +08:00
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>