Permalink
Browse files

Updated website and added missing files for it

  • Loading branch information...
1 parent 5b80b6b commit 56ab4c8de141da3635037f26908001522098dce3 @cjheath cjheath committed Nov 4, 2010
View
2 .gitignore
@@ -2,7 +2,7 @@
*.iml
*.iws
*.ipr
-doc/site/*.*
+doc/site/*.html
benchmark/*.dat
benchmark/*.log
*~
View
15 Rakefile
@@ -26,3 +26,18 @@ end
task :version do
puts RUBY_VERSION
end
+
+desc 'Generate website files'
+task :website_generate do
+ `cd doc; ruby ./site.rb`
+end
+
+desc 'Upload website files'
+task :website_upload do
+ rubyforge_config_file = "#{ENV['HOME']}/.rubyforge/user-config.yml"
+ rubyforge_config = YAML.load_file(rubyforge_config_file)
+ `rsync -aCv doc/site/ #{rubyforge_config['username']}@rubyforge.org:/var/www/gforge-projects/treetop/`
+end
+
+desc 'Generate and upload website files'
+task :website => [:website_generate, :website_upload]
View
1 doc/contributing_and_planned_features.markdown
@@ -7,7 +7,6 @@ Visit <a href="http://github.com/nathansobo/treetop/tree/master">the Treetop rep
I like to try Rubinius's policy regarding commit rights. If you submit one patch worth integrating, I'll give you commit rights. We'll see how this goes, but I think it's a good policy.
-
##Getting Started with the Code
Treetop compiler is interesting in that it is implemented in itself. Its functionality revolves around `metagrammar.treetop`, which specifies the grammar for Treetop grammars. I took a hybrid approach with regard to definition of methods on syntax nodes in the metagrammar. Methods that are more syntactic in nature, like those that provide access to elements of the syntax tree, are often defined inline, directly in the grammar. More semantic methods are defined in custom node classes.
View
BIN doc/site/images/bottom_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/site/images/middle_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/site/images/paren_language_output.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/site/images/pivotal.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/site/images/top_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
5 doc/site/robots.txt
@@ -0,0 +1,5 @@
+User-agent: *
+Disallow: /softwaremap/ # This is an infinite virtual URL space
+Disallow: /statcvs/ # This is an infinite virtual URL space
+Disallow: /usage/ # This is an infinite virtual URL space
+Disallow: /wiki/ # This is an infinite virtual URL space
View
129 doc/site/screen.css
@@ -0,0 +1,129 @@
+body {
+margin: 0;
+padding: 0;
+background: #666666;
+font-family: "Lucida Grande", Geneva, Arial, Verdana, sans-serif;
+color: #333333;
+}
+
+div {
+margin: 0;
+background-position: center;
+background-repeat: none;
+}
+
+h1 {
+ font-size: 125%;
+ margin-top: 1.5em;
+ margin-bottom: .5em;
+}
+
+h2 {
+ font-size: 115%;
+ margin-top: 3em;
+ margin-bottom: .5em;
+}
+
+h3 {
+ font-size: 105%;
+ margin-top: 1.5em;
+ margin-bottom: .5em;
+}
+
+a {
+ color: #ff8429;
+}
+
+
+div#top {
+ background-image: url( "images/top_background.png" );
+ height: 200px;
+ width: 100%;
+}
+
+div#middle {
+ padding-top: 10px;
+ background-image: url( "images/middle_background.png" );
+ background-repeat: repeat-y;
+}
+
+div#bottom {
+ background-image: url( "images/bottom_background.png" );
+ height: 13px;
+ margin-bottom: 30px;
+}
+
+div#main_navigation {
+ width: 300px;
+ margin: 0px auto 0 auto;
+ padding-top: 43px;
+ padding-right: 10px;
+ position: relative;
+ right: 500px;
+ text-align: right;
+ line-height: 130%;
+ font-size: 90%;
+}
+
+div#main_navigation ul {
+ list-style-type: none;
+ padding: 0;
+}
+
+div#main_navigation a, div#main_navigation a:visited {
+ color: white;
+ text-decoration: none;
+}
+
+div#main_navigation a:hover {
+ text-decoration: underline;
+}
+
+div#secondary_navigation {
+ position: relative;
+ font-size: 90%;
+ margin: 0 auto 0 auto;
+ padding: 0px;
+ text-align: center;
+ position: relative;
+ top: -10px;
+}
+
+div#secondary_navigation ul {
+ list-style-type: none;
+ padding: 0;
+}
+
+div#secondary_navigation li {
+ display: inline;
+ margin-left: 10px;
+ margin-right: 10px;
+}
+
+div#content {
@presidentbeef
presidentbeef Nov 5, 2010

I believe this should be div#main_content

@cjheath
cjheath Nov 5, 2010

Ahh cool, thanks. The Erector code was changed by someone who didn't have the CSS, and I just did a quick visual check and didn't spot a problem.

+ width: 545px;
+ margin: 0 auto 0 auto;
+ padding: 0 60px 25px 60px;
+}
+
+pre {
+ background: #333333;
+ color: white;
+ padding: 15px;
+ border: 1px solid #666666;
+}
+
+p {
+ line-height: 150%;
+}
+
+p.intro_text {
+ color: #C45900;
+ font-size: 115%;
+}
+
+img#pivotal_logo {
+ border: none;
+ margin-left: auto;
+ margin-right: auto;
+}

0 comments on commit 56ab4c8

Please sign in to comment.