This repository has been archived by the owner on Mar 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
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
4 changed files
with
32 additions
and
22 deletions.
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict'; | ||
|
||
module.exports = (name) => { | ||
return `_Migration guides are very important! Always include one for major releases. To create a codeblock that has diff highligting, use three backticks followed by the word diff_ | ||
### Migrating from 1.X.X to 2.X.X | ||
The 2.0.0 release changes the default behaviour of ${name.original}. | ||
\`\`\`diff | ||
<div class="${name.original}__container"> | ||
- remove this line | ||
+ add this line | ||
</div> | ||
\`\`\` | ||
`; | ||
}; |
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,25 +1,24 @@ | ||
'use strict'; | ||
|
||
module.exports = (name) => { | ||
return `${name.original} [![Circle CI](https://circleci.com/gh/Financial-Times/${name.original}/tree/master.svg?style=svg)](https://circleci.com/gh/Financial-Times/${name.original}/tree/master) | ||
return `${name.original} [![Circle CI](https://circleci.com/gh/Financial-Times/${name.original}/tree/master.svg?style=svg)](https://circleci.com/gh/Financial-Times/${name.original}/tree/master)[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](#licence) | ||
================= | ||
_A short description of what this component does._ | ||
_A table of contents to help people find things_ | ||
- [Usage](#usage) | ||
- [Markup](#markup) | ||
- [JavaScript](#javascript) | ||
- [Sass](#sass) | ||
- [Markup](#markup) | ||
- [JavaScript](#javascript) | ||
- [Sass](#sass) | ||
- [Troubleshooting](#troubleshooting) | ||
- [Contributing](#contributing) | ||
- [Migration guide](#migration-guide) | ||
- [Migration](#migration) | ||
- [Contact](#contact) | ||
- [Licence](#licence) | ||
## Usage | ||
_Whatever usage instructions your component has. We've broken this down by Markup, JavaScript and Sass, but it depends how complex your component is._ | ||
### Markup | ||
|
@@ -75,28 +74,20 @@ Fix it by turning it off and on again | |
If your component is particularly complicated (image sets fall into this category) then a contributing section or even a contributing.md might be useful. | ||
## Migration guide | ||
_Migration guides are very important! Always include one for major releases. To create a codeblock that has diff highligting, use three backticks followed by the word diff_ | ||
### Migrating from 1.X.X to 2.X.X | ||
The 2.0.0 release changes the default behaviour of ${name.original}. | ||
## Migration | ||
\`\`\`diff | ||
<div class="${name.original}__container"> | ||
- remove this line | ||
+ add this line | ||
</div> | ||
\`\`\` | ||
_We use tables to represent our migration guides. Be sure to update it when there is a major release, and update MIGRATION.md, as well_ | ||
--- | ||
State | Major Version | Last Minor Release | Migration guide | | ||
:---: | :---: | :---: | :---: | ||
✨ active | 3 | N/A | [migrate to v3](MIGRATION.md#migrating-from-v2-to-v3) | | ||
⚠ maintained | 2 | 2.0 | [migrate to v2](MIGRATION.md#migrating-from-v1-to-v2) | | ||
╳ deprecated | 1 | 1.0 | N/A | | ||
## Contact | ||
If you have any questions or comments about this component, or need help using it, please either [raise an issue](https://github.com/Financial-Times/${name.original}/issues), visit [#ft-origami](https://financialtimes.slack.com/messages/ft-origami/) or email [Origami Support](mailto:[email protected]). | ||
---- | ||
## Licence | ||
This software is published by the Financial Times under the [MIT licence](http://opensource.org/licenses/MIT).`; | ||
|