From ef04b30d66196d2a2e682b42fadd885a4d19d7d8 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Tue, 1 May 2018 23:25:58 +0100 Subject: [PATCH] doc --- C/arrays.c | 8 +- C/atomic.c | 18 +- C/attvar.c | 9 + C/bb.c | 11 + C/bignum.c | 11 + C/cmppreds.c | 12 + C/dbase.c | 14 + C/eval.c | 15 +- C/exec.c | 20 +- C/flags.c | 4 + C/stack.c | 16 +- C/utilpreds.c | 5 +- H/YapGFlagInfo.h | 4 +- H/YapLFlagInfo.h | 5 +- OPTYap/opt.preds.c | 2 +- docs/CMakeLists.txt | 31 +- docs/Doxyfile.in | 28 +- docs/custom/customdoxygen.css | 220 +-- docs/custom/doxy-boot.js | 184 +-- docs/custom/footer.html | 23 +- docs/custom/header.html | 99 +- docs/md/INSTALL.md | 28 +- docs/md/attributes.md | 18 +- docs/md/builtins.md | 49 +- docs/md/c | 24 - docs/md/library.md | 56 +- docs/md/load_files.md | 3 +- docs/md/modules.md | 6 +- docs/md/run.md | 24 +- docs/md/swi.md | 9 +- include/YapErrors.h | 3 +- library/apply.yap | 49 +- library/apply_macros.yap | 4 +- library/lists.yap | 26 +- library/maplist.yap | 109 +- library/regex/cclass.h | 58 +- library/regex/cname.h | 207 +-- library/regex/engine.c | 8 + library/regex/regcomp.c | 2354 ++++++++++++++++----------------- library/regex/regerror.c | 150 ++- library/regex/regexp.c | 177 ++- library/regexp.yap | 32 +- library/rltree.yap | 57 +- library/rltree/range_list.c | 9 + library/rltree/range_list.h | 178 +-- library/sockets.yap | 41 +- library/timeout.yap | 4 +- library/trees.yap | 145 +- library/undgraphs.yap | 53 +- pl/builtins.yap | 2 +- pl/consult.yap | 11 +- pl/error.yap | 2 +- pl/listing.yap | 2 +- pl/newmod.yap | 10 +- pl/preds.yap | 2 +- pl/save.yap | 2 +- 56 files changed, 2229 insertions(+), 2422 deletions(-) delete mode 100644 docs/md/c diff --git a/C/arrays.c b/C/arrays.c index 635f1b3ec..7bb7aa43f 100644 --- a/C/arrays.c +++ b/C/arrays.c @@ -15,7 +15,13 @@ * * *************************************************************************/ -/** @defgroup YAPArrays Named Arrays +/** + +@file arrays.c + +@namespace prolog + +@addtogroup YAPArrays Named Arrays @ingroup extensions @{ diff --git a/C/atomic.c b/C/atomic.c index fdc89aefa..50eeee09b 100755 --- a/C/atomic.c +++ b/C/atomic.c @@ -1,4 +1,3 @@ - /************************************************************************* * * * YAP Prolog * @@ -22,15 +21,20 @@ static char SccsId[] = "%W% %G%"; /** * @file atomic.c * + * @namespace prolog + * +/ + +/** * @defgroup Predicates_on_Atoms Predicates on Atoms and Strings * @ingroup builtins * @{ - - @brief The following predicates are used to manipulate atoms, strings, lists of - codes and lists of chars: - - \toc - + * + * @brief The following predicates are used to manipulate atoms, strings, lists of + * codes and lists of chars: + * + * \toc + * */ #define HAS_CACHE_REGS 1 diff --git a/C/attvar.c b/C/attvar.c index 85b5ab0a8..19882b9a4 100644 --- a/C/attvar.c +++ b/C/attvar.c @@ -18,6 +18,15 @@ static char SccsId[] = "%W% %G%"; #endif +/** + * @file attvar.c + * @author VITOR SANTOS COSTA + * @date Mon Apr 30 09:31:59 2018 + * + * @brief attributed variables + * @namespace prolog + * + */ #include "Yap.h" #include "Yatom.h" diff --git a/C/bb.c b/C/bb.c index 37ca03b72..18a8b8fb2 100644 --- a/C/bb.c +++ b/C/bb.c @@ -18,6 +18,17 @@ static char SccsId[] = "%W% %G%"; #endif +/** + * @file bb.c + * @author VITOR SANTOS COSTA + * @date Mon Apr 30 09:32:54 2018 + * + * @brief blackboard + * + * @namespace prolog + * + */ + /** @defgroup BlackBoard The Blackboard @ingroup builtins diff --git a/C/bignum.c b/C/bignum.c index b9a3a46ef..2b51b408a 100644 --- a/C/bignum.c +++ b/C/bignum.c @@ -17,6 +17,17 @@ #ifdef SCCS static char SccsId[] = "%W% %G%"; #endif +/** + * @file bignum.c + * @author VITOR SANTOS COSTA + * @date Mon Apr 30 09:34:59 2018 + * + * @brief BigNums and More + * @namespace prolog + * + * + * + */ #include "Yap.h" #include "Yatom.h" diff --git a/C/cmppreds.c b/C/cmppreds.c index 00dbee65b..7baa09762 100644 --- a/C/cmppreds.c +++ b/C/cmppreds.c @@ -16,6 +16,18 @@ * * *************************************************************************/ +/** + * @file cmppreds.c + * @author VITOR SANTOS COSTA + * @date Mon Apr 30 09:35:58 2018 + * + * @brief comparison + * + * @namespace prolog + * + * + * + */ /// @file cmppreds.c /** diff --git a/C/dbase.c b/C/dbase.c index c01154760..9bbc370fa 100644 --- a/C/dbase.c +++ b/C/dbase.c @@ -18,6 +18,20 @@ static char SccsId[] = "%W% %G%"; #endif +/** + * @file dbase.c + * @author VITOR SANTOS COSTA + * @date Mon Apr 30 09:36:46 2018 + * + * @brief record and other forms of storing terms. + * + * @namespace prolog + * + * + * + */ + + /** @defgroup Internal_Database Internal Data Base @ingroup builtins @{ diff --git a/C/eval.c b/C/eval.c index 9760112e8..cab3f1ce4 100644 --- a/C/eval.c +++ b/C/eval.c @@ -17,8 +17,19 @@ #ifdef SCCS static char SccsId[] = "%W% %G%"; #endif - -//! @file eval.c +/** + * @file eval.c + * @author VITOR SANTOS COSTA + * @date Mon Apr 30 09:37:59 2018 + * + * @brief is/2 + * + * + * @namespace prolog + * + * + * + */ //! @{ diff --git a/C/exec.c b/C/exec.c index 7f3e22419..4b2ace0a7 100755 --- a/C/exec.c +++ b/C/exec.c @@ -18,6 +18,19 @@ static char SccsId[] = "@(#)cdmgr.c 1.1 05/02/98"; #endif +/** + * @file exec.c + * @author VITOR SANTOS COSTA + * @date Mon Apr 30 13:48:35 2018 + * + * @brief meta-call + * + * @namespace prolog + * + * + * + */ + #include "absmi.h" #include "attvar.h" #include "cut_c.h" @@ -121,7 +134,8 @@ inline static bool CallMetaCall(Term t, Term mod USES_REGS) { /** * Transfer control to a meta-call in ARG1, cut up to B. - * @method Yap_ExecuteCallMetaCall + * + * @param g goal * @param mod current module * @return su */ @@ -1574,8 +1588,8 @@ bool Yap_exec_absmi(bool top, yap_reset_t has_reset) { /** * Fails computation up to choice-point bb - * @method Yap_fail_all - * @param USES_REGS [description] + * + * @param USES_REGS thread support */ void Yap_fail_all(choiceptr bb USES_REGS) { yamop *saved_p, *saved_cp; diff --git a/C/flags.c b/C/flags.c index acdda6114..1838c1e3a 100644 --- a/C/flags.c +++ b/C/flags.c @@ -30,6 +30,10 @@ */ +/* + * @namespace prolog + * / + // this is where we define flags #define INIT_FLAGS 1 diff --git a/C/stack.c b/C/stack.c index fd7185d95..bd94e882a 100644 --- a/C/stack.c +++ b/C/stack.c @@ -1260,19 +1260,21 @@ static Term all_calls(bool internal USES_REGS) { return Yap_MkApplTerm(f, 6, ts); } -/** - * report the current status of the stacks up to level $N$ - * - * @param depth - * - * @return data on the current program counter - */ Term Yap_all_calls(void) { CACHE_REGS return all_calls(true PASS_REGS); } +/** + * @pred current_stack( +Depth ) + * + * report the current status of the stacks up to level $N$ + * + * @param Depth + * + * @return data on the current Prolog stack. + */ static Int current_stack(USES_REGS1) { Term t; while ((t = all_calls(false PASS_REGS)) == 0L) { diff --git a/C/utilpreds.c b/C/utilpreds.c index a681f6da0..add64e55d 100644 --- a/C/utilpreds.c +++ b/C/utilpreds.c @@ -1617,8 +1617,9 @@ p_term_variables( USES_REGS1 ) /* variables in term t */ /** * Exports a nil-terminated list with all the variables in a term. - * @param[in] the term - * @param[in] the arity of the calling predicate (required for exact garbage collection). + * @param[t] the term + * @param[arity] the arity of the calling predicate (required for exact garbage collection). + * @param[USES_REGS] threading */ Term Yap_TermVariables( Term t, UInt arity USES_REGS ) /* variables in term t */ diff --git a/H/YapGFlagInfo.h b/H/YapGFlagInfo.h index f6b3dcd86..9afd361e7 100644 --- a/H/YapGFlagInfo.h +++ b/H/YapGFlagInfo.h @@ -47,11 +47,11 @@ YAP_FLAG(ALLOW_ASSERT_FOR_STATIC_PREDICATES, NULL), /**< `allow_variable_name_as_functor` boolean flag allows constructs such as - ~~~~~~~~~~~~ +~~~ Tree(Node(L,node,R)) :- Tree(L), Tree(R). -~~~~~~~~~~~~ +~~~ */ YAP_FLAG( ALLOW_VARIABLE_NAME_AS_FUNCTOR_FLAG, "allow_variable_name_as_functor", false, booleanFlag, "false", NULL), diff --git a/H/YapLFlagInfo.h b/H/YapLFlagInfo.h index e05ad48bc..b657bbec9 100644 --- a/H/YapLFlagInfo.h +++ b/H/YapLFlagInfo.h @@ -24,11 +24,10 @@ @{ -@enum LocalFlags local Flags supported by YAP - @brief local flag: +@enum local_flags flag: */ -typedef enum { +typedef enum local_flags_enum { /** + `autoload`: set the system to look for undefined procedures */ YAP_FLAG( AUTOLOAD_FLAG, "autoload", true, booleanFlag, "false" , NULL ), diff --git a/OPTYap/opt.preds.c b/OPTYap/opt.preds.c index 8f07d9acb..8a9db543a 100644 --- a/OPTYap/opt.preds.c +++ b/OPTYap/opt.preds.c @@ -241,7 +241,7 @@ void Yap_init_optyap_preds(void) { SafePredFlag | SyncPredFlag); Yap_InitCPred("abolish_all_tables", 0, p_abolish_all_tables, SafePredFlag | SyncPredFlag); - /** @pred abolish_all_tables/0 + /** @pred abolish_all_tables Removes all the entries from the table space for all tabled diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 17c5c8012..467f41be3 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -8,7 +8,9 @@ if (WITH_DOCS) set(DOCS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/docs) -SET (CMAKE_HTML_EXTRA_ +SET (CMAKE_HTML_EXTRA_) + +SET( EXT ${DOCS_SOURCE_DIR}/custom/application.js ${DOCS_SOURCE_DIR}/custom/assets ${DOCS_SOURCE_DIR}/custom/bootstrap.min.css @@ -84,21 +86,18 @@ endforeach(i ${DOCS_EXCLUDE_}) add_subdirectory(../packages/raptor/doc ${CMAKE_BINARY_DIR}/packages/raptor/doc) - - - -SET(DOC_INPUT_FILES_ ${CMAKE_SOURCE_DIR}/INSTALL.md - ${CMAKE_SOURCE_DIR}/pl - ${CMAKE_SOURCE_DIR}/CXX - ${CMAKE_SOURCE_DIR}/OPTYap - ${CMAKE_SOURCE_DIR}/C - ${CMAKE_SOURCE_DIR}/H - ${CMAKE_SOURCE_DIR}/include - ${CMAKE_SOURCE_DIR}/os - ${CMAKE_SOURCE_DIR}/library - ${CMAKE_SOURCE_DIR}/swi/library - ${CMAKE_SOURCE_DIR}/docs/md -) + SET(DOC_INPUT_FILES_ + ${CMAKE_SOURCE_DIR}/pl + ${CMAKE_SOURCE_DIR}/docs/md + ${CMAKE_SOURCE_DIR}/CXX + ${CMAKE_SOURCE_DIR}/OPTYap + ${CMAKE_SOURCE_DIR}/C + ${CMAKE_SOURCE_DIR}/H + ${CMAKE_SOURCE_DIR}/include + ${CMAKE_SOURCE_DIR}/os + ${CMAKE_SOURCE_DIR}/library + ${CMAKE_SOURCE_DIR}/swi/library + ) foreach(i ${DOC_INPUT_FILES_}) diff --git a/docs/Doxyfile.in b/docs/Doxyfile.in index 5d21b56df..cd85cf6e6 100644 --- a/docs/Doxyfile.in +++ b/docs/Doxyfile.in @@ -68,7 +68,7 @@ OUTPUT_DIRECTORY = @PROJECT_BINARY_DIR@/docs # performance problems for the file system. # The default value is: NO. -CREATE_SUBDIRS = YES +CREATE_SUBDIRS = NO # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII # characters to appear in the names of generated files. If set to NO, non-ASCII @@ -98,7 +98,7 @@ OUTPUT_LANGUAGE = English # documentation (similar to Javadoc). Set to NO to disable this. # The default value is: YES. -BRIEF_MEMBER_DESC = YES +BRIEF_MEMBER_DESC = NO # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief # description of a member or function before the detailed description @@ -107,7 +107,7 @@ BRIEF_MEMBER_DESC = YES # brief descriptions will be completely suppressed. # The default value is: YES. -REPEAT_BRIEF = YES +REPEAT_BRIEF = NO # This tag implements a quasi-intelligent brief description abbreviator that is # used to form the text in various listings. Each string in this list, if found @@ -204,7 +204,7 @@ MULTILINE_CPP_IS_BRIEF = NO # documentation from any documented member that it re-implements. # The default value is: YES. -INHERIT_DOCS = YES +INHERIT_DOCS = NO # If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new # page for each member. If set to NO, the documentation of a member will be part @@ -277,7 +277,7 @@ OPTIMIZE_OUTPUT_VHDL = NO # Prolog sources. Doxygen will then generate output that is tailored for Prolog. # The default value is: NO. -OPTIMIZE_OUTPUT_FOR_PROLOG = YES +OPTIMIZE_OUTPUT_FOR_PROLOG = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given @@ -318,7 +318,7 @@ MARKDOWN_SUPPORT = YES # Minimum value: 0, maximum value: 99, default value: 0. # This tag requires that the tag MARKDOWN_SUPPORT is set to YES. -TOC_INCLUDE_HEADINGS = 0 +TOC_INCLUDE_HEADINGS = 99 # When enabled doxygen tries to link words that correspond to documented # classes, or namespaces to their corresponding documentation. Such a link can @@ -711,7 +711,7 @@ FILE_VERSION_FILTER = # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE # tag is left empty. -LAYOUT_FILE = +LAYOUT_FILE = @CMAKE_SOURCE_DIR@/docs/custom/DoxygenLayout.xml # The CITE_BIB_FILES tag can be used to specify one or more bib files containing # the reference definitions. This must be a list of .bib files. The .bib @@ -748,7 +748,7 @@ WARNINGS = YES # will automatically be disabled. # The default value is: YES. -WARN_IF_UNDOCUMENTED = YES +WARN_IF_UNDOCUMENTED = NO # If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some parameters @@ -1097,7 +1097,7 @@ VERBATIM_HEADERS = YES # classes, structs, unions or interfaces. # The default value is: YES. -ALPHABETICAL_INDEX = YES +ALPHABETICAL_INDEX = NO # The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in # which the alphabetical index list will be split. @@ -1156,7 +1156,7 @@ HTML_FILE_EXTENSION = .html # of the possible markers and block names see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_HEADER = +HTML_HEADER = @CMAKE_SOURCE_DIR@/docs/custom/header.html # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each # generated HTML page. If the tag is left blank doxygen will generate a standard @@ -1166,7 +1166,7 @@ HTML_HEADER = # that doxygen normally uses. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_FOOTER = +HTML_FOOTER = @CMAKE_SOURCE_DIR@/docs/custom/footer.html # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style @@ -1192,7 +1192,7 @@ HTML_STYLESHEET = # list). For an example see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_EXTRA_STYLESHEET = +HTML_EXTRA_STYLESHEET = @CMAKE_SOURCE_DIR@/docs/custom/customdoxygen.css # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or @@ -1203,7 +1203,7 @@ HTML_EXTRA_STYLESHEET = # files will be copied as-is; there are no commands or markers available. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_EXTRA_FILES = +HTML_EXTRA_FILES = @CMAKE_SOURCE_DIR@/docs/custom/doxy-boot.js # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen # will adjust the colors in the style sheet and background images according to @@ -1958,7 +1958,7 @@ MAN_LINKS = NO # captures the structure of the code including all documentation. # The default value is: NO. -GENERATE_XML = YES +GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. If a # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of diff --git a/docs/custom/customdoxygen.css b/docs/custom/customdoxygen.css index c20bd11ba..92bc395cd 100644 --- a/docs/custom/customdoxygen.css +++ b/docs/custom/customdoxygen.css @@ -1,104 +1,17 @@ -h1, .h1, h2, .h2, h3, .h3{ - font-weight: 200 !important; -} - +/* Custom Look and feel - Can be edited +----------------------------------- */ #navrow1, #navrow2, #navrow3, #navrow4, #navrow5{ border-bottom: 1px solid #EEEEEE; } .adjust-right { -margin-left: 30px !important; -font-size: 1.15em !important; -} -.navbar{ - border: 0px solid #222 !important; -} -table{ - white-space:pre-wrap !important; -} -/* - =========================== - */ - - -/* Sticky footer styles --------------------------------------------------- */ -html, -body { - height: 100%; - /* The html and body elements cannot have any padding or margin. */ + margin-left: 30px !important; + font-size: 1.15em !important; } -/* Wrapper for page content to push down footer */ -#wrap { - min-height: 100%; - height: auto; - /* Negative indent footer by its height */ - margin: 0 auto -60px; - /* Pad bottom by footer height */ - padding: 0 0 60px; -} - -/* Set the fixed height of the footer here */ -#footer { - font-size: 0.9em; - padding: 8px 0px; - background-color: #f5f5f5; -} - -.footer-row { - line-height: 44px; -} - -#footer > .container { - padding-left: 15px; - padding-right: 15px; -} - -.footer-follow-icon { - margin-left: 3px; - text-decoration: none !important; -} - -.footer-follow-icon img { - width: 20px; -} - -.footer-link { - padding-top: 5px; - display: inline-block; - color: #999999; - text-decoration: none; -} - -.footer-copyright { - text-align: center; -} - - -@media (min-width: 992px) { - .footer-row { - text-align: left; - } - - .footer-icons { - text-align: right; - } -} -@media (max-width: 991px) { - .footer-row { - text-align: center; - } - - .footer-icons { - text-align: center; - } -} - -/* DOXYGEN Code Styles +/* DOXYGEN Code Styles - These are from doxygen but can be changed to fit the theme ----------------------------------- */ - a.qindex { font-weight: bold; } @@ -148,8 +61,8 @@ div.fragment { } div.line { - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; + font-family: monospace, fixed; + font-size: 13px; min-height: 13px; line-height: 1.0; text-wrap: unrestricted; @@ -157,7 +70,7 @@ div.line { white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* CSS3 */ - word-wrap: normal; /* IE 5.5+ */ + word-wrap: break-word; /* IE 5.5+ */ text-indent: -53px; padding-left: 53px; padding-bottom: 0px; @@ -173,9 +86,6 @@ div.line { transition-property: background-color, box-shadow; transition-duration: 0.5s; } -div.line:hover{ - background-color: #FBFF00; -} div.line.glow { background-color: cyan; @@ -186,21 +96,16 @@ div.line.glow { span.lineno { padding-right: 4px; text-align: right; - color:rgba(0,0,0,0.3); - border-right: 1px solid #EEE; - border-left: 1px solid #EEE; - background-color: #FFF; + border-right: 2px solid #0F0; + background-color: #E8E8E8; white-space: pre; - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace ; } span.lineno a { - background-color: #FAFAFA; - cursor:pointer; + background-color: #D8D8D8; } span.lineno a:hover { - background-color: #EFE200; - color: #1e1e1e; + background-color: #C8C8C8; } div.groupHeader { @@ -267,104 +172,3 @@ blockquote { padding: 0 12px 0 16px; } -/*---------------- Search Box */ - -#search-box { - margin: 10px 0px; -} -#search-box .close { - display: none; - position: absolute; - right: 0px; - padding: 6px 12px; - z-index: 5; -} - -/*---------------- Search results window */ - -#search-results-window { - display: none; -} - -iframe#MSearchResults { - width: 100%; - height: 15em; -} - -.SRChildren { - padding-left: 3ex; padding-bottom: .5em -} -.SRPage .SRChildren { - display: none; -} -a.SRScope { - display: block; -} -a.SRSymbol:focus, a.SRSymbol:active, -a.SRScope:focus, a.SRScope:active { - text-decoration: underline; -} -span.SRScope { - padding-left: 4px; -} -.SRResult { - display: none; -} - -/* class and file list */ -.directory .icona, -.directory .arrow { - height: auto; -} -.directory .icona .icon { - height: 16px; -} -.directory .icondoc { - background-position: 0px 0px; - height: 20px; -} -.directory .iconfopen { - background-position: 0px 0px; -} -.directory td.entry { - padding: 7px 8px 6px 8px; -} - -.table > tbody > tr > td.memSeparator { - line-height: 0; - .table-hover; - -} - -.memItemLeft, .memTemplItemLeft { - white-space: normal; -} - -/* enumerations */ -.panel-body thead > tr { - background-color: #e0e0e0; -} - -/* todo lists */ -.todoname, -.todoname a { - font-weight: bold; -} - -/* Class title */ -.summary { - margin-top: 25px; -} -.page-header { - margin: 20px 0px !important; -} -.page-header .title { - display: inline-block; -} -.page-header .pull-right { - margin-top: 0.3em; - margin-left: 0.5em; -} -.page-header .label { - font-size: 50%; -} diff --git a/docs/custom/doxy-boot.js b/docs/custom/doxy-boot.js index ac0b41f49..a48c7c46e 100644 --- a/docs/custom/doxy-boot.js +++ b/docs/custom/doxy-boot.js @@ -4,6 +4,7 @@ $( document ).ready(function() { $("div.title").addClass("h1"); $('li > a[href="index.html"] > span').before(" "); + $('li > a[href="index.html"] > span').text("YAP"); $('li > a[href="modules.html"] > span').before(" "); $('li > a[href="namespaces.html"] > span').before(" "); $('li > a[href="annotated.html"] > span').before(" "); @@ -26,7 +27,7 @@ $( document ).ready(function() { $("#nav-path > ul").addClass("breadcrumb"); $("table.params").addClass("table"); - $("div.ingroups").wrapInner(""); + $("div.ingroups").wrapInner(""); $("div.levels").css("margin", "0.5em"); $("div.levels > span").addClass("btn btn-default btn-xs"); $("div.levels > span").css("margin-right", "0.25em"); @@ -53,19 +54,21 @@ $( document ).ready(function() { $("div.ttname a").css("color", 'white'); $("div.ttdef,div.ttdoc,div.ttdeci").addClass("panel-body"); - $('div.fragment.well div.line:first').css('margin-top', '2px'); - $('div.fragment.well div.line:last').css('margin-bottom', '2px'); + $('#MSearchBox').parent().remove(); + $('div.fragment.well div.line:first').css('margin-top', '15px'); + $('div.fragment.well div.line:last').css('margin-bottom', '15px'); + $('table.doxtable').removeClass('doxtable').addClass('table table-striped table-bordered').each(function(){ $(this).prepend(''); $(this).find('tbody > tr:first').prependTo($(this).find('thead')); - + $(this).find('td > span.success').parent().addClass('success'); $(this).find('td > span.warning').parent().addClass('warning'); $(this).find('td > span.danger').parent().addClass('danger'); }); - - + + if($('div.fragment.well div.ttc').length > 0) { @@ -76,164 +79,18 @@ $( document ).ready(function() { $(this).contents().appendTo($(this).siblings('.memItemLeft')); $(this).siblings('.memItemLeft').attr('align', 'left'); }); - - $('table.memberdecls').find('.memTemplItemRight').each(function(){ - $(this).contents().appendTo($(this).siblings('.memTemplItemLeft')); - $(this).siblings('.memTemplItemLeft').attr('align', 'left'); - }); - + function getOriginalWidthOfImg(img_element) { var t = new Image(); t.src = (img_element.getAttribute ? img_element.getAttribute("src") : false) || img_element.src; return t.width; } - + $('div.dyncontent').find('img').each(function(){ if(getOriginalWidthOfImg($(this)[0]) > $('#content>div.container').width()) $(this).css('width', '100%'); }); - - - /* responsive search box */ - $('#MSearchBox').parent().remove(); - - var nav_container = $('
'); - $('#navrow1').parent().prepend(nav_container); - - var left_nav = $('
'); - for (i = 0; i < 6; i++) { - var navrow = $('#navrow' + i + ' > ul.tablist').detach(); - left_nav.append(navrow); - $('#navrow' + i).remove(); - } - var right_nav = $('
').append('\ - '); - $(nav_container).append(left_nav); - $(nav_container).append(right_nav); - - $('#MSearchSelectWindow .SelectionMark').remove(); - var search_selectors = $('#MSearchSelectWindow .SelectItem'); - for (var i = 0; i < search_selectors.length; i += 1) { - var element_a = $('').text($(search_selectors[i]).text()); - - element_a.click(function(){ - $('#search-box .dropdown-menu li').removeClass('active'); - $(this).parent().addClass('active'); - searchBox.OnSelectItem($('#search-box li a').index(this)); - searchBox.Search(); - return false; - }); - - var element = $('
  • ').append(element_a); - $('#search-box .dropdown-menu').append(element); - } - $('#MSearchSelectWindow').remove(); - - $('#search-box .close').click(function (){ - searchBox.CloseResultsWindow(); - }); - - $('body').append('
    '); - $('body').append('
    '); - $('body').append('
    '); - - searchBox.searchLabel = ''; - searchBox.DOMSearchField = function() { - return document.getElementById("search-field"); - } - searchBox.DOMSearchClose = function(){ - return document.getElementById("search-close"); - } - - - /* search results */ - var results_iframe = $('#MSearchResults').detach(); - $('#MSearchResultsWindow') - .attr('id', 'search-results-window') - .addClass('panel panel-default') - .append( - '
    \ -

    Search Results

    \ -
    \ -
    ' - ); - $('#search-results-window .panel-body').append(results_iframe); - - searchBox.DOMPopupSearchResultsWindow = function() { - return document.getElementById("search-results-window"); - } - - function update_search_results_window() { - $('#search-results-window').removeClass('panel-default panel-success panel-warning panel-danger') - var status = $('#MSearchResults').contents().find('.SRStatus:visible'); - if (status.length > 0) { - switch(status.attr('id')) { - case 'Loading': - case 'Searching': - $('#search-results-window').addClass('panel-warning'); - break; - case 'NoMatches': - $('#search-results-window').addClass('panel-danger'); - break; - default: - $('#search-results-window').addClass('panel-default'); - } - } else { - $('#search-results-window').addClass('panel-success'); - } - } - $('#MSearchResults').load(function() { - $('#MSearchResults').contents().find('link[href="search.css"]').attr('href','../doxygen.css'); - $('#MSearchResults').contents().find('head').append( - ''); - - update_search_results_window(); - - // detect status changes (only for search with external search backend) - var observer = new MutationObserver(function(mutations) { - update_search_results_window(); - }); - var config = { attributes: true}; - - var targets = $('#MSearchResults').contents().find('.SRStatus'); - for (i = 0; i < targets.length; i++) { - observer.observe(targets[i], config); - } - }); - - - /* enumerations */ - $('table.fieldtable').removeClass('fieldtable').addClass('table table-striped table-bordered').each(function(){ - $(this).prepend(''); - $(this).find('tbody > tr:first').prependTo($(this).find('thead')); - - $(this).find('td > span.success').parent().addClass('success'); - $(this).find('td > span.warning').parent().addClass('warning'); - $(this).find('td > span.danger').parent().addClass('danger'); - }); - - /* todo list */ - var todoelements = $('.contents > .textblock > dl.reflist > dt, .contents > .textblock > dl.reflist > dd'); - for (var i = 0; i < todoelements.length; i += 2) { - $('.contents > .textblock').append( - '
    ' - + "
    " + $(todoelements[i]).html() + "
    " - + "
    " + $(todoelements[i+1]).html() + "
    " - + '
    '); - } - $('.contents > .textblock > dl').remove(); - - + $(".memitem").removeClass('memitem'); $(".memproto").removeClass('memproto'); $(".memdoc").removeClass('memdoc'); @@ -248,24 +105,17 @@ $( document ).ready(function() { $("a.el").removeClass('el'); $("div.ah").removeClass('ah'); $("div.header").removeClass("header"); - + $('.mdescLeft').each(function(){ if($(this).html()==" ") { $(this).siblings('.mdescRight').attr('colspan', 2); $(this).remove(); } }); - $('td.memItemLeft').each(function(){ - if($(this).siblings('.memItemRight').html()=="") { - $(this).attr('colspan', 2); - $(this).siblings('.memItemRight').remove(); - } - }); - $('td.memTemplItemLeft').each(function(){ - if($(this).siblings('.memTemplItemRight').html()=="") { + $('td.memItemLeft').each(function(){ + if($(this).siblings('.memItemRight').html()=="") { $(this).attr('colspan', 2); - $(this).siblings('.memTemplItemRight').remove(); + $(this).siblings('.memItemRight').remove(); } }); - searchBox.CloseResultsWindow(); -}); +}); \ No newline at end of file diff --git a/docs/custom/footer.html b/docs/custom/footer.html index 694845591..152fb77ff 100644 --- a/docs/custom/footer.html +++ b/docs/custom/footer.html @@ -1,20 +1,15 @@ - + - - - - - - - - + - - - - -