codex 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +31 -0
- data/Manifest.txt +83 -62
- data/Rakefile +2 -0
- data/app_generators/codex/codex_generator.rb +35 -20
- data/app_generators/codex/templates/Rakefile +14 -53
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CSS.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CSharp.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CollapseCode.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Cpp.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CrashTest.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Delphi.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/FirstLine.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Index.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Java.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/JavaScript.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/NoControls.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/NoGutter.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/PHP.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Python.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Ruby.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/SQL.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/clipboard.swf +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushCSharp.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushCpp.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushCss.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushDelphi.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushJScript.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushJava.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushPhp.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushPython.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushRuby.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushSql.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushVb.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushXml.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shCore.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shCore.uncompressed.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/ShowColumns.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/SmartTabs.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Styles/SyntaxHighlighter.css +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Styles/TestPages.css +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Templates/Test.dwt +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/VB.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/XML.html +0 -0
- data/{lib → app_generators/codex/templates/assets}/stylesheets/pressie.css +10 -7
- data/{lib → app_generators/codex/templates/assets}/stylesheets/print.css +0 -0
- data/{lib → app_generators/codex/templates/assets}/stylesheets/ruby.png +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/blank.gif +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/bodybg.gif +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/framing.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/iepngfix.htc +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/opera.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/outline.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/pretty.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/print.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/s5-core.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/slides.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/slides.js +0 -0
- data/app_generators/codex/templates/bin/build_all.rb +4 -3
- data/app_generators/codex/templates/code/graphviz/graph.dot +13 -0
- data/app_generators/codex/templates/{slides → config}/metadata.yml +1 -0
- data/app_generators/codex/templates/content/basics.textile +42 -0
- data/app_generators/codex/templates/{slides/building.slides → content/building.textile} +2 -2
- data/app_generators/codex/templates/{slides/example.slides → content/example.textile} +2 -1
- data/app_generators/codex/templates/content/graphviz.textile +35 -0
- data/app_generators/codex/templates/{slides/including_code.slides → content/including_code.textile} +9 -6
- data/app_generators/codex/templates/content/including_tex.textile +32 -0
- data/app_generators/codex/templates/{slides/table_of_contents.slides → content/table_of_contents.textile} +9 -0
- data/app_generators/codex/templates/content/user_defined.textile +83 -0
- data/app_generators/codex/templates/filters/example_filter.rb +13 -0
- data/app_generators/codex/templates/post_processors/change_code_urls.rb +16 -0
- data/app_generators/codex/templates/post_processors/upcase_titles.rb +15 -0
- data/app_generators/codex/templates/readme.txt +1 -1
- data/app_generators/codex/templates/templates/layout.erb +67 -0
- data/bin/codex +0 -0
- data/codex.gemspec +20 -7
- data/config/hoe.rb +2 -1
- data/config/requirements.rb +1 -1
- data/lib/codex.rb +16 -4
- data/lib/codex/content.rb +7 -151
- data/lib/codex/filter.rb +101 -0
- data/lib/codex/filters/code_filter.rb +92 -0
- data/lib/codex/filters/graphviz_filter.rb +112 -0
- data/lib/codex/filters/ritex_filter.rb +16 -0
- data/lib/codex/post_processor.rb +55 -0
- data/lib/codex/post_processors/01_slides_processor.rb +8 -0
- data/lib/codex/post_processors/02_add_title_slides.rb +11 -0
- data/lib/codex/pressie.rb +10 -97
- data/lib/codex/rake/codextask.rb +93 -0
- data/lib/codex/template_handler.rb +29 -0
- data/lib/codex/version.rb +2 -2
- data/test/codex/post_processor/test_add_title_slides_processor.rb +41 -0
- data/test/codex/post_processor/test_post_processors.rb +42 -0
- data/test/codex/post_processor/test_slides_processor.rb +31 -0
- data/test/codex/rake/test_codextask.rb +35 -0
- data/test/codex/test_pressie.rb +24 -0
- data/test/codex/test_template_handler.rb +28 -0
- data/test/test_codex_generator.rb +20 -26
- data/test/test_filter.rb +14 -0
- data/test/test_helper.rb +33 -1
- metadata +106 -70
- data/app_generators/codex/templates/bin/postprocess_all.rb +0 -5
- data/app_generators/codex/templates/bin/pressie.rb +0 -7
- data/app_generators/codex/templates/slides/basics.slides +0 -37
- data/test/test_codex.rb +0 -11
- data/test/test_generator_helper.rb +0 -29
data/History.txt
CHANGED
@@ -1,3 +1,34 @@
|
|
1
|
+
== 1.1 2009-10-10
|
2
|
+
|
3
|
+
* A new directory organization for the project files (brandon)
|
4
|
+
* The slides source now go in content/
|
5
|
+
* assets/ will now hold all support files used by the slide's html (javascript, css, etc)
|
6
|
+
* templates/ will hold the html template for the slides (see below)
|
7
|
+
* Support for multiple template languages (brandon)
|
8
|
+
* The slide content files now end with a template language extension (such as .textile or .markdown)
|
9
|
+
* New template handlers can be define in lib/codex/template_handler.rb
|
10
|
+
* metadata.yml now goes in config/ so it won't be parsed as a slide, due to the new template handler functionality (bernardo)
|
11
|
+
* Support for a master ERB layout for the .html files (brandon)
|
12
|
+
* The layout goes in templates/layout.erb
|
13
|
+
* You can now use "edge" codex by git cloning the codex source into vendor/codex, inside a codex project dir (brandon)
|
14
|
+
* Support for user defined post processors (bernardo)
|
15
|
+
* System wide post processors go in lib/codex/post_processors
|
16
|
+
* bin/postprocess_all.rb moved to a post processor
|
17
|
+
* The division of the slides by h1. now implemented in a post processor (brandon)
|
18
|
+
* Functionality defined in lib/codex/post_processor.rb
|
19
|
+
* Now using the Monaco fixed width font to display code (bernardo)
|
20
|
+
* Fixed a few other tiny show stopper bugs and makes everything ready for a new tested gem release (bernardo)
|
21
|
+
|
22
|
+
== 1.0.3 2008-05-22
|
23
|
+
|
24
|
+
* Support for user defined filters
|
25
|
+
* The functionality is in added file lib/codex/filters/filter.rb
|
26
|
+
* Included WebTeX filter
|
27
|
+
* Added ritex >= 0.1 as dependency
|
28
|
+
* Syntax highlighter is a filter now
|
29
|
+
* Syntax highlighter stuff from content.rb is now in lib/codex/filters/code_filter.rb
|
30
|
+
* Added some slides elaborating on this to the templates
|
31
|
+
|
1
32
|
== 1.0.2 2008-05-20
|
2
33
|
|
3
34
|
* Add rubigen 1.3.2 to dependency list as its used for codex generator
|
data/Manifest.txt
CHANGED
@@ -2,86 +2,102 @@ History.txt
|
|
2
2
|
LICENSE.txt
|
3
3
|
Manifest.txt
|
4
4
|
PostInstall.txt
|
5
|
+
README.rdoc
|
5
6
|
README.txt
|
6
7
|
Rakefile
|
7
8
|
app_generators/codex/USAGE
|
8
9
|
app_generators/codex/codex_generator.rb
|
9
10
|
app_generators/codex/templates/Rakefile
|
11
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/CSS.html
|
12
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/CSharp.html
|
13
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/CollapseCode.html
|
14
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Cpp.html
|
15
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/CrashTest.html
|
16
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Delphi.html
|
17
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/FirstLine.html
|
18
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Index.html
|
19
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Java.html
|
20
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/JavaScript.html
|
21
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/NoControls.html
|
22
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/NoGutter.html
|
23
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/PHP.html
|
24
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Python.html
|
25
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Ruby.html
|
26
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/SQL.html
|
27
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/clipboard.swf
|
28
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
|
29
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushCpp.js
|
30
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushCss.js
|
31
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
|
32
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
|
33
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushJava.js
|
34
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushPhp.js
|
35
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushPython.js
|
36
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushRuby.js
|
37
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushSql.js
|
38
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushVb.js
|
39
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushXml.js
|
40
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shCore.js
|
41
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
|
42
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/ShowColumns.html
|
43
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/SmartTabs.html
|
44
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
|
45
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Styles/TestPages.css
|
46
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/Templates/Test.dwt
|
47
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/VB.html
|
48
|
+
app_generators/codex/templates/assets/dp.SyntaxHighlighter/XML.html
|
49
|
+
app_generators/codex/templates/assets/stylesheets/pressie.css
|
50
|
+
app_generators/codex/templates/assets/stylesheets/print.css
|
51
|
+
app_generators/codex/templates/assets/stylesheets/ruby.png
|
52
|
+
app_generators/codex/templates/assets/ui/default/blank.gif
|
53
|
+
app_generators/codex/templates/assets/ui/default/bodybg.gif
|
54
|
+
app_generators/codex/templates/assets/ui/default/framing.css
|
55
|
+
app_generators/codex/templates/assets/ui/default/iepngfix.htc
|
56
|
+
app_generators/codex/templates/assets/ui/default/opera.css
|
57
|
+
app_generators/codex/templates/assets/ui/default/outline.css
|
58
|
+
app_generators/codex/templates/assets/ui/default/pretty.css
|
59
|
+
app_generators/codex/templates/assets/ui/default/print.css
|
60
|
+
app_generators/codex/templates/assets/ui/default/s5-core.css
|
61
|
+
app_generators/codex/templates/assets/ui/default/slides.css
|
62
|
+
app_generators/codex/templates/assets/ui/default/slides.js
|
10
63
|
app_generators/codex/templates/bin/build_all.rb
|
11
|
-
app_generators/codex/templates/bin/postprocess_all.rb
|
12
|
-
app_generators/codex/templates/bin/pressie.rb
|
13
64
|
app_generators/codex/templates/code/control/basic_continuation.rb
|
14
65
|
app_generators/codex/templates/code/control/cc_throw_catch.rb
|
15
66
|
app_generators/codex/templates/code/control/closure_continuation.rb
|
16
67
|
app_generators/codex/templates/code/control/closure_continuation_2.rb
|
17
|
-
app_generators/codex/templates/
|
18
|
-
app_generators/codex/templates/
|
19
|
-
app_generators/codex/templates/
|
20
|
-
app_generators/codex/templates/
|
21
|
-
app_generators/codex/templates/
|
22
|
-
app_generators/codex/templates/
|
23
|
-
app_generators/codex/templates/
|
24
|
-
app_generators/codex/templates/
|
25
|
-
app_generators/codex/templates/
|
26
|
-
app_generators/codex/templates/
|
27
|
-
app_generators/codex/templates/
|
28
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/NoGutter.html
|
29
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/PHP.html
|
30
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Python.html
|
31
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Ruby.html
|
32
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/SQL.html
|
33
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/clipboard.swf
|
34
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
|
35
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCpp.js
|
36
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCss.js
|
37
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
|
38
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
|
39
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJava.js
|
40
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushPhp.js
|
41
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushPython.js
|
42
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushRuby.js
|
43
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushSql.js
|
44
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushVb.js
|
45
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushXml.js
|
46
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shCore.js
|
47
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
|
48
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/ShowColumns.html
|
49
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/SmartTabs.html
|
50
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
|
51
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Styles/TestPages.css
|
52
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/Templates/Test.dwt
|
53
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/VB.html
|
54
|
-
app_generators/codex/templates/dp.SyntaxHighlighter/XML.html
|
68
|
+
app_generators/codex/templates/code/graphviz/graph.dot
|
69
|
+
app_generators/codex/templates/config/metadata.yml
|
70
|
+
app_generators/codex/templates/content/basics.textile
|
71
|
+
app_generators/codex/templates/content/building.textile
|
72
|
+
app_generators/codex/templates/content/example.textile
|
73
|
+
app_generators/codex/templates/content/graphviz.textile
|
74
|
+
app_generators/codex/templates/content/including_code.textile
|
75
|
+
app_generators/codex/templates/content/including_tex.textile
|
76
|
+
app_generators/codex/templates/content/table_of_contents.textile
|
77
|
+
app_generators/codex/templates/content/user_defined.textile
|
78
|
+
app_generators/codex/templates/filters/example_filter.rb
|
55
79
|
app_generators/codex/templates/html/all.html
|
80
|
+
app_generators/codex/templates/post_processors/change_code_urls.rb
|
81
|
+
app_generators/codex/templates/post_processors/upcase_titles.rb
|
56
82
|
app_generators/codex/templates/readme.txt
|
57
|
-
app_generators/codex/templates/
|
58
|
-
app_generators/codex/templates/slides/building.slides
|
59
|
-
app_generators/codex/templates/slides/example.slides
|
60
|
-
app_generators/codex/templates/slides/including_code.slides
|
61
|
-
app_generators/codex/templates/slides/metadata.yml
|
62
|
-
app_generators/codex/templates/slides/table_of_contents.slides
|
63
|
-
app_generators/codex/templates/ui/default/blank.gif
|
64
|
-
app_generators/codex/templates/ui/default/bodybg.gif
|
65
|
-
app_generators/codex/templates/ui/default/framing.css
|
66
|
-
app_generators/codex/templates/ui/default/iepngfix.htc
|
67
|
-
app_generators/codex/templates/ui/default/opera.css
|
68
|
-
app_generators/codex/templates/ui/default/outline.css
|
69
|
-
app_generators/codex/templates/ui/default/pretty.css
|
70
|
-
app_generators/codex/templates/ui/default/print.css
|
71
|
-
app_generators/codex/templates/ui/default/s5-core.css
|
72
|
-
app_generators/codex/templates/ui/default/slides.css
|
73
|
-
app_generators/codex/templates/ui/default/slides.js
|
83
|
+
app_generators/codex/templates/templates/layout.erb
|
74
84
|
bin/codex
|
75
85
|
codex.gemspec
|
76
86
|
config/hoe.rb
|
77
87
|
config/requirements.rb
|
78
88
|
lib/codex.rb
|
79
89
|
lib/codex/content.rb
|
90
|
+
lib/codex/filter.rb
|
91
|
+
lib/codex/filters/code_filter.rb
|
92
|
+
lib/codex/filters/graphviz_filter.rb
|
93
|
+
lib/codex/filters/ritex_filter.rb
|
94
|
+
lib/codex/post_processor.rb
|
95
|
+
lib/codex/post_processors/01_slides_processor.rb
|
96
|
+
lib/codex/post_processors/02_add_title_slides.rb
|
80
97
|
lib/codex/pressie.rb
|
98
|
+
lib/codex/rake/codextask.rb
|
99
|
+
lib/codex/template_handler.rb
|
81
100
|
lib/codex/version.rb
|
82
|
-
lib/stylesheets/pressie.css
|
83
|
-
lib/stylesheets/print.css
|
84
|
-
lib/stylesheets/ruby.png
|
85
101
|
script/console
|
86
102
|
script/destroy
|
87
103
|
script/generate
|
@@ -89,7 +105,12 @@ setup.rb
|
|
89
105
|
tasks/deployment.rake
|
90
106
|
tasks/environment.rake
|
91
107
|
tasks/website.rake
|
92
|
-
test/
|
108
|
+
test/codex/post_processor/test_add_title_slides_processor.rb
|
109
|
+
test/codex/post_processor/test_post_processors.rb
|
110
|
+
test/codex/post_processor/test_slides_processor.rb
|
111
|
+
test/codex/rake/test_codextask.rb
|
112
|
+
test/codex/test_pressie.rb
|
113
|
+
test/codex/test_template_handler.rb
|
93
114
|
test/test_codex_generator.rb
|
94
|
-
test/
|
115
|
+
test/test_filter.rb
|
95
116
|
test/test_helper.rb
|
data/Rakefile
CHANGED
@@ -24,16 +24,17 @@ class CodexGenerator < RubiGen::Base
|
|
24
24
|
# Create stubs
|
25
25
|
m.template_copy_each %w[Rakefile]
|
26
26
|
m.template_copy_each "html/all.html"
|
27
|
-
%w[basics building example including_code table_of_contents].each do |
|
28
|
-
m.file_copy_each "
|
27
|
+
%w[basics building example including_code including_tex table_of_contents user_defined graphviz].each do |template|
|
28
|
+
m.file_copy_each "content/#{template}.textile"
|
29
29
|
end
|
30
|
-
m.
|
31
|
-
%w[build_all
|
30
|
+
m.template_copy_each "config/metadata.yml"
|
31
|
+
%w[build_all].each do |bin|
|
32
32
|
m.file_copy_each "bin/#{bin}.rb"
|
33
33
|
end
|
34
34
|
%w[basic_continuation cc_throw_catch closure_continuation closure_continuation_2].each do |code|
|
35
35
|
m.file_copy_each "code/control/#{code}.rb"
|
36
36
|
end
|
37
|
+
m.file_copy_each "code/graphviz/graph.dot"
|
37
38
|
["CollapseCode.html", "Cpp.html", "CrashTest.html", "CSharp.html", "CSS.html",
|
38
39
|
"Delphi.html", "FirstLine.html", "Index.html", "Java.html", "JavaScript.html",
|
39
40
|
"NoControls.html", "NoGutter.html", "PHP.html", "Python.html", "Ruby.html",
|
@@ -46,14 +47,22 @@ class CodexGenerator < RubiGen::Base
|
|
46
47
|
"Scripts/shBrushXml.js", "Scripts/shCore.js", "Scripts/shCore.uncompressed.js",
|
47
48
|
"Styles/SyntaxHighlighter.css", "Styles/TestPages.css",
|
48
49
|
"Templates/Test.dwt"
|
49
|
-
|
50
|
-
|
51
|
-
|
50
|
+
].each do |syntax|
|
51
|
+
m.file_copy_each "assets/dp.SyntaxHighlighter/#{syntax}"
|
52
|
+
end
|
53
|
+
["pressie.css", "print.css", "ruby.png"].each do |asset|
|
54
|
+
m.file_copy_each "assets/stylesheets/#{asset}"
|
55
|
+
end
|
52
56
|
["blank.gif", "bodybg.gif", "framing.css", "iepngfix.htc", "opera.css", "outline.css",
|
53
|
-
"pretty.css", "print.css", "s5-core.css", "slides.css", "slides.js"
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
+
"pretty.css", "print.css", "s5-core.css", "slides.css", "slides.js"
|
58
|
+
].each do |asset|
|
59
|
+
m.file_copy_each "assets/ui/default/#{asset}"
|
60
|
+
end
|
61
|
+
m.template_copy_each "filters/example_filter.rb"
|
62
|
+
["change_code_urls.rb", "upcase_titles.rb"].each do |asset|
|
63
|
+
m.file_copy_each "post_processors/#{asset}"
|
64
|
+
end
|
65
|
+
m.file_copy_each "templates/layout.erb"
|
57
66
|
|
58
67
|
m.dependency "install_rubigen_scripts", [destination_root, 'codex'],
|
59
68
|
:shebang => options[:shebang], :collision => :force
|
@@ -65,8 +74,8 @@ class CodexGenerator < RubiGen::Base
|
|
65
74
|
protected
|
66
75
|
def banner
|
67
76
|
<<-EOS
|
68
|
-
Creates a Codex
|
69
|
-
Codex is
|
77
|
+
Creates a Codex presentation.
|
78
|
+
Codex is simple tool for creating source-code intensive presentations and courses
|
70
79
|
|
71
80
|
USAGE: #{spec.name} name
|
72
81
|
EOS
|
@@ -93,14 +102,20 @@ EOS
|
|
93
102
|
# Installation skeleton. Intermediate directories are automatically
|
94
103
|
# created so don't sweat their absence here.
|
95
104
|
BASEDIRS = %w(
|
105
|
+
assets/dp.SyntaxHighlighter/Scripts
|
106
|
+
assets/dp.SyntaxHighlighter/Styles
|
107
|
+
assets/dp.SyntaxHighlighter/Templates
|
108
|
+
assets/stylesheets
|
109
|
+
assets/ui/default
|
96
110
|
bin
|
97
111
|
code/control
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
112
|
+
code/graphviz
|
113
|
+
config
|
114
|
+
content
|
115
|
+
filters
|
116
|
+
html/images
|
102
117
|
script
|
103
|
-
|
104
|
-
|
118
|
+
post_processors
|
119
|
+
templates
|
105
120
|
)
|
106
|
-
end
|
121
|
+
end
|
@@ -1,54 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
desc "Build #{html_file} from #{slide_file}"
|
16
|
-
file html_file => [HTML_DIR, slide_file] do
|
17
|
-
sh "ruby bin/pressie.rb #{METADATA} #{slide_file} > #{html_file}"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
desc "Build the HTML slides from all the files slides/*.slides files"
|
22
|
-
task :default => OUTPUT
|
23
|
-
|
24
|
-
desc "Build all slides based on the contents of slides/table_of_contents.slides"
|
25
|
-
task :all => [ 'tmp/', HTML_DIR, ALL_HTML, :remove_tmp ]
|
26
|
-
|
27
|
-
task ALL_HTML => 'tmp/almost_all.html' do
|
28
|
-
sh "ruby bin/postprocess_all.rb tmp/almost_all.html >#{ALL_HTML}"
|
29
|
-
end
|
30
|
-
|
31
|
-
task 'tmp/almost_all.html' => 'tmp/almost_all.slides' do
|
32
|
-
sh "ruby bin/pressie.rb #{METADATA} tmp/almost_all.slides >tmp/almost_all.html"
|
33
|
-
end
|
34
|
-
|
35
|
-
task 'tmp/almost_all.slides' => OUTPUT do
|
36
|
-
sh "ruby bin/build_all.rb #{METADATA} slides/table_of_contents.slides tmp/almost_all.slides"
|
37
|
-
end
|
38
|
-
|
39
|
-
file "tmp/" do
|
40
|
-
mkdir "tmp"
|
41
|
-
end
|
42
|
-
|
43
|
-
file "html/" do
|
44
|
-
mkdir "html"
|
45
|
-
end
|
46
|
-
|
47
|
-
task :remove_tmp do
|
48
|
-
FileUtils.rm_rf("tmp")
|
49
|
-
end
|
50
|
-
|
51
|
-
desc "Remove all work products—slides and temporary files"
|
52
|
-
task :clean => :remove_tmp do
|
53
|
-
FileUtils.rm_rf HTML_DIR
|
1
|
+
APP_ROOT = File.dirname(__FILE__) unless defined?(APP_ROOT)
|
2
|
+
require 'rubygems'
|
3
|
+
if File.exist?("#{APP_ROOT}/vendor/codex")
|
4
|
+
$:.unshift "#{APP_ROOT}/vendor/codex/lib"
|
5
|
+
else
|
6
|
+
gem 'codex'
|
7
|
+
end
|
8
|
+
require 'codex/rake/codextask'
|
9
|
+
Codex.root = APP_ROOT
|
10
|
+
|
11
|
+
Codex::Rake::CodexTask.new do |c|
|
12
|
+
# c.content_dir = 'content'
|
13
|
+
# c.output_dir = 'html'
|
14
|
+
# c.metadata = "config/metadata.yml"
|
54
15
|
end
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CSS.html
RENAMED
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CSharp.html
RENAMED
File without changes
|
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Cpp.html
RENAMED
File without changes
|
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Delphi.html
RENAMED
File without changes
|
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Index.html
RENAMED
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Java.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/PHP.html
RENAMED
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Python.html
RENAMED
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Ruby.html
RENAMED
File without changes
|
data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/SQL.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|