aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides/markdown/renderer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Wrap custom id of a header attribute into \" in rails guidesbogdanvlviv2018-10-051-1/+1
| | | | Related to https://github.com/rails/rails/pull/33953
* Fix rails guides markdown.rb and renderer.rb to use custom header idwagurano2018-09-231-1/+6
|
* Enable Start/EndWith and RegexpMatch copsBart de Water2018-07-281-2/+2
| | | | | In cases where the MatchData object is not used, this provides a speed-up: https://github.com/JuanitoFatas/fast-ruby/#stringmatch-vs-stringmatch-vs-stringstart_withstringend_with-code-start-code-end
* Fix typos and add a few suggestionsFatos Morina2017-11-281-1/+1
|
* Use frozen string literal in guides/Koichi ITO2017-08-131-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Old expression caught to many chars resulting in 404. Added minor change to ↵JD Gonzales2017-05-121-1/+1
| | | | resolve
* Fix all style guides violationsRafael Mendonça França2017-04-191-9/+9
| | | | | Closes #28382 Closes #28651
* refactors and fixes in guides generation [ci skip]Xavier Noria2017-02-121-22/+18
| | | | | | | | | | | | | | | | | | | | | | | | This commit is not precisely atomic, but the changes have evolved, summary: * The ENV-based interface has been moved upwards, the generator has now a conventional initializer. * RAILS_VERSION is now assumed to be a Git tag. A blank RAILS_VERSION means edge guides. * In consequence, the EDGE env variable is gone. * The "local" version is also gone, the current SHA1 is computed for edge guides. * Assumes guides are generated from a repo checkout (time ago users could generate them from gems.) * The WARNINGS flag is gone in consequence, you cannot disable warnings. * The `api_link` Markdown helper is fixed. * Docs about usage have one single place: rake guides:help. * Links in guides have been revised.
* Fix rubocop violationsRafael Mendonça França2017-02-091-11/+11
|
* Automatically link to Ruby files referenced in notes [ci skip]Robin Dupret2017-02-071-1/+19
| | | | | | | | | | To ease reading the "Active Support Core Extensions" guide, let's automatically link references to Ruby files. It's also possible to reference other components' files in the even though it's not used in the guides at the moment. [Petr Skocik & Robin Dupret]
* Automatically inject the current Rails version in API links [ci skip]Robin Dupret2017-02-071-0/+23
| | | | | | | To make sure that the user won't look at a feature that doesn't already exist if they are looking at a previous version of the guides, let's automatically inject the Rails version the guides have been generated against.
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* Fix indentationRafael Mendonça França2016-10-251-1/+1
|
* RuboCop is 100% green :tada:Xavier Noria2016-09-021-8/+9
|
* applies remaining conventions across the projectXavier Noria2016-08-061-7/+7
|
* applies new string literal convention in guidesXavier Noria2016-08-061-11/+11
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* [ci skip] Fix typoAkshay Vishnoi2015-12-221-1/+1
|
* - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
| | | | - Changed `IN` to `ON` in all note sentences in guides.
* Consider `html+erb` as a valid language for snippetsRobin Dupret2015-01-031-1/+1
| | | | | | To highlight ERB snippets, both `erb` and `html+erb` are used as a language passed to the code block. However, only the former will be correctly highlighted.
* removes superfluous regexp groupXavier Noria2014-12-231-1/+1
|
* third test to warn against reading guides in GitHubXavier Noria2014-12-231-1/+1
|
* second test to warn against reading guides in GitHubXavier Noria2014-12-231-2/+1
|
* proof of concept, need to check in GitHubXavier Noria2014-12-231-0/+2
|
* Uppercase HTML in docs.Hendy Tanata2014-08-081-1/+1
| | | | [skip ci]
* Update Redcarpet to 3.1.2Robin Dupret2014-05-141-1/+1
| | | | | | | This version fixes an API breakage between 3.0 and 3.1 ; the header method's arity should not have changed. [ci skip]
* Guides: output valid HTML5Nate Berkopec2014-05-051-1/+1
| | | [ci skip]
* remove unused variableVipul A M2013-04-131-1/+1
|
* Do not strip code blocks, otherwise we may get misaligned outputCarlos Antonio da Silva2012-11-071-1/+1
| | | | [ci skip]
* Fix footnote formatPrem Sichanugrist2012-09-171-0/+11
| | | | Markdown has footnote, but Redcarpet doesn't support it.
* Make sure that styles in NOTE block got convertedPrem Sichanugrist2012-09-171-5/+7
|
* 4.0 release note now renders correctly with indexPrem Sichanugrist2012-09-171-5/+26
|
* Start rewriting 4.0 release note into MarkdownPrem Sichanugrist2012-09-171-0/+48