aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides/markdown.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
| | | | | | | | | | | We sometimes say "✂️ newline after `private`" in a code review (e.g. https://github.com/rails/rails/pull/18546#discussion_r23188776, https://github.com/rails/rails/pull/34832#discussion_r244847195). Now `Layout/EmptyLinesAroundAccessModifier` cop have new enforced style `EnforcedStyle: only_before` (https://github.com/rubocop-hq/rubocop/pull/7059). That cop and enforced style will reduce the our code review cost.
* Add OG tags to layout.html.erbtoshimaru2019-01-091-0/+8
|
* Fix rails guides markdown.rb and renderer.rb to use custom header idwagurano2018-09-231-1/+1
|
* 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
* 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
|
* Fix all style guides violationsRafael Mendonça França2017-04-191-1/+1
| | | | | Closes #28382 Closes #28651
* Add anchor links to all headersRuy Diaz2017-04-011-0/+4
| | | | To allow easy linking at all levels and not just from index
* refactors and fixes in guides generation [ci skip]Xavier Noria2017-02-121-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | 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 HTML escaping in the guidesRafael Mendonça França2016-10-251-1/+1
| | | | render :html escapes the argument if not provided as html safe.
* Generate HTML not plain textRafael Mendonça França2016-10-251-1/+1
|
* Fix plain option in the rails_guides generatorRafael Mendonça França2016-10-251-1/+1
|
* Fix broken alignments caused by auto-correct commit 411ccbdRyuta Kamizono2016-08-101-1/+2
| | | | Hash syntax auto-correcting breaks alignments. 411ccbdab2608c62aabdb320d52cb02d446bb39c
* remove redundant curlies from hash argumentsXavier Noria2016-08-061-4/+2
|
* modernizes hash syntax in guidesXavier Noria2016-08-061-1/+1
|
* applies new string literal convention in guidesXavier Noria2016-08-061-14/+14
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* File encoding is defaulted to utf-8 in Ruby >= 2.1Akira Matsuda2015-09-181-2/+0
|
* Fix guide anchor generation logic.Juanito Fatas2014-08-241-1/+6
| | | | | | | | This could use in any translation because it's not limited to `[^a-z0-9]`. Verify after this change, all guides still have same anchors. [Robin Dupret & Juanito Fatas]
* Revert "Do not gsub non ASCII characters in header anchor.".Juanito Fatas2014-08-201-1/+1
| | | | | | This reverts commit 699babe. Also change the upgrading_ruby_on_rails link back to original in 4_2_release_notes.
* Do not gsub non ASCII characters in header anchor.Juanito Fatas2014-05-221-2/+1
|
* Guides: output valid HTML5Nate Berkopec2014-05-051-5/+5
| | | [ci skip]
* place article name in the beginning of guides page titleGosha Arinich2013-01-061-1/+3
|
* Change #id generation rulePrem Sichanugrist2012-09-171-10/+37
| | | | | * Use the current heading by default * If duplicate, then use #[parent]-[current] as the id
* Retain heading styles in the page chapters listPrem Sichanugrist2012-09-171-3/+3
|
* Enable tablePrem Sichanugrist2012-09-171-1/+2
|
* Update Markdown renderer to be more flexiblePrem Sichanugrist2012-09-171-37/+53
|
* Reuse parent's id if it's already existsPrem Sichanugrist2012-09-171-1/+1
|
* 4.0 release note now renders correctly with indexPrem Sichanugrist2012-09-171-10/+85
|
* Start rewriting 4.0 release note into MarkdownPrem Sichanugrist2012-09-171-0/+42