Loading Rakefile +2 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ end # Compress JS/CSS file in-place # Using a hackish way to access yui-compressor def yui_compress(fname) system "java -jar $(dirname $(which sencha))/../jsbuilder/ycompressor/ycompressor.jar -o #{fname} #{fname}" system "java -jar $(dirname $(which sencha))/bin/yuicompressor.jar -o #{fname} #{fname}" end # Reads in all CSS files referenced between BEGIN CSS and END CSS markers. Loading Loading @@ -103,6 +103,7 @@ def compress system("sencha", "create", "jsb", "-a", "#{dir}/build-js.html", "-p", "#{dir}/app.jsb3") # Concatenate files listed in JSB3 file system("sencha", "build", "-p", "#{dir}/app.jsb3", "-d", dir) # Remove intermediate build files system("rm", "#{dir}/app.jsb3") system("rm", "#{dir}/all-classes.js") Loading template/app/History.js +4 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,10 @@ Ext.define("Docs.History", { } else if (!this.noRepeatNav) { this.noRepeatNav = true; // Prevent infinite nav loop this.navigate(Ext.getCmp('doctabs').staticTabs[0].href, noHistory); var firstTab = Ext.getCmp('doctabs').staticTabs[0]; if (firstTab) { this.navigate(firstTab.href, noHistory); } } } }, Loading template/build-js.html +5 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript">Docs = {data: {localStorageDb: "docs"}};</script> <script type="text/javascript" src="data.js"></script> <script type="text/javascript" src="extjs/ext.js"></script> <!-- BEGIN JS --> <script type="text/javascript" src="resources/codemirror/codemirror.js"></script> Loading @@ -22,5 +22,9 @@ </head> <body> <div id="loading"></div> <div id="header-content"></div> <div id="footer-content"></div> </body> </html> template/data.js 0 → 100644 +14 −0 Original line number Diff line number Diff line // Empty data file. Needed to build the Docs app. Docs = { data: { localStorageDb: "docs", search: [], classes: [], examples: [], guides: [], signatures: [], stats: [], videos: [] }, otherProducts: [] }; Loading
Rakefile +2 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ end # Compress JS/CSS file in-place # Using a hackish way to access yui-compressor def yui_compress(fname) system "java -jar $(dirname $(which sencha))/../jsbuilder/ycompressor/ycompressor.jar -o #{fname} #{fname}" system "java -jar $(dirname $(which sencha))/bin/yuicompressor.jar -o #{fname} #{fname}" end # Reads in all CSS files referenced between BEGIN CSS and END CSS markers. Loading Loading @@ -103,6 +103,7 @@ def compress system("sencha", "create", "jsb", "-a", "#{dir}/build-js.html", "-p", "#{dir}/app.jsb3") # Concatenate files listed in JSB3 file system("sencha", "build", "-p", "#{dir}/app.jsb3", "-d", dir) # Remove intermediate build files system("rm", "#{dir}/app.jsb3") system("rm", "#{dir}/all-classes.js") Loading
template/app/History.js +4 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,10 @@ Ext.define("Docs.History", { } else if (!this.noRepeatNav) { this.noRepeatNav = true; // Prevent infinite nav loop this.navigate(Ext.getCmp('doctabs').staticTabs[0].href, noHistory); var firstTab = Ext.getCmp('doctabs').staticTabs[0]; if (firstTab) { this.navigate(firstTab.href, noHistory); } } } }, Loading
template/build-js.html +5 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript">Docs = {data: {localStorageDb: "docs"}};</script> <script type="text/javascript" src="data.js"></script> <script type="text/javascript" src="extjs/ext.js"></script> <!-- BEGIN JS --> <script type="text/javascript" src="resources/codemirror/codemirror.js"></script> Loading @@ -22,5 +22,9 @@ </head> <body> <div id="loading"></div> <div id="header-content"></div> <div id="footer-content"></div> </body> </html>
template/data.js 0 → 100644 +14 −0 Original line number Diff line number Diff line // Empty data file. Needed to build the Docs app. Docs = { data: { localStorageDb: "docs", search: [], classes: [], examples: [], guides: [], signatures: [], stats: [], videos: [] }, otherProducts: [] };