initial commit
This commit is contained in:
parent
5a3299bd30
commit
eb437dd092
15
refpolicy/doc/templates/header.html
vendored
Normal file
15
refpolicy/doc/templates/header.html
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Security Enhanced Linux Reference Policy
|
||||
</title>
|
||||
<style type="text/css" media="all">@import "style.css";</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="Header">Security Enhanced Linux Reference Policy</div>
|
||||
[[menu]]
|
||||
<div id="Content">
|
||||
[[content]]
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
42
refpolicy/doc/templates/interface.html
vendored
Normal file
42
refpolicy/doc/templates/interface.html
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
<div id="interface">
|
||||
<h4>[[interface_name]]</h4>
|
||||
<p/>
|
||||
<div id="codeblock">
|
||||
[[exec i = 0]]
|
||||
[[interface_name]](
|
||||
[[for arg in interface_parameters]]
|
||||
[[if i != 0]]
|
||||
,
|
||||
[[end]]
|
||||
[[exec i = 1]]
|
||||
[[if arg['optional'] == 'true']]
|
||||
[
|
||||
[[end]]
|
||||
[[arg['name']]]
|
||||
[[if arg['optional'] == 'true']]
|
||||
]
|
||||
[[end]]
|
||||
[[end]]
|
||||
)<br>
|
||||
</div>
|
||||
<div id="description">
|
||||
<p/>
|
||||
<h5>Description</h5>
|
||||
[[interface_desc]]<br><br>
|
||||
<h5>Parameters:</h5>
|
||||
<div id="description">
|
||||
<table border="1" cellspacing="0" cellpadding="3" width="80%">
|
||||
<tr><th class="title">Parameter:</td><th class="title">Description:</td><th class="title">Optional:</td></tr>
|
||||
[[for arg in interface_parameters]]
|
||||
<tr><td>
|
||||
[[arg['name']]]
|
||||
</td><td>
|
||||
[[arg['desc']]]
|
||||
</td><td>
|
||||
[[arg['optional']]]
|
||||
</td></tr>
|
||||
[[end]]
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
12
refpolicy/doc/templates/menu.html
vendored
Normal file
12
refpolicy/doc/templates/menu.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<div id='Menu'>
|
||||
[[for layer_name, layer_mods in menulist.iteritems()]]
|
||||
<a href="[[layer_name]].html">+
|
||||
[[layer_name]]</a></br/>
|
||||
<div id='subitem'>
|
||||
[[for module, s in layer_mods.iteritems()]]
|
||||
- <a href='[[layer_name + "_" + module]].html'>
|
||||
[[module]]</a><br/>
|
||||
[[end]]
|
||||
</div>
|
||||
[[end]]
|
||||
</div>
|
6
refpolicy/doc/templates/module.html
vendored
Normal file
6
refpolicy/doc/templates/module.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<h1>Layer: [[mod_layer]]</h1><p/>
|
||||
<h2>Module: [[mod_name]]</h2><p/>
|
||||
<h3>Summary: [[mod_summary]]</h3><p/>
|
||||
<br/>
|
||||
<h3>Interfaces: </h3>
|
||||
[[interfaces]]
|
16
refpolicy/doc/templates/module_list.html
vendored
Normal file
16
refpolicy/doc/templates/module_list.html
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
[[if mod_layer]]
|
||||
<h1>Layer: [[mod_layer]]</h1><p/>
|
||||
[[end]]
|
||||
<table border="1" cellspacing="0" cellpadding="3" width="75%">
|
||||
<tr><td class="title">Module:</td><td class="title">Description:</td></tr>
|
||||
[[for layer_name, layer_mods in menulist.iteritems()]]
|
||||
[[for module, s in layer_mods.iteritems()]]
|
||||
<tr><td>
|
||||
<a href='[[layer_name + "_" + module]].html'>
|
||||
[[module]]</a></td>
|
||||
<td>[[s]]</td>
|
||||
[[end]]
|
||||
</td></tr>
|
||||
[[end]]
|
||||
</table>
|
||||
<p/><br/><br/>
|
174
refpolicy/doc/templates/style.css
vendored
Normal file
174
refpolicy/doc/templates/style.css
vendored
Normal file
@ -0,0 +1,174 @@
|
||||
body {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
font-family:verdana, arial, helvetica, sans-serif;
|
||||
color:#333;
|
||||
background-color:white;
|
||||
}
|
||||
h1 {
|
||||
margin:0px 0px 15px 0px;
|
||||
padding:0px;
|
||||
font-size:28px;
|
||||
line-height:28px;
|
||||
font-weight:900;
|
||||
color:#ccc;
|
||||
}
|
||||
h2 {
|
||||
font-size:100%;
|
||||
}
|
||||
h3 {
|
||||
font-size:75%;
|
||||
}
|
||||
h4 {
|
||||
font-size:67%;
|
||||
}
|
||||
li {
|
||||
font:11px/20px verdana, arial, helvetica, sans-serif;
|
||||
margin:0px 0px 0px 0px;
|
||||
padding:0px;
|
||||
}
|
||||
p {
|
||||
/* normal */
|
||||
font:11px/20px verdana, arial, helvetica, sans-serif;
|
||||
margin:0px 0px 16px 0px;
|
||||
padding:0px;
|
||||
}
|
||||
|
||||
tt {
|
||||
/* inline code */
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
table {
|
||||
background-color:#eee;
|
||||
/*background-color: white;*/
|
||||
border-style:solid;
|
||||
border-color:black;
|
||||
border-width:0px 1px 1px 0px;
|
||||
color: black;
|
||||
text-align: left;
|
||||
font:11px/20px verdana, arial, helvetica, sans-serif;
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: #eaeaff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.header {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#Content>p {margin:0px;}
|
||||
#Content>p+p {text-indent:30px;}
|
||||
a {
|
||||
color:#09c;
|
||||
font-size:11px;
|
||||
text-decoration:none;
|
||||
font-weight:600;
|
||||
font-family:verdana, arial, helvetica, sans-serif;
|
||||
}
|
||||
a:link {color:#09c;}
|
||||
a:visited {color:#07a;}
|
||||
a:hover {background-color:#eee;}
|
||||
|
||||
#Codeblock {
|
||||
margin:5px 50px 5px 50px;
|
||||
padding:5px 0px 5px 15px;
|
||||
border-style:solid;
|
||||
border-color:lightgrey;
|
||||
border-width:1px 1px 1px 1px;
|
||||
background-color:#f5f5ff;
|
||||
font-size:11px;
|
||||
font-weight:600;
|
||||
text-decoration:none;
|
||||
font-family:courier;
|
||||
}
|
||||
#Interface {
|
||||
margin:5px 0px 25px 5px;
|
||||
padding:5px 5px 5px 5px;
|
||||
border-style:solid;
|
||||
border-color:black;
|
||||
border-width:1px 1px 1px 1px;
|
||||
background-color:#fafafa;
|
||||
font-size:14px;
|
||||
font-weight:400;
|
||||
text-decoration:none;
|
||||
font-family:verdana, arial, helvetica, sans-serif;
|
||||
}
|
||||
#Description {
|
||||
margin:0px 0px 0px 5px;
|
||||
padding:0px 0px 0px 5px;
|
||||
text-decoration:none;
|
||||
font-family:verdana, arial, helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
font-weight:400;
|
||||
}
|
||||
pre {
|
||||
font-size:11px;
|
||||
font-weight:600;
|
||||
text-decoration:none;
|
||||
font-family:courier;
|
||||
}
|
||||
pre.codeblock {
|
||||
/* code block (bordered, slight gray background) */
|
||||
border-style:solid;
|
||||
border-color:black;
|
||||
border-width:1px 1px 1px 1px;
|
||||
background-color:#f8f8f8;
|
||||
margin-left: 10%;
|
||||
margin-right: 10%;
|
||||
}
|
||||
dl {
|
||||
/* definition text block */
|
||||
font:11px/20px verdana, arial, helvetica, sans-serif;
|
||||
margin:0px 0px 16px 0px;
|
||||
padding:0px;
|
||||
}
|
||||
dt {
|
||||
/* definition term */
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#Header {
|
||||
margin:50px 0px 10px 0px;
|
||||
padding:17px 0px 0px 20px;
|
||||
/* For IE5/Win's benefit height = [correct height] + [top padding] + [top and bottom border widths] */
|
||||
height:33px; /* 14px + 17px + 2px = 33px */
|
||||
border-style:solid;
|
||||
border-color:black;
|
||||
border-width:1px 0px; /* top and bottom borders: 1px; left and right borders: 0px */
|
||||
line-height:11px;
|
||||
font-size:110%;
|
||||
background-color:#eee;
|
||||
voice-family: "\"}\"";
|
||||
voice-family:inherit;
|
||||
height:14px; /* the correct height */
|
||||
}
|
||||
body>#Header {height:14px;}
|
||||
#Content {
|
||||
margin:0px 50px 50px 200px;
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
#Menu {
|
||||
position:absolute;
|
||||
top:100px;
|
||||
left:20px;
|
||||
width:162px;
|
||||
padding:10px;
|
||||
background-color:#eee;
|
||||
border:1px solid #aaa;
|
||||
line-height:17px;
|
||||
text-align:left;
|
||||
voice-family: "\"}\"";
|
||||
voice-family:inherit;
|
||||
width:160px;
|
||||
}
|
||||
#Menu subitem {
|
||||
font-size: 5px;
|
||||
}
|
||||
|
||||
body>#Menu {width:160px;}
|
Loading…
Reference in New Issue
Block a user