Subversion Repositories KB4IT

Compare Revisions

Ignore whitespace Rev 62 → Rev 63

/branches/BR-0.5/kb4it/resources/offline/templates/TPL_TOP_NAV_BAR.tpl
1,10 → 1,14
++++
<div class="topnav" id="myTopnav">
<ul>
<li class="button"><a href="index.html"><i class="fa fa-home fa-2x"></i></a></li>
<li class="button"><a href="keys.html"><i class="fa fa-cloud fa-2x"></i></a></li>
<li class="button"><a href="recents.html"><i class="fa fa-calendar fa-2x"></i></a></li>
<li class="button"><a href="kb4it_about.html"><i class="fa fa-star fa-2x"></i></a></li>
<li class="button"><a href="index.html" title="Go to Home page"><i class="fa fa-home fa-2x"></i></a></li>
<li class="button"><a href="keys.html" title="See all properties"><i class="fa fa-cloud fa-2x"></i></a></li>
<li class="button"><a href="recents.html" title="Check recents documents"><i class="fa fa-calendar fa-2x"></i></a></li>
<!--
<li class="button"><a href="#" title="Print this page" id="button-print"><i class="fa fa-print fa-2x"></i></a></li>
-->
<li class="button"><a href="kb4it_about.html" title="About KB4IT"><i class="fa fa-star fa-2x"></i></a></li>
<li class="button"><a href="kb4it_new_document.html" title="Add new document to KB4IT"><i class="fa fa-add fa-2x"></i></a></li>
</ul>
</div>
++++
/branches/BR-0.5/kb4it/resources/online/css/kb4it.css
706,8 → 706,73
#content {
margin-top: 1.25em;
padding-left: 20px;
/*
background-image: url("ruled_paper.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
height: 100%;
overflow: hidden;
*/
background-color: transparent;
}
 
/*
body {
background: -webkit-linear-gradient(top, rgb(136,199,201) 58%, rgb(202,232,235) 100%);
background: -moz-linear-gradient(top, rgb(136,199,201) 58%, rgb(202,232,235) 100%);
background: -ms-linear-gradient(top, rgb(136,199,201) 58%, rgb(202,232,235) 100%);
background: -o-linear-gradient(top, rgb(136,199,201) 58%, rgb(202,232,235) 100%);
background: linear-gradient(top, rgb(136,199,201) 58%, rgb(202,232,235) 100%);
padding: 3%;
height: 94%;
 
}
*/
 
.paper {
font: normal 12px/1.5 "Lucida Grande", arial, sans-serif;
width: 50%;
height: 80%;
margin: 0 auto;
padding: 6px 5px 4px 42px;
position: relative;
color: #444;
line-height: 20px;
border: 1px solid #d2d2d2;
background: #fff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#d9eaf3), color-stop(4%, #fff)) 0 4px;
background: -webkit-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px;
background: -moz-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px;
background: -ms-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px;
background: -o-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px;
background: linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px;
-webkit-background-size: 100% 20px;
-moz-background-size: 100% 20px;
-ms-background-size: 100% 20px;
-o-background-size: 100% 20px;
background-size: 100% 20px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.07);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.07);
box-shadow: 0 1px 2px rgba(0,0,0,0.07);
width: 816px;
height: 1056px;
}
 
.paper::before {
content: '';
position: absolute;
width: 4px;
top: 0;
left: 30px;
bottom: 0;
border: 1px solid;
border-color: transparent #efe4e4;
}
 
#content:before {
content: none;
}
1858,7 → 1923,10
}
 
.white-background {
/*
background-color: #fafafa;
*/
background-color: transparent;
}
 
.yellow {
2289,6 → 2357,7
table-layout: fixed;
border-spacing: 3px;
border-collapse: separate;
background-color: transparent;
}
 
td.mdkey {
2358,3 → 2427,39
transform: translateY(4px);
}
*/
 
.tocify-header {
font-style: italic;
}
 
.tocify-subheader {
font-style: normal;
font-size: 90%;
}
 
.tocify ul {
margin: 0;
}
 
.tocify-focus {
color: #7a2518;
background-color: rgba(0, 0, 0, 0.1);
}
 
.tocify-focus > a {
color: #7a2518;
}
 
a.metadata {
border: 2px solid transparent;
padding: 6px;
border-radius: 12px;
background-color: transparent;
}
 
a.metadata:hover {
border: 2px solid gray;
padding: 6px;
border-radius: 12px;
background-color: aliceblue;
}
/branches/BR-0.5/kb4it/resources/online/docinfo/docinfo-footer.html
1,6 → 1,12
<script src="resources/js/jquery/external/jquery/jquery.js"></script>
<script src="resources/js/jquery/jquery-ui.js"></script>
<script>
<!--
$("#button-print").on('click',function(){
$("link").attr('href', 'resources/css/print.css');
});
-->
 
$( "#accordion" ).accordion();
 
$( function() {
11,14 → 17,6
$( "#tabs" ).tabs();
} );
 
//~ $( "#button" ).button();
//~ $(document).on("click", "#topnav-button-index", function(){window.location = "index.html";});
//~ $(document).on("click", "#topnav-button-keys", function(){window.location = "keys.html";});
//~ $( "#button-icon" ).button({
//~ icon: "ui-icon-gear",
//~ showLabel: true
//~ });
 
$( "#menu" ).menu();
 
$( "#dialog-author, #dialog-revdate, #dialog-revision, #dialog-category, #dialog-scope, #dialog-status, #dialog-department, #dialog-team, #dialog-tag" ).dialog({
97,4 → 95,6
$( this ).removeClass( "ui-state-hover" );
}
);
 
</script>
 
/branches/BR-0.5/kb4it/kb4it.py
9,13 → 9,13
"""
 
import os
import sys
# ~ import sys
import glob
import argparse
import atexit
import tempfile
import shutil
import logging
# ~ import logging
import subprocess
import datetime as dt
from datetime import datetime
22,10 → 22,6
import traceback as tb
from concurrent.futures import ThreadPoolExecutor as Executor
 
#~ from rdflib import RDF
#~ from rdflib import URIRef
#~ from rdflib import Literal
 
from .rdfdb import *
from .constants import *
from .utils import *
44,6 → 40,7
def check_parameters(self, params):
self.log = get_logger(params.LOGLEVEL)
self.log.debug("Checking parameters")
self.log.debug("Parameters: %s" % params)
self.source_path = params.SOURCE_PATH
if self.source_path is None:
self.source_path = os.path.abspath(KB4IT_SCRIPT_DIR + '/source')
68,6 → 65,13
self.log.debug("\tTemporary directory: %s", self.tmpdir)
 
 
def set_filter(self, filter):
self.filter = filter
 
 
def get_filter(self):
return self.filter
 
def get_source_docs(self, path):
if path[:-1] != os.path.sep:
path = path + os.path.sep
107,6 → 111,7
alist = nosb(line[n][len(key)+2:-1].split(','))
for elem in alist:
self.graph.add_document_attribute(doc, key, elem)
# ~ self.log.debug("\t\t%s: %s" % (key, alist))
elif line[n].startswith(EOHMARK):
# Stop processing if EOHMARK is found
break
657,6 → 662,7
 
def main():
parser = argparse.ArgumentParser(description='KB4IT by Tomás Vírseda')
# ~ parser.add_argument('-p', '--property', dest='PROPERTY', help='Generate documentation only for a specific property/value.', required=True)
parser.add_argument('-sp', '--source-path', dest='SOURCE_PATH', help='Path for Asciidoc source files.', required=True)
parser.add_argument('-tp', '--target-path', dest='TARGET_PATH', help='Path for output files')
parser.add_argument('-v', '--verbosity', dest='LOGLEVEL', help='Increase output verbosity', action='store', default='INFO')