+++ /dev/null
-cmake_minimum_required (VERSION 3.0)
-project (biaweb2 CXX)
-set (CMAKE_CXX_STANDARD 17)
-find_library (MARKDOWN markdown)
-find_library (FMT fmt)
-add_executable (biaweb biaweb.cpp)
-target_link_libraries (biaweb "${MARKDOWN}" "${FMT}")
-
--- /dev/null
+env = Environment ()
+env.Append (CXXFLAGS = '-std=c++17')
+conf = Configure (env)
+if not conf.CheckCHeader ("mkdio.h"):
+ print ("markdown header mkdio not found. Install libmarkdown2-dev or equivalent")
+ Exit (1)
+if not conf.CheckCXXHeader ("fmt/format.h"):
+ print ("libfmt header file fmt/format.h not found. Install the libfmt-dev or equivalent")
+ Exit (1)
+env = conf.Finish ()
+biaweb = env.Program (target='biaweb', source=['biaweb.cpp'],
+ LIBS=['fmt', 'markdown'], LIBPATH=['/usr/lib', '/usr/local/lib'])
+Default (biaweb)
+
#include <iostream>
#include <fstream>
+#include <getopt.h>
#include "biawebdocumenttree.hpp"
using namespace biaweb;
// An empty document tree
std::unique_ptr<DocumentTree> tree (new DocumentTree (""));
tree.get()->document_tree_builder ("Test/Reviews");
+ std::cout << VISUALIZE_TREE << std::endl;
tree.get()->visualize_tree ();
Template tpl ("templates");
tree.get()->create_tree_html (&tpl, "Test/Out");
const char* NO_SUCH_PATH_ERROR = "No such path! Specify an existing file path" ;
const char* DATE_IN_FORMAT = "%Y-%m-%d %H:%M %Z";
const char* GENERATED_IN = "Generated in (s): ";
+ const char* VISUALIZE_TREE = "Generated document tree: ";
// NAMED INDEX FOR DOCUMENT STRING BITS (LOADED FROM TEMPLATE FILE stringbits.txt)
const unsigned int HOME = 0;
body {
background-color:white;
color: black;
- font-family:Verdana, Geneva, Tahoma, sans-serif;
- font-size: 0.9em;
+ font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
+ font-size: 1em;
margin: 0;
padding: 0;
}
-
h1, h2, h3, h4, h5, h6 {
font-family: Georgia, 'Times New Roman', Times, serif;
+ background-color: whitesmoke;
+}
+header h1 {
+ background: none;
}
header {
width: 100%;
width: 100%;
text-align: left;
}
-
.doclisttable thead {
font-weight: bold;
}
-
.doclisttable tbody {
color: #3f3f3f;
}
-
.doclisttable td {
padding:0.2em;
}
-
.inlinelist {
display: inline-block;
padding: 0em;
margin: 0em;
}
-
.inlinelist li {
display: inline-block;
margin-right: 0.9em;
}
-
div#modification {
width: 100%;
color:darkgray;
font-size: 0.8em;
- float:left;
}
div#navbit {
width: 100%;
- float: left;
font-size: 0.8em;
+ background: none;
}
footer {
width: 100%;
width: 30%;
padding: 1%;
}
-
+nav#sidebar h2 {
+ background: none;
+}
section#content {
width: 63%;
margin-right:1%;