-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from davidzchen/site
Convert site to Jekyll.
- Loading branch information
Showing
93 changed files
with
112,185 additions
and
9,308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
load("/tools/build_defs/jsonnet_dev/jsonnet_docs", "jsonnet_docs_srcs_zip") | ||
|
||
jsonnet_docs_srcs_zip( | ||
name = "jsonnet_docs_srcs", | ||
srcs = [ | ||
"bench.02.jsonnet", | ||
"bench.03.jsonnet", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
filegroup( | ||
name = "jekyll_files", | ||
srcs = glob( | ||
["**/*"], | ||
exclude = [ | ||
"BUILD", | ||
"production/**/*", # Exclude Jekyll output. | ||
"*.swp", # Exclude vim temp files. | ||
], | ||
), | ||
) | ||
|
||
genrule( | ||
name = "jekyll_files_zip", | ||
srcs = [":jekyll_files"], | ||
outs = ["jekyll_files.zip"], | ||
cmd = "zip -qR $@ $(locations :jekyll_files)" | ||
) | ||
|
||
genrule( | ||
name = "jekyll_tree", | ||
srcs = [ | ||
":jekyll_files_zip", | ||
"//examples:jsonnet_docs_srcs", | ||
"//benchmarks:jsonnet_docs_srcs", | ||
], | ||
outs = ["jekyll_tree.zip"], | ||
cmd = ("$(location //tools/build_defs/jsonnet_dev:build_jekyll_tree)" + | ||
" $(location :jekyll_files_zip)" + | ||
" $(location //examples:jsonnet_docs_srcs)" + | ||
" $(location //benchmarks:jsonnet_docs_srcs)" + | ||
" $(location jekyll_tree.zip)"), | ||
tools = ["//tools/build_defs/jsonnet_dev:build_jekyll_tree"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
jsonnet.org |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
destination: production | ||
markdown: redcarpet | ||
paginate: 10 | ||
highlighter: pygments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script> | ||
var current_url = window.location.href; | ||
var bad_url = new RegExp("^https?://google.github.io/jsonnet/"); | ||
if (bad_url.test(current_url)) { | ||
window.location.replace(current_url.replace(bad_url, "http://jsonnet.org/")); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<ol id="menubar"> | ||
|
||
<li id="menu_userdocs"> | ||
<a href="/docs/index.html" onmouseover="menu_open(this)" onmouseout="menu_leave()">User docs</a> | ||
<div onmouseover="menu_open(this)" onmouseout="menu_leave()"> | ||
<a href="/docs/tutorial.html">Tutorial</a> | ||
<a href="/docs/demo.html">Demo</a> | ||
<a href="/docs/stdlib.html">Standard Library</a> | ||
</div> | ||
</li> | ||
|
||
<li id="menu_casestudies"> | ||
<a href="/case_studies/index.html" onmouseover="menu_open(this)" onmouseout="menu_leave()">Case Studies</a> | ||
<div onmouseover="menu_open(this)" onmouseout="menu_leave()"> | ||
<a href="/case_studies/casestudy_fractal.1.html">Fractal</a> | ||
</div> | ||
</li> | ||
|
||
<li id="menu_language"> | ||
<a href="/language/index.html" onmouseover="menu_open(this)" onmouseout="menu_leave()">Language</a> | ||
<div onmouseover="menu_open(this)" onmouseout="menu_leave()"> | ||
<a href="/language/design.html">Design</a> | ||
<a href="/language/comparisons.html">Comparisons</a> | ||
<a href="/language/spec.html">Specification</a> | ||
</div> | ||
</li> | ||
|
||
<li id="menu_implementation"> | ||
<a href="/implementation/index.html" onmouseover="menu_open(this)" onmouseout="menu_leave()">Implementation</a> | ||
<div onmouseover="menu_open(this)" onmouseout="menu_leave()"> | ||
<a href="/implementation/commandline.html">Cmdline Tool</a> | ||
<a href="/implementation/bindings.html">Libraries</a> | ||
<a href="/implementation/cpp.html">C++ Internals</a> | ||
<a href="/implementation/javascript.html">Javascript</a> | ||
<a href="/implementation/tests.html">Tests</a> | ||
</div> | ||
</li> | ||
|
||
<li id="menu_contributing"> | ||
<a href="/contributing.html" onmouseover="menu_open(this)" onmouseout="menu_leave()">Contributing</a> | ||
</li> | ||
|
||
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
<head> | ||
{% include domain-redirect.html %} | ||
<script> | ||
window.location.replace("{{ page.redirect }}"); | ||
</script> | ||
</head> | ||
</html> |
Oops, something went wrong.