Important: Before submitting a style to our repository, please make sure that your style validates and meets our other requirements.
There are three ways to submit styles: you can create a so-called pull request by using just the GitHub website (option A), or by using the website in combination with a Git client (option B). If you have trouble creating a pull request, you can also post your style online by creating a gist on the GitHub website (option C). Option A is usually the easiest, for you and for us.
Styles submitted via a pull request are automatically validated and checked for additional requirements. For this we rely on a Test-Environment set up at Travis-CI.org. A few minutes after creating a pull request, Travis CI will indicate whether the pull request can be accepted (see the [Travis blog] (http://about.travis-ci.org/blog/2012-09-04-pull-requests-just-got-even-more-awesome/)). If there are any problems, the test report will describe what is wrong.
If you wish to edit an existing style:
- Create a GitHub.com account and sign in.
- Go to https://github.com/citation-style-language/styles, and find the style you want to change (dependent styles are stored in the "dependent" directory).
- Click on the style name, which will bring you to a page like https://github.com/citation-style-language/styles/blob/master/apa.csl.
- Click the "Edit" button (see the GitHub blog. This will open a code editor in which you can make your changes (e.g. you can copy and paste your modified style into this window).
- Once you have made your changes in the "Code" tab (and previewed the changes in the "Preview" tab), click the "Propose File Change" button.
- In the next window, describe the changes you've made. When finished, click the "Send pull request" button.
If you wish to submit a new style:
- Create a GitHub.com account and sign in.
- Go to https://github.com/citation-style-language/styles, and click the plus button (with a "Fork this project and create a new file" tooltip, see the GitHub blog). If you wish to submit a dependent style, first navigate to the "dependent" directory.
- Name your new style, and paste the style code into the code editor window.
- Click the "Propose New File" button.
- In the next window, describe the changes you've made. When finished, click the "Send pull request" button.
Based on your GitHub notification settings, you will now automatically receive updates when your changes have been accepted, or when the CSL team has comments or questions about your changes.
Start by forking the style repository. Commit your changes, and create a pull request. You can use your git client of choice, such as GitHub for Mac, GitHub for Windows, or SmartGit.
Visit http://gist.github.com and paste the style code into the text box. Give the style a name ("name this file...") and click the "Create Public Gist" button. Copy the URL of the gist (e.g. https://gist.github.com/1320111) and include it in your message to us. You can either start a new discussion in the Citation Styles section of the Zotero forums, or create a new GitHub issue in the styles repository.
Gists have to be checked by hand and take longer to get accepted, so please try option A first.