Commit Graph

47 Commits

Author SHA1 Message Date
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
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
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
Pratik Naik
981d20e752 Supply fullfile name to the generator 2009-04-05 23:08:03 +01:00
Pratik Naik
f97832b1e4 Merge docrails 2009-03-24 12:15:43 +00:00
Pratik Naik
4687306c2c Merge commit 'mainstream/master'
Conflicts:
	railties/guides/images/fxn.jpg
	railties/guides/rails_guides/generator.rb
2009-03-24 12:10:38 +00:00
Xavier Noria
1ff3ae3ed7 ensure authors get warnings about broken links, and ensure end users don't 2009-03-22 11:11:10 +01:00
Xavier Noria
dab7813ebc in guides generator, warn about duplicate header IDs only if WARN_DUPLICATE_HEADERS 2009-03-22 00:43:56 +01:00
Pratik Naik
dc88847e5c Try to use actionpack gem to generate guide when Rails is not vendored 2009-03-17 12:26:34 +00:00
Pratik Naik
18eb80ccc7 Merge docrails 2009-03-16 11:28:36 +00:00
Xavier Noria
a19be732cd guides generator warns about duplicate header IDs 2009-03-15 22:16:27 +01:00
Xavier Noria
732d97a1b1 in guides generator, broken link warning now suggests the existing anchor with min Levenshtein distance 2009-03-15 20:03:37 +01:00
Xavier Noria
eb472d6d21 do not assume code blocks have blank lines around, also nontextile -> notextile 2009-03-02 01:06:54 +01:00
Pratik Naik
0db6c3f518 Merge docrails and update the release notes 2009-02-28 19:44:25 +00:00
Xavier Noria
0d145d9b37 implements a temporary workaround for failing notextile 2009-02-28 17:07:46 +01:00
Xavier Noria
da5549b83f let the guides generator warn about broken links 2009-02-28 03:24:23 +01:00
Pratik Naik
53cd102b39 Merge with docrails 2009-02-24 12:29:25 +00:00
Xavier Noria
247b9563ac let the indexer pass element IDs to the guides generator to avoid coupling, links to sections whose title has textile markup are fixed as well 2009-02-22 00:29:11 +01:00
Pratik Naik
8a9ef83372 Fix the fucking rake task 2009-02-20 08:57:09 +01:00
Xavier Noria
190984567e textilize titles in ToC of guides 2009-02-17 23:14:58 +01:00
Pratik Naik
96d610553e Merge docrails along with the new guides and guides generation code 2009-02-06 02:01:22 +00:00
Pratik Naik
03bb1ebec5 Convert the guides from asciidoc to textile and integrate with the new design.
If you're a guide writer and want to generate the guides, Run :

  ruby railties/guides/rails_guides.rb

And guides HTML will get generated inside railties/guides/output directory.
2009-02-04 01:44:58 +00:00