Commit Graph

23 Commits

Author SHA1 Message Date
Carlos Antonio da Silva 9886b88a3b Do not strip code blocks, otherwise we may get misaligned output
[ci skip]
2012-11-07 09:22:14 -02:00
Joe Fiorini 03bcd416b0 [Guides] Navigation styling for small devices 2012-10-06 16:38:37 -04:00
Santiago Pastorino a0613ad8a9 Revert "Use flat_map { } instead of map {}.flatten"
This reverts commit abf8de8551.
We should take a deeper look to those cases flat_map doesn't do deep
flattening.

irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten
=> [1, 3, 1, 2]
irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i}
=> [[1, 3], [1, 2]]
2012-10-05 12:07:16 -03:00
Santiago Pastorino abf8de8551 Use flat_map { } instead of map {}.flatten 2012-10-05 11:52:20 -03:00
Xavier Noria 1e7b8d3a22 let .md be the only supported extension for guides 2012-09-18 23:04:12 +02:00
Prem Sichanugrist 1fa5c3b39f Fix footnote format
Markdown has footnote, but Redcarpet doesn't support it.
2012-09-17 15:55:17 -04:00
Prem Sichanugrist 05b4d59a8d Change #id generation rule
* Use the current heading by default
* If duplicate, then use #[parent]-[current] as the id
2012-09-17 15:55:17 -04:00
Prem Sichanugrist 5e2866cc34 No more Textile guide generation support 2012-09-17 15:55:17 -04:00
Prem Sichanugrist 5a4622b8b8 Retain heading styles in the page chapters list 2012-09-17 15:54:23 -04:00
Prem Sichanugrist f35187be22 Make sure that styles in NOTE block got converted 2012-09-17 15:54:23 -04:00
Prem Sichanugrist ed62b1bf0b Enable table 2012-09-17 15:54:22 -04:00
Prem Sichanugrist 0867fcdb5a Update Markdown renderer to be more flexible 2012-09-17 15:54:22 -04:00
Prem Sichanugrist 232b9ade1a Skip kindle's readme file on generation 2012-09-17 15:54:22 -04:00
Prem Sichanugrist 848d13a8aa Reuse parent's id if it's already exists 2012-09-17 15:54:21 -04:00
Prem Sichanugrist efa7717b7a 4.0 release note now renders correctly with index 2012-09-17 15:54:21 -04:00
Prem Sichanugrist 544f6bcb90 Start rewriting 4.0 release note into Markdown 2012-09-17 15:54:21 -04:00
Xavier Noria 447b6a4e67 removes usage of Object#in? from the code base (the method remains defined by Active Support)
Selecting which key extensions to include in active_support/rails
made apparent the systematic usage of Object#in? in the code base.
After some discussion in

    5ea6b0df9a

we decided to remove it and use plain Ruby, which seems enough
for this particular idiom.

In this commit the refactor has been made case by case. Sometimes
include? is the natural alternative, others a simple || is the
way you actually spell the condition in your head, others a case
statement seems more appropriate. I have chosen the one I liked
the most in each case.
2012-08-06 00:30:02 +02:00
Rafael Magana eb362e59c0 [guides] fix reference to railties directory, guides are no longer there 2012-05-28 16:21:25 -05:00
Rafael Magana 15b229e8aa [guides] guides:generate:kindle is the new interface to generate .mobi file instead of using KINDLE=1 2012-05-28 16:20:10 -05:00
Rafael Magana 1b5e1c1972 [guides] get rid of any reference to the generator script since rake tasks are now the new interface 2012-05-28 16:17:00 -05:00
Rafael Magana e625056c82 [guides] update generator.rb to refer to guides:generate instead of generate_guides 2012-05-27 23:33:54 -05:00
Vijay Dev 58a49875df Make RedCloth not convert double hyphens to emdashes. Closes #5292
As mentioned in http://redcloth.org/textile/writing-paragraph-text/#dashes
RedCloth converts double hyphens to emdashes. This causes problems in
the guides where options like --database, --full are rendered incorrectly.

This commit fixes it by customizing the emdash method in the
RedCloth::Formatters::HTML module to just return '--'. See their FAQ
http://redcloth.org/faq in the section 'How do I customize RedCloth?'
2012-05-06 01:05:43 +05:30
Xavier Noria 6d87cd028b moves the guides up to the root directory 2012-03-17 08:32:49 -07:00