Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 1de0438

Browse files
New initial commit
0 parents  commit 1de0438

File tree

1,501 files changed

+151353
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,501 files changed

+151353
-0
lines changed

.awestruct_ignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Gemfile
2+
Gemfile.lock
3+
Rakefile
4+
.rvmrc

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#Ignored files
2+
3+
#OS
4+
.DS_Store
5+
6+
#Awestruct
7+
/.sass-cache
8+
/_site
9+
/_tmp
10+
/.awestruct
11+
/Gemfile.lock
12+
/.bin
13+
/.bundle
14+
15+
#Editor
16+
*.tmproj
17+
18+
#IDE
19+
/.idea
20+
/*.iml
21+
22+
#RVM
23+
/.rvmrc

.htaccess

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Options +FollowSymlinks
2+
RewriteEngine on
3+
4+
IndexIgnore *
5+
DirectoryIndex index.html
6+
ErrorDocument 404 /404.html
7+
8+
RewriteCond %{HTTP_HOST} ^ceylon-lang.org$ [OR]
9+
RewriteCond %{HTTP_HOST} ^ceylon.beanvalidation.org$ [OR]
10+
RewriteCond %{HTTP_HOST} ^www.ceylon-lang.org$ [OR]
11+
RewriteCond %{HTTP_HOST} ^staging.ceylon-lang.org$
12+
13+
# Redirect old /documentation links to /documentation/current
14+
RewriteRule ^documentation$ /documentation/current$1
15+
RewriteRule ^documentation/$ /documentation/current$1
16+
RewriteRule ^documentation/index.html$ /documentation/current$1
17+
RewriteRule ^documentation/faq(.*)$ /documentation/current/faq$1
18+
RewriteRule ^documentation/ide(.*)$ /documentation/current/ide$1
19+
RewriteRule ^documentation/introduction(.*)$ /documentation/current/introduction$1
20+
RewriteRule ^documentation/presentation(.*)$ /documentation/current/presentation$1
21+
RewriteRule ^documentation/reference(.*)$ /documentation/current/reference$1
22+
RewriteRule ^documentation/roadmap(.*)$ /documentation/current/roadmap$1
23+
RewriteRule ^documentation/spec(.*)$ /documentation/current/spec$1
24+
RewriteRule ^documentation/tour(.*)$ /documentation/current/tour$1
25+
26+
# Redirect /documentation/current to /documentation/1.3
27+
RewriteRule ^documentation/current(.*)$ /documentation/1.3$1 [L]
28+
29+
# Redirect improper URL for stephane epardaud to correct one
30+
RewriteRule ^blog/authors/styephane-yepardaud(.*)$ /blog/authors/stephane-epardaud$1
31+
32+
# Redirect download links to our download site
33+
RewriteRule ^download/dist/1_0_Milestone1$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.1\.zip" [R=302,L]
34+
RewriteRule ^download/dist/1_0_Milestone1_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.1_0\.1_all\.deb" [R=302,L]
35+
RewriteRule ^download/dist/1_0_Milestone1_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.1\.0-0\.noarch\.rpm" [R=302,L]
36+
37+
RewriteRule ^download/dist/1_0_Milestone2$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.2\.zip" [R=302,L]
38+
RewriteRule ^download/dist/1_0_Milestone2_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.2_0\.2_all\.deb" [R=302,L]
39+
RewriteRule ^download/dist/1_0_Milestone2_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.2\.0-0\.noarch\.rpm" [R=302,L]
40+
41+
RewriteRule ^download/dist/1_0_Milestone3$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.zip" [R=302,L]
42+
RewriteRule ^download/dist/1_0_Milestone3_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3_0\.3_all\.deb" [R=302,L]
43+
RewriteRule ^download/dist/1_0_Milestone3_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.0-0\.noarch\.rpm" [R=302,L]
44+
45+
RewriteRule ^download/dist/1_0_Milestone3_1$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.1\.zip" [R=302,L]
46+
RewriteRule ^download/dist/1_0_Milestone3_1_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.1_0\.3\.1_all\.deb" [R=302,L]
47+
RewriteRule ^download/dist/1_0_Milestone3_1_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.1-0\.noarch\.rpm" [R=302,L]
48+
49+
RewriteRule ^download/dist/1_0_Milestone4$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.4\.zip" [R=302,L]
50+
RewriteRule ^download/dist/1_0_Milestone4_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.4_0\.4_all\.deb" [R=302,L]
51+
RewriteRule ^download/dist/1_0_Milestone4_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.4\.0-0\.noarch\.rpm" [R=302,L]
52+
53+
RewriteRule ^download/dist/1_0_Milestone5$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.5\.zip" [R=302,L]
54+
RewriteRule ^download/dist/1_0_Milestone5_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.5_0\.5_all\.deb" [R=302,L]
55+
RewriteRule ^download/dist/1_0_Milestone5_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.5\.0-0\.noarch\.rpm" [R=302,L]
56+
57+
RewriteRule ^download/dist/1_0_Milestone6$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.zip" [R=302,L]
58+
RewriteRule ^download/dist/1_0_Milestone6_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6_0\.6_all\.deb" [R=302,L]
59+
RewriteRule ^download/dist/1_0_Milestone6_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.0-0\.noarch\.rpm" [R=302,L]
60+
61+
RewriteRule ^download/dist/1_0_Beta$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.1\.zip" [R=302,L]
62+
RewriteRule ^download/dist/1_0_Beta_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.1_0\.6\.1_all\.deb" [R=302,L]
63+
RewriteRule ^download/dist/1_0_Beta_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.1-1\.noarch\.rpm" [R=302,L]
64+
65+
RewriteRule ^download/dist/1_0_0$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.0\.0\.zip" [R=302,L]
66+
RewriteRule ^download/dist/1_0_0_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.0\.0_1\.0\.0_all\.deb" [R=302,L]
67+
RewriteRule ^download/dist/1_0_0_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.0\.0-1\.0\.0-0\.noarch\.rpm" [R=302,L]
68+
69+
RewriteRule ^download/dist/1_1_0$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.1\.0\.zip" [R=302,L]
70+
RewriteRule ^download/dist/1_1_0_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.1\.0_1\.1\.0_all\.deb" [R=302,L]
71+
RewriteRule ^download/dist/1_1_0_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.1\.0-1\.1\.0-1\.noarch\.rpm" [R=302,L]
72+
73+
RewriteRule ^download/dist/1_2_0$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.0\.zip" [R=302,L]
74+
RewriteRule ^download/dist/1_2_0_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.0_1\.2\.0_all\.deb" [R=302,L]
75+
RewriteRule ^download/dist/1_2_0_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.0-1\.2\.0-0\.noarch\.rpm" [R=302,L]
76+
77+
RewriteRule ^download/dist/1_2_1$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.1\.zip" [R=302,L]
78+
RewriteRule ^download/dist/1_2_1_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.1_1\.2\.1_all\.deb" [R=302,L]
79+
RewriteRule ^download/dist/1_2_1_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.1-1\.2\.1-1\.noarch\.rpm" [R=302,L]
80+
81+
RewriteRule ^download/dist/1_2_2$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.2\.zip" [R=302,L]
82+
RewriteRule ^download/dist/1_2_2_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.2_1\.2\.2_all\.deb" [R=302,L]
83+
RewriteRule ^download/dist/1_2_2_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.2\.2-1\.2\.2-0\.noarch\.rpm" [R=302,L]
84+
85+
RewriteRule ^download/dist/1_3_0$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.0\.zip" [R=302,L]
86+
RewriteRule ^download/dist/1_3_0_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.0_1\.3\.0_all\.deb" [R=302,L]
87+
RewriteRule ^download/dist/1_3_0_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.0-1\.3\.0-0\.noarch\.rpm" [R=302,L]
88+
89+
RewriteRule ^download/dist/1_3_1$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.1\.zip" [R=302,L]
90+
RewriteRule ^download/dist/1_3_1_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.1_1\.3\.1-1_all\.deb" [R=302,L]
91+
RewriteRule ^download/dist/1_3_1_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.1-1\.3\.1-1\.noarch\.rpm" [R=302,L]
92+
93+
RewriteRule ^download/dist/1_3_2$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.2\.zip" [R=302,L]
94+
RewriteRule ^download/dist/1_3_2_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.2_1\.3\.2-0_all\.deb" [R=302,L]
95+
RewriteRule ^download/dist/1_3_2_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.2-1\.3\.2-0\.noarch\.rpm" [R=302,L]
96+
97+
RewriteRule ^download/dist/1_3_3$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.3\.zip" [R=302,L]
98+
RewriteRule ^download/dist/1_3_3_deb$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.3_1\.3\.3-0_all\.deb" [R=302,L]
99+
RewriteRule ^download/dist/1_3_3_rpm$ "https\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.3\.3-1\.3\.3-0\.noarch\.rpm" [R=302,L]
100+
101+
# Redirect social network links
102+
RewriteRule ^plus$ "https\:\/\/plus\.google\.com\/u\/0\/102481741611133754149" [R=302,L]
103+
RewriteRule ^\+$ "https\:\/\/plus\.google\.com\/u\/0\/102481741611133754149" [R=302,L]
104+
105+
# Redirect user forum to Google Groups
106+
RewriteRule ^community/forum$ "http://groups.google.com/group/ceylon-users" [R=302,L]

.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>ceylon-lang.org</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8

404.html.haml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: default
3+
inhibit_indexifier: true
4+
---
5+
:markdown
6+
# Oh no!
7+
8+
We can't seem to find that page.
9+
Let us know where we screwed up by
10+
[opening a ticket](https://github.com/ceylon/ceylon-lang.org/issues) and mentioning which
11+
page you came from and which link you clicked on. Otherwise, best is to hit the good old back button or start back at the [top
12+
of the site](/).

Gemfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'awestruct', '0.5.5'
4+
#gem 'awestruct', :github => 'awestruct'
5+
6+
# Fix compass dependency as 1.0 no longer has blueprint includes
7+
gem 'compass', '0.12.6'
8+
9+
gem 'rb-inotify', '~> 0.9.0', :platforms => [:ruby, :jruby]
10+
gem 'rb-fsevent', '~> 0.9', :platforms => [:ruby, :jruby]
11+
gem 'htmlentities'
12+
#gem 'rake'
13+
14+
# Enable a Markdown gem (only rdiscount seems to work w/ the site):
15+
gem 'rdiscount', '~> 2.0.7', :platforms => [:ruby]
16+
#gem 'maruku', '~> 0.6.1'
17+
#gem 'kramdown', '~> 1.0.1'
18+
#gem 'redcarpet', '~> 2.2.2', :platforms => [:ruby]
19+
20+
# Enable this gem if you want to use AsciiDoc (it's the future):
21+
# For some reason Awestruct requires Asciidoctor now, so adding it.
22+
#gem 'asciidoctor', '~> 0.1.1'
23+
24+
#gem 'listen', '~> 1.3.1'
25+
26+
# The deeplink extension comes with a couple of dependencies
27+
gem 'nokogiri', '~> 1.5.10'
28+
gem 'unicode', '~> 0.4.4'
29+
gem 'eventmachine', '~> 1.0.4'

README.md

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
---
2+
layout: code
3+
title: Building the website
4+
tab: code
5+
6+
author: Emmanuel Bernard
7+
---
8+
9+
# How to build [ceylon-lang.org](/)
10+
11+
A bit of Git, a bit a Ruby and you will get your local version of [ceylon-lang.org](/) served.
12+
13+
## Prerequisites
14+
15+
- Get [Git](http://git-scm.com)
16+
- Get [Ruby](https://www.ruby-lang.org/en/) > 2.1
17+
- If on Mac OS:
18+
- Get [XCode](https://developer.apple.com/xcode/) (needed for compilation of native gems)
19+
- If on Linux:
20+
- Get *libxslt-dev* - eg via `sudo apt-get install libxslt-dev` (may be called *libxslt1-dev* for some distros)
21+
22+
Install Git to your system. [GitHub's help page](http://help.github.com/) is a good starting
23+
point. [Emmanuel's blog](http://in.relation.to/Bloggers/HibernateMovesToGitGitTipsAndTricks)
24+
on Git tips and tricks is useful too.
25+
26+
## Installation
27+
28+
### Ensure Rake is installed
29+
30+
Make sure [Rake](https://github.com/jimweirich/rake) is available. It is often installed per default.
31+
32+
<!-- lang: bash -->
33+
rake --version
34+
35+
If you get "_command not found_":
36+
37+
<!-- lang: bash -->
38+
gem install rake
39+
40+
### Ensure Bundler is installed
41+
42+
Make sure [Bundler](http://bundler.io/) is available. It manages your Ruby gems locally to the project
43+
and prevents version conflicts between different Ruby projects. To quote from the website:
44+
45+
> Bundler provides a consistent environment for Ruby projects by tracking and installing the exact
46+
> gems and versions that are needed.
47+
48+
<!-- lang: bash -->
49+
bundle -v
50+
51+
If you get "_command not found_":
52+
53+
<!-- lang: bash -->
54+
gem install bundler
55+
56+
### Get the source
57+
58+
<!-- lang: bash -->
59+
git clone [email protected]:ceylon/ceylon-lang.org.git
60+
cd ceylon-lang.org
61+
62+
### Setup awestruct
63+
64+
<!-- lang: bash -->
65+
rake setup
66+
rake check
67+
68+
Note that on existing installs, you might see the following error
69+
70+
/Users/alice/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'bundler' (>= 0) among 8 total gem(s) (Gem::LoadError)
71+
from /Users/alice/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
72+
from /Users/alice/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
73+
from /Users/alice/.rvm/gems/ruby-2.1.2/bin/bundle:22:in `<main>'
74+
from /Users/alice/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
75+
from /Users/alice/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
76+
rake aborted!
77+
78+
It is due to a partial or corrupt installation of the bundles that you need to clear.
79+
Do either of these operations:
80+
81+
<!-- lang: bash -->
82+
rake clean[all]
83+
# if that fails, do
84+
rm -fR .bundle _tmp _bin
85+
86+
Then run the `rake setup` command again.
87+
88+
## Serve the site locally
89+
90+
<!-- lang: bash -->
91+
rake preview
92+
93+
Point your browser to http://localhost:4242
94+
95+
Any change will be automatically picked up except for `_partials` files, `_base.css`
96+
and sometimes new blog entries.
97+
98+
### Which other tasks exist in the Rake build file?
99+
100+
<!-- lang:bash -->
101+
rake --tasks
102+
103+
This will list the available tasks with a short description
104+
105+
### How to also include the spec and `ceylon doc` pages
106+
107+
**Is that obsolete?**
108+
109+
Use `./build-site.sh`. This will clone or refresh the spec, language and compiler repos
110+
into `_tmp` and build the appropriate artifacts before pushing them to the site.
111+
112+
If you have already run `./build-site.sh` and don't wish to rebuild the spec and ceylondoc,
113+
use
114+
115+
<!-- lang: bash -->
116+
./build-site.sh --light
117+
118+
to simply copy them to the website structure. This is much faster.
119+
120+
### If your changes are not visible...
121+
122+
Panic! Then completely regenerate the site via:
123+
124+
<!-- lang: bash -->
125+
rake clean preview
126+
127+
### If serving the site is slow...
128+
129+
On Linux, serving the file may be atrociously slow
130+
(something to do with WEBRick).
131+
132+
Use the following alternative:
133+
134+
* Go in your `~/ceylon-lang.org` directory.
135+
* Run `rake gen`
136+
* In parallel, go to the `~/ceylon-lang.org/_site` directory
137+
* Run `python -m SimpleHTTPServer 4242`
138+
139+
You should be back to millisecond serving :)
140+
141+
# License
142+
143+
The content of this repository is released under
144+
[Creative Commons Attribution Share-Alike 3.0 Unported
145+
(CC BY-SA 3.0)](http://creativecommons.org/licenses/by-sa/3.0/).
146+
Sample code available on this website is released under
147+
[Apache Software License 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
148+
149+
By submitting a "pull request" or otherwise contributing to this repository, you
150+
agree to license your contribution under the respective licenses mentioned above.
151+
152+
## Acknowledgements
153+
154+
This website uses:
155+
156+
- Icons from [Komodo Media, Rogie King][Komodo] (CC BY-SA 3.0 with link back to the creator)
157+
158+
[Komodo]: http://www.komodomedia.com

0 commit comments

Comments
 (0)