Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #43 from fracek/carousel
Browse files Browse the repository at this point in the history
Change homepage and news listing
  • Loading branch information
waywardmonkeys committed Feb 22, 2013
2 parents 2e54277 + 6784d69 commit 205d83c
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 101 deletions.
20 changes: 20 additions & 0 deletions source/_themes/opendylan/static/opendylan.org/css/opendylan.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ footer.navbar {
a.headerlink {
color: silver;
}
#code-carousel {
margin: 10px 0;
}
#code-carousel .carousel-inner {
margin: 0 70px;
width: auto;
}
#code-carousel .carousel-indicators {
margin-right: 70px;
}
#code-carousel .carousel-indicators li {
background-color: #EFEFEF;
}
#code-carousel .carousel-indicators li.active {
background-color: #D0D0D0;
}
#code-carousel pre {
height: 29em;
padding-top: 20px;
}

/* Responsive Docs
-------------------------------------------------- */
Expand Down
87 changes: 77 additions & 10 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,83 @@
<div class="row">
<div class="span8">

<div class="hero-unit">
<p><em>Dylan is an advanced, object-oriented, dynamic language which
supports rapid program development. When needed, programs can be
optimized for more efficient execution by supplying more type
information to the compiler. Nearly all entities in Dylan
(including functions, classes, and basic data types such as
integers) are first class objects. Additionally Dylan supports
multiple inheritance, polymorphism, multiple dispatch, keyword
arguments, object introspection, macros, and many other advanced
features... --Peter Hinely</em></p>
<div id="code-carousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#code-carousel" data-slide-to="0" class="active"></li>
<li data-target="#code-carousel" data-slide-to="1"></li>
<li data-target="#code-carousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
.. code-block:: dylan
define class <vehicle> (<object>)
slot owner :: <string>,
init-keyword: owner:,
init-value: "Northern Motors";
end class <vehicle>;
define class <car> (<vehicle>)
end class <car>;
define class <truck> (<vehicle>)
slot capacity,
required-init-keyword: tons:;
end class <truck>;
.. raw:: html

</div>
<div class="item">
.. code-block:: dylan
define generic tax
(v :: <vehicle>) => (tax-in-dollars :: <float>);
define method tax
(v :: <vehicle>) => (tax-in-dollars :: <float>)
100.00
end;
define method tax
(c :: <car>) => (tax-in-dollars :: <float>)
50.0;
end method;
define method tax
(t :: <truck>) => (tax-in-dollars :: <float>)
// standard vehicle tax plus $10/ton
next-method() + t.capacity * 10.0;
end method;
.. raw:: html

</div>
<div class="item">
.. code-block:: dylan
define function make-fibonacci()
let n = 0;
let m = 1;
method ()
let result = n + m;
n := m;
m := result // return value
end
end;
define constant fib = make-fibonacci();
for (i from 1 to 15)
format-out("%d ", fib())
end;
.. raw:: html

</div>
</div>
<a class="carousel-control left" href="#code-carousel" data-slide="prev">&lsaquo;</a>
<a class="carousel-control right" href="#code-carousel" data-slide="next">&rsaquo;</a>
</div>
<h2>Recent News</h2>

Expand Down
106 changes: 39 additions & 67 deletions source/news/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,73 +11,45 @@ News & Articles

.. include:: recent.rst.inc

**command-line-parser library**
*2012-10-15*

The `command-line-parser
<https://github.com/dylan-lang/command-line-parser>`_ library has been
completely rewritten.

:doc:`Read more... </news/2012/10/15/command-line-parser>`


**New strings library**
*2012-05-18*

A new library of basic string operations is now available as a
standard library.

:doc:`Read more... </news/2012/05/18/strings>`

**C3 superclass linearization**
*2012-01-25*

We implemented the C3 superclass linearization algorithm and
enabled it by default. This is more intuitive and will allow for
further performance improvements.

:doc:`Read more... </news/2012/01/25/c3>`

**Dswank - emacs and DIME**
*2011-12-12*

We developed DIME, the Dylan interaction mode for emacs, based
on SLIME. Now, you can browse the class hierarchy, get
argument lists, locate definitions, compile, view warnings and
more, all from within emacs!

:doc:`Read more... </news/2011/12/12/dswank>`


**New release: 2011.1**
*2011-12-10*

We just released Open Dylan 2011.1. This release is our first
since moving to GitHub and relicensing under a more liberal
license. It brings many bugfixes, inmproved platform support
and new features.

:doc:`Read more... </news/2011/12/10/new_release>`

**New Documentation**
*2011-11-22*

We're revitalizing our documentation and moving to a new
publishing system. We'll soon be able to provide our
documentation in PDF and ePub as well as HTML, with it
looking much better and being more maintainable than
in the past.

:doc:`Read more... </news/2011/11/22/new_documentation>`

**Welcome to the New Website!**
*2011-11-22*

As part of recharging Open Dylan development, we've re-done the
website and cleaned up a lot of the old, out-dated material here.

If you're looking for some of the old material, it can be found
over at `<http://old.opendylan.org/>`_.
:doc:`command-line-parser library </news/2012/10/15/command-line-parser>` *— 2012-10-15*
The `command-line-parser
<https://github.com/dylan-lang/command-line-parser>`_ library has been
completely rewritten.

:doc:`New strings library </news/2012/05/18/strings>` *— 2012-05-18*
A new library of basic string operations is now available as a
standard library.

:doc:`C3 superclass linearization </news/2012/01/25/c3>` *— 2012-01-25*
We implemented the C3 superclass linearization algorithm and
enabled it by default. This is more intuitive and will allow for
further performance improvements.

:doc:`Dswank - emacs and DIME </news/2011/12/12/dswank>` *— 2011-12-12*
We developed DIME, the Dylan interaction mode for emacs, based
on SLIME. Now, you can browse the class hierarchy, get
argument lists, locate definitions, compile, view warnings and
more, all from within emacs!

:doc:`New release: 2011.1 </news/2011/12/10/new_release>` *— 2011-12-10*
We just released Open Dylan 2011.1. This release is our first
since moving to GitHub and relicensing under a more liberal
license. It brings many bugfixes, inmproved platform support
and new features.

:doc:`New Documentation </news/2011/11/22/new_documentation>` *— 2011-11-22*
We're revitalizing our documentation and moving to a new
publishing system. We'll soon be able to provide our
documentation in PDF and ePub as well as HTML, with it
looking much better and being more maintainable than
in the past.

:doc:`Welcome to the New Website! </news/2011/11/22/welcome>` *— 2011-11-22*
As part of recharging Open Dylan development, we've re-done the
website and cleaned up a lot of the old, out-dated material here.

If you're looking for some of the old material, it can be found
over at `<http://old.opendylan.org/>`_.

.. raw:: html

Expand Down
36 changes: 12 additions & 24 deletions source/news/recent.rst.inc
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
**Updated Dylan Programming Guide**
*2013-01-21*

The Dylan Programming Guide has been updated to our
new documentation format and is now available in
PDF and ePub formats.

:doc:`Read more... </news/2013/01/21/dylan-programming-guide>`

**New release: 2012.1**
*2012-12-20*

We just released Open Dylan 2012.1. This release brings many
bugfixes, improved platform support and new features.

:doc:`Read more... </news/2012/12/20/new-release>`

**Improved editor support**
*2012-10-18*

Bugs in the syntax highlighting support for Textmate
and Sublime Text as well as for vim have been fixed.

:doc:`Read more... </news/2012/10/18/editor-support>`
:doc:`Updated Dylan Programming Guide </news/2013/01/21/dylan-programming-guide>` *— 2013-01-21*
The Dylan Programming Guide has been updated to our
new documentation format and is now available in
PDF and ePub formats.

:doc:`New release: 2012.1 </news/2012/12/20/new-release>` *— 2012-12-20*
We just released Open Dylan 2012.1. This release brings many
bugfixes, improved platform support and new features.

:doc:`Improved editor support </news/2012/10/18/editor-support>` *— 2012-10-18*
Bugs in the syntax highlighting support for Textmate
and Sublime Text as well as for vim have been fixed.

0 comments on commit 205d83c

Please sign in to comment.