1
- * Contribute to Spacemacs
2
-
3
- ** Table of Contents :TOC@4:
4
- - [[#contribute-to-spacemacs][Contribute to Spacemacs]]
5
- - [[#pull-request-guidelines][Pull Request Guidelines]]
6
- - [[#ideally-and-for-simple-prs][Ideally and for /simple/ PRs:]]
7
- - [[#for-complex-pull-requests][For complex pull requests:]]
8
- - [[#getting-help][Getting Help]]
9
- - [[#submitting-a-configuration-layer][Submitting a configuration layer]]
10
- - [[#testing][Testing]]
11
- - [[#submitting-a-banner][Submitting a banner]]
12
- - [[#credits][Credits]]
13
- - [[#license][License]]
14
- - [[#file-header][File header]]
15
- - [[#author-of-a-contribution-layer][Author of a contribution layer]]
16
- - [[#contributor-of-a-contribution-layer][Contributor of a contribution layer]]
17
-
18
- ** Pull Request Guidelines
1
+ #+SETUPFILE: theme-readtheorg.setup
2
+
3
+ * Contribute to Spacemacs :TOC_4_org:noexport:
4
+ - [[Pull Request Guidelines][Pull Request Guidelines]]
5
+ - [[Ideally and for /simple/ PRs:][Ideally and for /simple/ PRs:]]
6
+ - [[For complex pull requests:][For complex pull requests:]]
7
+ - [[Getting Help][Getting Help]]
8
+ - [[Submitting a configuration layer][Submitting a configuration layer]]
9
+ - [[Testing][Testing]]
10
+ - [[Submitting a banner][Submitting a banner]]
11
+ - [[Credits][Credits]]
12
+ - [[License][License]]
13
+ - [[File header][File header]]
14
+ - [[Author of a contribution layer][Author of a contribution layer]]
15
+ - [[Contributor of a contribution layer][Contributor of a contribution layer]]
16
+
17
+ * Pull Request Guidelines
19
18
Spacemacs branch model is inspired from the [[http://nvie.com/posts/a-successful-git-branching-model/][git-flow]] model:
20
19
You'll have to submit your contributions and fixes within a pull-request to
21
20
apply against the =develop= branch.
22
21
23
22
/PR = pull request/
24
23
25
- *** Ideally and for /simple/ PRs:
24
+ ** Ideally and for /simple/ PRs:
26
25
- branch from =develop=
27
26
- one topic per PR
28
27
- one commit per PR
@@ -35,19 +34,19 @@ apply against the =develop= branch.
35
34
Those PRs are /fast-forwarded/ whenever it's possible and
36
35
/cherry-picked/ otherwise (most likely they will be cherry-picked).
37
36
38
- *** For complex pull requests:
37
+ ** For complex pull requests:
39
38
- squash only the commits with uninteresting changes like typos, syntax
40
39
fixes, etc... and keep the important and /isolated/ steps in
41
40
different commits.
42
41
43
42
Those PRs are /merged/ and explicitly /not fast-forwarded/.
44
43
45
- *** Getting Help
44
+ ** Getting Help
46
45
If you have any question on this process, join the [[https://gitter.im/syl20bnr/spacemacs][gitter
47
46
chatroom]] and ask your questions there. It will be a pleasure to help you to
48
47
contribute!
49
48
50
- ** Submitting a configuration layer
49
+ * Submitting a configuration layer
51
50
Contributed configuration layers are stored in the =layers= folder. The
52
51
=layers= folder also contains categories prefixed with =+= to put your
53
52
layers in. For example a layer for a language would go in the
@@ -62,9 +61,9 @@ It is recommended to join a =README.org= file with your layer:
62
61
- if a logo exists for the layer you can add it at the top of the =README.org=
63
62
before the TOC. The maximum recommended height is 200 pixels.
64
63
65
- Please read the [[LAYERS.org][tips for writing layers]] first.
64
+ Please read the [[file: LAYERS.org][tips for writing layers]] first.
66
65
67
- ** Testing
66
+ * Testing
68
67
Tests live in the =tests= folder, with a folder structure corresponding to the
69
68
rest of the repository.
70
69
@@ -104,7 +103,7 @@ To add tests for a layer, do the following:
104
103
105
104
Spacemacs is lacking tests, so contributions are welcome.
106
105
107
- ** Submitting a banner
106
+ * Submitting a banner
108
107
The startup banner is by default randomly chosen among a pool of banners
109
108
each time Spacemacs starts. Banners are located in directory
110
109
=~/.emacs.d/core/banners=.
@@ -114,16 +113,16 @@ If you have some ASCII skills you can submit your artwork!
114
113
You are free to choose a reasonable height size but the width size
115
114
should be around 75 characters.
116
115
117
- ** Credits
118
- *** License
116
+ * Credits
117
+ ** License
119
118
The license is GPLv3 for all parts specific to Spacemacs, this
120
119
includes: - the initialization and core files - all the layer files.
121
120
122
121
For files not belonging to Spacemacs like extensions and libraries,
123
122
refer to the header file. Those files should not have an empty header,
124
123
please report any file imported in Spacemacs without a proper header.
125
124
126
- *** File header
125
+ ** File header
127
126
Template:
128
127
129
128
#+BEGIN_EXAMPLE
@@ -140,14 +139,14 @@ Template:
140
139
;;; License: GPLv3
141
140
#+END_EXAMPLE
142
141
143
- *** Author of a contribution layer
142
+ ** Author of a contribution layer
144
143
In the file header: - change =NAME= to the name of the layer, - change
145
144
the default author name =Sylvain Benner= to your name, - do not remove
146
145
the line: =;; Copyright (c) 2012-2014 Sylvain Benner= - modify the
147
146
second copyright line by replacing the default name and dates, *keep*
148
147
=& Contributors= in this line, - other lines should not be modified
149
148
150
- *** Contributor of a contribution layer
149
+ ** Contributor of a contribution layer
151
150
You should not modify any header file. A very cool way to show your
152
151
contributions will be available in Spacemacs at some point, /Stay
153
152
Tuned/.
0 commit comments