Skip to content

Commit cb26885

Browse files
committed
Create sketch for type.html page
1 parent 6b0849c commit cb26885

File tree

3 files changed

+123
-1
lines changed

3 files changed

+123
-1
lines changed

sketch/app.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
get '(*dir)/' => sub {
1515
my $self = shift;
1616
my $dir = $self->param('dir');
17-
return $self->redirect_to("/$dir/index.html");
17+
return $self->redirect_to("/$dir.html");
1818
};
1919

2020
get '/' => sub {

sketch/html/css/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ img {
2828
max-width: 100%;
2929
}
3030

31+
tr:nth-child(odd) {
32+
background-color: #F5EF7B;
33+
}
34+
tr:nth-child(even) {
35+
background-color: none;
36+
}
37+
38+
td {
39+
padding: 0.4em;
40+
}
41+
3142
.pretty-box {
3243
border: 0.2em solid;
3344
background-style: solid;

sketch/html/type.html

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Index</title>
5+
<meta charset="UTF-8" />
6+
<style>
7+
/* code gets the browser-default font
8+
* kbd gets a slightly less common monospace font
9+
* samp gets the hard pixelly fonts
10+
*/
11+
kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace }
12+
samp { font-family: "Terminus", "Courier", "Lucida Console", monospace }
13+
/* WHATWG HTML frowns on the use of <u> because it looks like a link,
14+
* so we make it not look like one.
15+
*/
16+
u { text-decoration: none }
17+
.nested {
18+
margin-left: 3em;
19+
}
20+
// footnote things:
21+
aside, u { opacity: 0.7 }
22+
a[id^="fn-"]:target { background: #ff0 }
23+
</style>
24+
<link rel="stylesheet" href="http://perlcabal.org/syn/perl.css">
25+
26+
<link rel="icon" href="/favicon.ico" type="favicon.ico" />
27+
<link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" title="default" />
28+
<link type="text/css" href="/css/custom-theme/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
29+
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
30+
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
31+
<script type="text/javascript" src="/js/search.js"></script>
32+
33+
</head>
34+
<body class="pod" id="___top">
35+
<div id="header" class="pretty-box green">
36+
<a href="/">
37+
<img src="/images/camelia-small.png" alt="Camelia" id="logo"
38+
>&nbsp;Perl 6 Documentation</a>
39+
<div id="search" class="ui-widget">
40+
<div class="green"><input value='Search' id="query" title="Enter Perl 6 document to search for"></div>
41+
</div>
42+
<div class="menu">
43+
<div class="menu-items dark-green">
44+
<a class="menu-item" href="/language">Language</a>
45+
<a class="menu-item" href="/type">Types</a>
46+
<a class="menu-item" href="/routine">Routines</a>
47+
<a class="menu-item" href="/module">Modules</a>
48+
<a id="formalities" class="menu-item" href="/formalities">Formalities</a>
49+
</div>
50+
</div>
51+
</div>
52+
<div id="content" class="pretty-box yellow">
53+
<p>
54+
This is a list of <b>all</b> built-in types that are part of the Perl 6 language.
55+
Use the above menu to narrow it down topically.
56+
</p>
57+
<table>
58+
<tr>
59+
<td>class</td>
60+
<td><a href="/type/AST"><b>AST</b></a></td>
61+
<td>a partially processed representation of a program</td>
62+
</tr>
63+
<tr>
64+
<td>class</td>
65+
<td><a href="/type/Any"><b>Any</b></a></td>
66+
<td>the default base class for new classes, and as the base class for most built-in classes</td>
67+
</tr>
68+
<tr>
69+
<td>class</td>
70+
<td><a href="/type/Array"><b>Array</b></a></td>
71+
<td>a <a href="/type/List">List</a> which forces all its elements to be scalar containers</td>
72+
</tr>
73+
<tr>
74+
<td>role</td>
75+
<td><a href="/type/Associative"><b>Associative</b></a></td>
76+
<td>for types that support name-based lookup through <a href="routines/postcircumfix_{_}"><code>postcircumfix:&lt;{ }&gt;</code></a></td>
77+
</tr>
78+
<tr>
79+
<td>class</td>
80+
<td><a href="/type/Attribute"><b>Attribute</b></a></td>
81+
<td>...</td>
82+
</tr>
83+
<tr>
84+
<td>class</td>
85+
<td><a href="/type/Backtrace"><b>Backtrace</b></a></td>
86+
<td>...</td>
87+
</tr>
88+
<tr>
89+
<td>class</td>
90+
<td><a href="/type/Backtrace::Frame"><b>Backtrace::Frame</b></a></td>
91+
<td>...</td>
92+
</tr>
93+
</table>
94+
...
95+
</div>
96+
<div id="footer" class="pretty-box yellow">
97+
98+
<p>
99+
Generated on 2014-06-12T18:19:53-0400 from the sources at
100+
<a href="https://github.com/perl6/doc">perl6/doc on github</a>.
101+
This is a work in progress to document Perl 6, and known to be
102+
incomplete. Your contribution is appreciated.
103+
</p>
104+
<p>
105+
The Camelia image is copyright 2009 by Larry Wall.
106+
</p>
107+
108+
</div>
109+
110+
</body>
111+
</html>

0 commit comments

Comments
 (0)