Permalink
Browse files

Initial preparations of IronRuby site for first push

  • Loading branch information...
jschementi committed Feb 5, 2011
1 parent 32ee4b0 commit c1671389fc79c0b89789c0d08138c3412a800b45
Showing with 6,621 additions and 397 deletions.
  1. +9 −1 css/lang.css
  2. +22 −14 css/master.css
  3. +3 −3 generate.py
  4. BIN images/ironruby-vstools-450.png
  5. BIN images/tryrubyinbrowser-290x100.png
  6. +0 −1 iron-websites.csproj
  7. +13 −0 iron-websites.sln
  8. +1 −1 python/browser/examples.rst
  9. +6 −6 python/browser/index.rst
  10. +13 −13 python/download/index.rst
  11. +10 −10 python/support/index.rst
  12. +9 −0 ruby/browser/documentation/index.html
  13. +1 −0 ruby/browser/examples.rst
  14. BIN ruby/browser/examples/calculator-testing.zip
  15. BIN ruby/browser/examples/dlrconsole.zip
  16. BIN ruby/browser/examples/dlrconsole/app.xap
  17. +40 −0 ruby/browser/examples/dlrconsole/index.html
  18. +55 −0 ruby/browser/examples/helloworld/index.html
  19. +9 −0 ruby/browser/examples/index.html
  20. BIN ruby/browser/examples/mandelbrot.zip
  21. BIN ruby/browser/examples/mandelbrot/bin.zip
  22. +19 −0 ruby/browser/examples/mandelbrot/build.bat
  23. +34 −0 ruby/browser/examples/mandelbrot/index.html
  24. +181 −0 ruby/browser/examples/mandelbrot/mandelbrot.py
  25. +58 −0 ruby/browser/examples/mandelbrot/mandelbrot.xaml
  26. +229 −0 ruby/browser/examples/mandelbrot/mandelbrotbase.cs
  27. BIN ruby/browser/examples/mushroom.zip
  28. +48 −0 ruby/browser/examples/mushroom/index.html
  29. +156 −0 ruby/browser/examples/mushroom/mushroom.xaml
  30. +22 −0 ruby/browser/examples/mushroom/style.css
  31. BIN ruby/browser/examples/photoviewer.zip
  32. +60 −0 ruby/browser/examples/photoviewer/app.rb
  33. BIN ruby/browser/examples/photoviewer/assets/loading.gif
  34. +76 −0 ruby/browser/examples/photoviewer/assets/screen.css
  35. +16 −0 ruby/browser/examples/photoviewer/images.erb
  36. +50 −0 ruby/browser/examples/photoviewer/index.html
  37. BIN ruby/browser/examples/photoviewer/lib.zip
  38. BIN ruby/browser/examples/photoviewer/lib/System.Json.dll
  39. +799 −0 ruby/browser/examples/photoviewer/lib/erb.rb
  40. +25 −0 ruby/browser/examples/photoviewer/lib/system-json.rb
  41. +79 −0 ruby/browser/examples/photoviewer/lightbox/css/lightbox.css
  42. BIN ruby/browser/examples/photoviewer/lightbox/images/blank.gif
  43. BIN ruby/browser/examples/photoviewer/lightbox/images/close.gif
  44. BIN ruby/browser/examples/photoviewer/lightbox/images/closelabel.gif
  45. BIN ruby/browser/examples/photoviewer/lightbox/images/loading.gif
  46. BIN ruby/browser/examples/photoviewer/lightbox/images/next.gif
  47. BIN ruby/browser/examples/photoviewer/lightbox/images/nextlabel.gif
  48. BIN ruby/browser/examples/photoviewer/lightbox/images/prev.gif
  49. BIN ruby/browser/examples/photoviewer/lightbox/images/prevlabel.gif
  50. +903 −0 ruby/browser/examples/photoviewer/lightbox/js/effects.js
  51. +817 −0 ruby/browser/examples/photoviewer/lightbox/js/lightbox.js
  52. +1,785 −0 ruby/browser/examples/photoviewer/lightbox/js/prototype.js
  53. +45 −0 ruby/browser/examples/photoviewer/lightbox/js/scriptaculous.js
  54. +5 −0 ruby/browser/examples/photoviewer/pages.erb
  55. +71 −0 ruby/browser/examples/photoviewer/view.rb
  56. +32 −0 ruby/browser/examples/repl.rb
  57. BIN ruby/browser/examples/webcam.zip
  58. +77 −0 ruby/browser/examples/webcam/app.xaml
  59. +36 −0 ruby/browser/examples/webcam/index.html
  60. +81 −0 ruby/browser/examples/webcam/webcam-mic.xaml
  61. +72 −0 ruby/browser/examples/webcam/webcam_mic.py
  62. BIN ruby/browser/gestalt-20091120.zip
  63. BIN ruby/browser/gestalt-20100305.zip
  64. +21 −0 ruby/browser/getting-started/01_ruby.html
  65. +20 −0 ruby/browser/getting-started/02_python.html
  66. +43 −0 ruby/browser/getting-started/03_xaml.html
  67. +93 −0 ruby/browser/getting-started/04_animation.html
  68. +189 −0 ruby/browser/getting-started/05_final.html
  69. +9 −0 ruby/browser/gettingstarted/index.html
  70. +7 −7 ruby/browser/index.rst
  71. BIN ruby/browser/sl-back-to-just-text.pdf
  72. +117 −60 ruby/browser/spec.v2.rst
  73. +14 −0 ruby/clientaccesspolicy.xml
  74. +9 −66 ruby/documentation/index.rst
  75. +50 −30 ruby/download/index.rst
  76. +8 −10 ruby/index.rst
  77. +0 −130 ruby/old.html
  78. +13 −26 ruby/support/index.rst
  79. +32 −0 ruby/tools/download/index.html
  80. +7 −4 ruby/tools/index.rst
  81. +1 −2 ruby/tools/nav.py
  82. +15 −5 ruby/try/index.html
  83. +1 −1 ruby/tutorial/index.html
  84. +5 −7 templates/home.html
View
@@ -187,13 +187,21 @@
border: 2px solid #555;
}
+#ironpython.home.page #get #tutorial p {
+ top: 0;
+}
+
+#ironpython.home.page #get #tutorial {
+ background: none;
+ top: 0;
+}
#ironpython.home.page #get #tutorial #code-snippet code {
background: none;
height: 279px;
padding: 0;
- top: -173px;
+ top: -190px;
width: 256px;
z-index: 10;
}
View
@@ -234,6 +234,7 @@ a.download_link:hover {
.home.page #get ul {
width: 780px;
margin: 0 auto;
+ height: 200px;
}
.page #get ul li {
list-style: none;
@@ -319,26 +320,28 @@ a.download_link:hover {
/* get tutorial */
.home.page #get #tutorial {
+ background-image: url("../images/code-snippet-bg.png");
float: left;
- width: 220px;
+ height: 270px;
list-style: none;
margin-left: 10px;
+ position: relative;
+ top: -190px;
+ width: 220px;
}
.home.page #get #tutorial #code-snippet code {
- width: 200px;
- height: 250px;
- background-image: url(../images/code-snippet-bg.png);
- background-color: #484848;
- background-position: 0 0;
+ background-image : url("../images/code-snippet-bg.png");
+ background-position: right center;
background-repeat: no-repeat;
- padding: 10px;
- position: absolute;
- top: -190px;
- font-family: consolas, "courier new", monospace;
+ font-family: consolas,"courier new",monospace;
font-size: 13px;
- overflow: hidden;
+ height: 250px;
+ letter-spacing: 0;
line-height: 110%;
- letter-spacing: 0px;
+ overflow: hidden;
+ padding: 10px;
+ position: absolute;
+ width: 250px;
}
.home.page #get #tutorial #code-snippet code .constant {
color: #ff0;
@@ -353,11 +356,16 @@ a.download_link:hover {
color: #0af;
}
.home.page #get #tutorial #code-snippet code .comment {
- color: #f0f;
+ color: #999;
}
.home.page #get #tutorial p {
- margin: 105px 5px 5px;
+ font-size: 16px;
+ margin: 105px 0 5px;
+ position: relative;
+ text-align: right;
+ top: 190px;
+ width: 260px;
}
.home.page #get #tutorial a#tutorial-image,
View
@@ -47,10 +47,10 @@
'language': 'Ruby',
'language_website': 'http://ruby-lang.org',
'stable_version': '1.0',
- 'stable_release_url': 'http://ironruby.codeplex.com/',
+ 'stable_release_url': 'http://ironruby.codeplex.com/releases/view/25901',
'stable_release_date': '1.0 released on 2010-04-12',
- 'stable_release_notes': 'http://rubyforge.org/projects/ironruby',
- 'stable_release_source': 'http://github.com/ironruby/ironruby/tags/v1.0/zipball',
+ 'stable_release_notes': 'http://rubyforge.org/frs/shownotes.php?group_id=4359&release_id=43292',
+ 'stable_release_source': 'http://github.com/IronLanguages/main/zipball/v1.0-rtm',
'code_snippet_html': """<span class="comment"># namespaces are modules</span>
<span class="keyword">include</span> <span class="constant">System</span>::<span class="constant">Collections</span>::<span class="constant">Generic</span>
Binary file not shown.
Binary file not shown.
View
@@ -94,7 +94,6 @@
<Content Include="python\try\index.html" />
<Content Include="python\tutorial\index.html" />
<Content Include="ruby\browser\new-index.html" />
- <Content Include="ruby\old.html" />
<Content Include="ruby\support\articles.html" />
<Content Include="ruby\try\index.html" />
<Content Include="ruby\tutorial\index.html" />
View
@@ -3,6 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "iron-websites", "iron-websites.csproj", "{8125A0FD-84E7-42C9-9629-EBC3824B1407}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{86A95B0D-207C-44FB-94D2-62F7F075B7CF}"
+ ProjectSection(SolutionItems) = preProject
+ .gitignore = .gitignore
+ clean.bat = clean.bat
+ clean.py = clean.py
+ deploy.rb = deploy.rb
+ generate.bat = generate.bat
+ generate.py = generate.py
+ NEWRELEASE.rst = NEWRELEASE.rst
+ README.rst = README.rst
+ TODO.txt = TODO.txt
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -1,7 +1,7 @@
--------
Examples
--------
-
+- `Silverlight.net/dlr examples <http://www.silverlight.net/dlr#example_applications>`_
- `PyCon 2010 demos <http://github.com/jschementi/pycon2010/>`_
- `Gestalt Samples <http://www.visitmix.com/labs/gestalt/samples/>`_
- `Gestalt Widget Pack <http://www.visitmix.com/labs/gestalt/widgets/>`_
View
@@ -1,20 +1,20 @@
====================================
Write browser applications in Python
====================================
-IronPython allows you to use python code in browser applications to script the
-HTML page and vector-graphics; combining the benefits of Python and
+Iron{{language}} allows you to use {{language}} code in browser applications to script the
+HTML page and vector-graphics; combining the benefits of {{language}} and
rich-internet applications, without changing the way web-developers work.
-At a very basic level, this lets you write Python code directly in HTML
+At a very basic level, this lets you write {{language}} code directly in HTML
pages::
- <script type="text/python">
- window.Alert("Hello from Python")
+ <script type="text/{{language_lower}}">
+ window.Alert("Hello from {{language}}")
</script>
.. container::
:class: browser-nav
- `Getting started <gettingstarted.html>`_
- `Examples <examples.html>`_
- - `Spread the word <http://twitter.com/home/?status=RT+Python+and+XAML+in+web+pages+http://ironpython.net/browser+%23ironpython+%23silverlight+%23microsoft>`_
+ - `Spread the word <http://twitter.com/home/?status=RT+{{language}}+and+XAML+in+web+pages+http://iron{{language_lower}}.net/browser+%23iron{{language_lower}}+%23silverlight+%23microsoft>`_
View
@@ -10,7 +10,7 @@ IronPython maintains compatible versions with `Python 2.5`_ and `Python 2.6`_;
`IronPython 2.0.3`_ and `IronPython 2.6.1`_, respectively. If you're not sure
which version to use, use `IronPython 2.6.1`_.
-`All major IronPython releases`_
+`All major Iron{{language}} releases`_
--------------
@@ -37,7 +37,7 @@ IronPython is an `open source project`_ freely available under the `Apache Licen
`Download latest (zip)`_ | `Browse Online`_ | `Recent Check-ins`_
-`Instructions for accessing with SVN or TFS`_
+`Instructions for accessing with GIT`_
.. container:: divider
@@ -46,7 +46,7 @@ IronPython is an `open source project`_ freely available under the `Apache Licen
-------------
Prerequisites
-------------
-IronPython is a cross-platform and cross-browser programming language,
+Iron{{language}} is a cross-platform and cross-browser programming language,
so prerequisites will vary based on usage.
Here are the recommended runtimes are for each platform:
@@ -65,7 +65,7 @@ Windows desktop & server apps
.. note::
- | IronPython also runs on .NET: `3.5 SP1`_, but must be compiled from
+ | Iron{{language}} also runs on .NET: `3.5 SP1`_, but must be compiled from
| source.
Windows & Mac OS browser apps
@@ -79,12 +79,12 @@ Windows & Mac OS browser apps
`Latest Silverlight version (4.0)`_
- Silverlight enables you to use Python to script HTML pages just as
+ Silverlight enables you to use {{language}} to script HTML pages just as
you would with JavaScript, and also enables advanced vector graphics
for rich user-interfaces and video.
|
- | `Learn more about Python in the browser`_
+ | `Learn more about {{language}} in the browser`_
Mac OS & Linux desktop & server apps
@@ -127,23 +127,23 @@ Linux browser apps
.. _IronPython 2.6.1: http://ironpython.codeplex.com/releases/view/36280
.. _IronPython 2.7 Alpha 1: http://ironpython.codeplex.com/releases/view/42434
.. _Download IronPython 2.7 Alpha 1: http://ironpython.codeplex.com/releases/view/42434
-.. _All major IronPython releases: http://ironpython.codeplex.com/wikipage?title=SupportedReleaseList
-.. _open source project: http://ironpython.codeplex.com
+.. _All major Iron{{language}} releases: http://iron{{language_lower}}.codeplex.com/wikipage?title=SupportedReleaseList
+.. _open source project: http://iron{{language_lower}}.codeplex.com
.. _Apache License (Version 2): http://ironpython.codeplex.com/license
.. _Download IronPython 2.6.1 Source Code: http://ironpython.codeplex.com/releases/view/36280#DownloadId=116511
.. _Download IronPython 2.7 Alpha 1 Source Code: http://ironpython.codeplex.com/releases/view/42434#DownloadId=133181
-.. _Download latest (zip): http://ironpython.codeplex.com/SourceControl/ListDownloadableCommits.aspx#DownloadLatest
-.. _Browse Online: http://ironpython.codeplex.com/SourceControl/BrowseLatest
-.. _Recent Check-ins: http://ironpython.codeplex.com/SourceControl/ListDownloadableCommits.aspx
-.. _Instructions for accessing with SVN or TFS: http://ironpython.codeplex.com/SourceControl/ListDownloadableCommits.aspx
+.. _Download latest (zip): http://github.com/iron-languages/main
+.. _Browse Online: http://github.com/iron-languages/main
+.. _Recent Check-ins: http://github.com/iron-languages/main
+.. _Instructions for accessing with GIT: http://github.com/iron-languages/main
.. _Latest .NET version (4.0): http://bit.ly/iron-dotnet40
.. _4.0: http://bit.ly/iron-dotnet40
.. _3.5 SP1: http://bit.ly/iron-dotnet35sp1
.. _3.5: http://bit.ly/iron-dotnet35
.. _3.0: http://bit.ly/iron-dotnet3
.. _2.0 SP1: http://bit.ly/iron-dotnet20sp1
.. _Latest Silverlight version (4.0): http://go.microsoft.com/fwlink/?linkid=150228
-.. _Learn more about Python in the browser: ../browser/
+.. _Learn more about {{language}} in the browser: ../browser/
.. _Mono: http://www.mono-project.com
.. _Latest Mono version (2.6.4): http://www.go-mono.com/mono-downloads/download.html
.. _Moonlight: http://www.mono-project.com/Moonlight
View
@@ -5,21 +5,21 @@ Get help from the community
------------
Report a bug
------------
-If you encounter a bug in IronPython, or would like to ask for a feature,
-please `submit an issue <http://ironpython.codeplex.com/WorkItem/Create.aspx>`_ on the
-`IronPython CodePlex project <http://ironpython.codeplex.com>`_. Take a
-look through the `existing issues <http://ironpython.codeplex.com/WorkItem/List.aspx>`_
+If you encounter a bug in Iron{{language}}, or would like to ask for a feature,
+please `submit an issue <http://iron{{language_lower}}.codeplex.com/WorkItem/Create.aspx>`_ on the
+`Iron{{language}} CodePlex project <http://iron{{language_lower}}.codeplex.com>`_. Take a
+look through the `existing issues <http://iron{{language_lower}}.codeplex.com/WorkItem/List.aspx>`_
to see if others are having the same problems you are. When creating an issue,
keep in mind a
-`bug report should include as much information as possible <http://ironpython.codeplex.com/wikipage?title=IronPython%20Bug%20Template>`_.
+`bug report should include as much information as possible <http://iron{{language_lower}}.codeplex.com/wikipage?title=Iron{{language}}%20Bug%20Template>`_.
--------------------
Ask the mailing list
--------------------
If all else fails and you just want to talk to someone, or interested
-in tracking IronPython more closely, please
+in tracking Iron{{language}} more closely, please
`subscribe <http://lists.ironpython.com/listinfo.cgi/users-ironpython.com>`_
-to the IronPython users mailing list.
+to the Iron{{language}} users mailing list.
Please search the `archives <http://lists.ironpython.com/pipermail/users-ironpython.com>`_
to see if someone has had the same questions as you.
@@ -28,16 +28,16 @@ to see if someone has had the same questions as you.
FAQ
---
See the `FAQ <http://ironpython.codeplex.com/wikipage?title=FAQ>`_
-for common questions about IronPython, like *When will Python support be added into Visual Studio*,
+for common questions about Iron{{language}}, like *When will {{language}} support be added into Visual Studio*,
and various .NET interop and compatibility questions.
------------
Project Info
------------
-`2.6 Release Plan <http://ironpython.codeplex.com/wikipage?title=2.6%20Release%20Plan">`_
+`2.7 Release Plan <http://ironpython.codeplex.com/wikipage?title=2.6%20Release%20Plan">`_
------------------
Articles and Blogs
------------------
-`All notable articles and blog-posts about IronPython <articles.html>`_
+`All notable articles and blog-posts about Iron{{language}} <articles.html>`_
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+<title>Loading ...</title>
+<meta http-equiv="REFRESH" content="0;url=../docs.html"></HEAD>
+<BODY>
+Loading ...
+</BODY>
+</HTML>
@@ -2,6 +2,7 @@
Examples
--------
+- `Silverlight.net/dlr examples <http://www.silverlight.net/dlr#example_applications>`_
- `Gestalt Samples <http://www.visitmix.com/labs/gestalt/samples/>`_
- `Gestalt Widget Pack <http://www.visitmix.com/labs/gestalt/widgets/>`_
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" >
+<head>
+ <title>Interactive DLR Console</title>
+
+ <style type="text/css">
+ #silverlightControlHost {
+ position:absolute;
+ bottom:0;
+ left:0;
+ right:0;
+ top:0;
+ }
+ </style>
+</head>
+
+<body>
+ <div id="silverlightControlHost" onload="this.focus()">
+ <object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
+ <param name="source" value="app.xap" />
+ <param name="initParams" value="reportErrors=errorLocation" />
+ <param name="windowless" value="true" />
+ <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
+ <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
+ </a>
+ </object>
+ <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
+ </div>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+try {
+var pageTracker = _gat._getTracker("UA-16148811-1");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+
+</body>
+</html>
Oops, something went wrong.

0 comments on commit c167138

Please sign in to comment.