Commit Graph

75 Commits

Author SHA1 Message Date
Vijay Dev
74233d48e6 Fixes deprecation warning about passing a template handler
in the template name while generating guide related pages
like index, layout and credits
2011-11-10 22:36:20 +05:30
Xavier Noria
e746980507 guides generation: apparently this workaround for RedCloth is not needed anymore 2011-08-07 16:20:51 -07:00
Xavier Noria
598eab90ff let TIP and friends handle a multiline paragraph
Normally I would have done this in master, but there was already
a guide with wrapped content, so worked here. I am going to
cross-merge now.
2011-07-25 14:12:12 -07:00
Vijay Dev
60c505dc79 Revert "Update the TIP formatter to handle multiline tips"
This reverts commit e3dbe66e196069fde7d3ff118bd25a03184915fa.

Reason: Code changes are not allowed in docrails.
2011-07-25 17:37:01 +05:30
Michael Lavrisha
e3dbe66e19 Update the TIP formatter to handle multiline tips
- includes 3 tests
2011-07-24 16:17:40 -06:00
Xavier Noria
c300e13a9c Revert "notextile tag has been placed with ascii quotes"
Reason: <notextile> is an internal tag

This reverts commit 01040b5dc990e79052627451603feea0f149fe41.
2011-07-23 12:51:02 +02:00
JudeArasu
01040b5dc9 notextile tag has been placed with ascii quotes 2011-07-19 01:33:45 +05:30
Xavier Noria
cd8ecec31f specify image dimensions for pictures in the guides credits page 2011-06-04 14:25:54 +02:00
Karel Minarik
47003f8cdf [GUIDES] Changed the LANGUAGE variable to GUIDES_LANGUAGE to minimize conflicts with regular environment variables (eg. in Ubuntu) 2011-05-14 09:03:30 +02:00
Prem Sichanugrist
733bfa63f5 Remove #among? from Active Support
After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now.

It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
2011-04-13 20:25:28 +08:00
David Heinemeier Hansson
d1575ae1b9 Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion! 2011-04-12 00:23:07 +02:00
Prem Sichanugrist
a9f3c9da01 Using Object#in? and Object#either? in various places
There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
2011-04-11 03:17:09 +08:00
Karel Minarik
1877faa7ac [FIX] Renamed ENV['LANG'] for generating translated guides to ENV['LANGUAGE'] so there's no mixup with OS env vars 2011-01-02 22:09:09 +01:00
Karel Minarik
56221faecd Added support for generating translated guides (stored in source/<LANG>) via setting the LANG environment variable 2011-01-01 18:01:11 +01:00
Vijay Dev
fdfa7dc648 fixed comment - same as 592f600 2010-12-25 01:52:28 +05:30
Xavier Noria
902ae14e65 guides: gives clear instructions for feedback, removes links to the now archived LH project 2010-11-19 21:46:12 +01:00
Xavier Noria
cdce5fc886 ensures that no browser shows a vertical scrollbar in the code blocks of guides, thanks to Marcelino Llano for a hint to fix this 2010-10-24 19:28:28 +02:00
Xavier Noria
739fda3f0a removes the toolbar from guides code blocks 2010-10-24 16:21:20 +02:00
Xavier Noria
5f5496c7f3 switches guides code syntax highlighting to the better SyntaxHighlighter, I did my best with the theme, I swear 2010-10-24 00:35:47 +02:00
Xavier Noria
3b62667e77 solves everything in guides raised by WARNINGS=1 (except for one which is abandoned atm) 2010-08-27 23:27:29 +02:00
Aleksander Pohl
ee7507b38e - Fix non-ascii characters in headers
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-08-26 01:05:52 +02:00
Santiago Pastorino
b451de0d6d Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
Xavier Noria
03cb74b946 guides: adds support in the indexer for custom header IDs, and some refactors 2010-04-06 15:20:44 -07:00
Xavier Noria
80e7178789 guides: adds page title to home and credits, and revises it in the rest 2010-04-06 11:30:00 -07:00
Xavier Noria
7d7e0627a0 fixes duplicate element IDs in some guides 2010-04-04 08:42:54 -07:00
Xavier Noria
ac8b71cc20 guides assets are now centralized in the assets directory, with standard subdirs 2010-04-04 02:30:31 -07:00
Xavier Noria
c52bec77f5 sanity check arguments in guides generation collapsed into a single WARNINGS flag, EDGE_GUIDES renamed to EDGE to be coherent with the rest, preamble revised 2010-04-04 02:08:06 -07:00
Xavier Noria
512b4bccfb adds a preamble to the guides generator, documents what it does and the environment variables it supports 2010-04-03 12:08:47 -07:00
Xavier Noria
4e391a3d49 guides: badge insertion was a quick hack, rewrites that 2010-04-02 14:53:39 -07:00
Xavier Noria
da770104d2 insert the badge in a valid way 2010-04-01 11:27:48 +02:00
Jaime Iniesta
1a0134c942 Fixed chapter list generation on index section, an empty pair of <ul></ul> was being created when the chapters had no children. 2010-04-01 01:14:18 +02:00
Xavier Noria
b786940248 guides: rewrites index and credit pages as pure HTML to avoid textilizing the rendered view, in particular we can now put a DOCTYPE in the layout 2010-03-31 15:20:43 -07:00
Xavier Noria
0fc1f92ac9 <%=izes and adds doctype to guides 2010-03-30 23:02:05 +02:00
Xavier Noria
61f6749fb7 guides generator skips untouched guides by default, override with ALL=1 2010-03-17 23:03:48 +01:00
Xavier Noria
9209f7bafc guides generation: undoes output buffer workaround, more refactors 2010-03-15 22:06:27 +01:00
Xavier Noria
ac202a26ce refactors some bits of the guides generator, ONLY selection accepts prefixes, guides generation fixed for 1.9, revised string safety in a few spots 2010-03-15 09:57:08 +01:00
Xavier Noria
dca6ddea04 the guides generator needs fileutils 2010-03-04 01:42:57 +01:00
Xavier Noria
f3eab8e663 adds support for an edge badge in guides 2010-02-17 20:22:37 +01:00
Ryan Bigg
6e8356147d Use mkdir_p so that the output directory is always created. 2010-02-08 21:18:48 +10:00
Xavier Noria
2928040e23 simplify a couple of regexps 2010-02-08 09:42:50 +01:00
Xavier Noria
8b4db93ca3 guides textile extensions: now recognizes also TIP. 2010-02-08 09:39:01 +01:00
Xavier Noria
9b5dae7af5 update html_safe calls in guides generation 2010-02-02 01:04:35 +01:00
Pratik Naik
b04230e3bb Merge remote branch 'mainstream/master'
Conflicts:
	actionpack/lib/action_controller/metal/flash.rb
2010-01-17 03:20:30 +05:30
Ryan Bigg
e17b23db01 Make guides generation work for Ruby 1.9.x
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-01-16 23:25:16 +05:30
Ryan Bigg
0fc6418e75 Mark title and headers as html_safe! for guides [#3702 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-01-16 23:24:38 +05:30
Xavier Noria
326829633c trust generated HTML, and define html_safe! for gem >= 2.3 just in case by now 2009-10-10 23:29:12 +02:00
Xavier Noria
8fcf2347b2 removes a no longer needed workaround in the guides generator 2009-10-10 23:00:58 +02:00
Xavier Noria
50be5f039b fixes generation of index and credits page 2009-09-02 20:47:15 +02:00
Xavier Noria
836b7787f5 fixes undefined method keys for nil:NilClass error while generating guides 2009-09-02 18:40:40 +02:00
lifo
5b92dcb675 Merge docrails 2009-04-17 14:28:46 +01:00