Browse Source

Data Analizer

v0.0.11
John Haverlack 3 years ago
parent
commit
0e788dc917
  1. 2
      .gitignore
  2. 25
      analyze-data.sh
  3. 66
      itam-data-analyzer.js
  4. 16
      web/root/site/bootstrap.html
  5. 6
      web/root/site/build.html
  6. 9
      web/root/site/cloning.html
  7. 52
      web/root/site/code.html
  8. 3
      web/root/site/editing.html
  9. 9
      web/root/site/equations.html
  10. 3
      web/root/site/footnotes.html
  11. 3
      web/root/site/icons.html
  12. 14
      web/root/site/install.html
  13. 10
      web/root/site/menu.html
  14. 12
      web/root/site/optional.html
  15. 3
      web/root/site/pdf.html
  16. 2
      web/root/site/search.html
  17. BIN
      web/root/site/sitemap.xml.gz
  18. 2
      web/root/site/swipe.html
  19. 9
      web/root/site/test.html
  20. 3
      web/root/site/version.html

2
.gitignore

@ -9,4 +9,6 @@ download/win7-x64-installer/*
download/skqitam-client-win7-installer.zip
itam-data/hosts/*
itam-data/host-id-map.json
itam-data/proc/*
itam-data/reports/*
itam-data/logs/*

25
analyze-data.sh

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Detect POSIX Environment
os=`uname -s | tr '[:upper:]' '[:lower:]'`
arch=`uname -m | sed -r 's/x86_64/x64/'`
#echo $os
#echo $arch
rundir=`echo $0 |sed -r 's/\/analyze-data\.sh$//'`
#echo $rundir
node_ver='v14.17.1'
node_path="$rundir/nodejs/node-$node_ver-$os-$arch/bin/node"
npm_path="$rundir/nodejs/node-$node_ver-$os-$arch/bin/npm"
export PATH="$rundir/nodejs/node-$node_ver-$os-$arch/bin:"$PATH
# My need to grow if client Payload get larger
max_http_header_size='40000000000'
if [ -x "$node_path" ]; then
$node_path $rundir/itam-data-analyzer.js
else
echo "ERROR: Missing Node.JS: $node_path"
exit 1
fi

66
itam-data-analyzer.js

@ -0,0 +1,66 @@
var path = require('path')
var fs = require('fs')
var skqlib = require('./skq_modules/skq-lib')
// GLOBAL CONFIG
process['CONFIG'] = JSON.parse(fs.readFileSync(path.join(__dirname, 'config','skqitam-server-config.json'), 'utf8'))
process['CONFIG']['GLOBAL']['RUN_DIR'] = __dirname
process['CONFIG']['LOCAL']= skqlib.it_am_init()
// console.log(JSON.stringify(process['CONFIG'], null, 2))
console.log('Data Dir: ' + path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR']))
let hostdir_base = path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'hosts')
let hostdirs = fs.readdirSync(hostdir_base)
// console.log(JSON.stringify(hostdirs, null, 2))
try {
fs.mkdirSync(path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'reports'), { recursive: true })
} catch (e) {
console.log('ERROR: Could not mkdir: ' + path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'reports'))
process.exit(1)
}
try {
fs.mkdirSync(path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'proc'), { recursive: true })
} catch (e) {
console.log('ERROR: Could not mkdir: ' + path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'indexed-data'))
process.exit(1)
}
let index_data_file = path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'proc', 'index-data.json')
let index_data = {}
try {
index_data = JSON.parse(fs.readFileSync(index_data_file, 'utf8'))
} catch (e) {
// Do Nothing
}
for (hd in hostdirs) {
let data_files = fs.readdirSync(path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'hosts', hostdirs[hd], 'raw'))
console.log ("LATEST DATA: " + path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'hosts', hostdirs[hd], 'raw', data_files[0]))
let host_data = JSON.parse(fs.readFileSync(path.join(__dirname, process['CONFIG']['GLOBAL']['ITAM_DATA_DIR'], 'hosts', hostdirs[hd], 'raw', data_files[0]), 'utf8'))
// console.log(JSON.stringify(host_data, null, 2))
if (!index_data.hasOwnProperty(host_data['ITAM']['ID'])) {
index_data[ host_data['ITAM']['ID'] ] = {}
}
index_data[ host_data['ITAM']['ID'] ]['LATEST_DATA'] = host_data['ITAM']['STARTTIME']
index_data[ host_data['ITAM']['ID'] ]['HOSTNAME'] = host_data['ITAM']['HOSTNAME']
index_data[ host_data['ITAM']['ID'] ]['LOCAL_HOSTNAME'] = host_data['SOURCE']['NODEJS']['HOST']['HOSTNAME']
index_data[ host_data['ITAM']['ID'] ]['IP_ADDR'] = host_data['SOURCE']['NODEJS']['HOST']['IP_ADDR'][0]['address']
index_data[ host_data['ITAM']['ID'] ]['OS'] = host_data['SOURCE']['NODEJS']['OS']['DISTRO']
index_data[ host_data['ITAM']['ID'] ]['OS_VERSION'] = host_data['SOURCE']['NODEJS']['OS']['DISTRO_VERSION']
index_data[ host_data['ITAM']['ID'] ]['OS_INSTALL_DATE'] = host_data['SOURCE']['OS_INSTALL_ISO_DATE']
}
fs.writeFileSync(index_data_file, JSON.stringify(index_data, null, 2), 'utf8')

16
web/root/site/bootstrap.html

@ -119,7 +119,7 @@
</ul>
<h3 id="examples">Examples</h3>
<h5 id="alerts">Alerts</h5>
<pre><code class="markdown">&lt;div class=&quot;alert alert-primary&quot; role=&quot;alert&quot;&gt;
<pre><code class="language-markdown">&lt;div class=&quot;alert alert-primary&quot; role=&quot;alert&quot;&gt;
This is a primary alert—check it out!
&lt;/div&gt;
&lt;div class=&quot;alert alert-secondary&quot; role=&quot;alert&quot;&gt;
@ -144,41 +144,33 @@
This is a dark alert—check it out!
&lt;/div&gt;
</code></pre>
<div class="alert alert-primary" role="alert">
This is a primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
This is a secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
This is a success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
This is a danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
This is a warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
This is a info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
This is a light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
This is a dark alert—check it out!
</div>
<h5 id="buttons">Buttons</h5>
<pre><code class="markdown">&lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&gt;Primary&lt;/button&gt;
<pre><code class="language-markdown">&lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&gt;Primary&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot;&gt;Secondary&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-success&quot;&gt;Success&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-danger&quot;&gt;Danger&lt;/button&gt;
@ -188,7 +180,6 @@
&lt;button type=&quot;button&quot; class=&quot;btn btn-dark&quot;&gt;Dark&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-link&quot;&gt;Link&lt;/button&gt;
</code></pre>
<p><button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
@ -200,9 +191,8 @@
<button type="button" class="btn btn-link">Link</button></p>
<h6 id="link-buttons">Link Buttons</h6>
<p>You can also turn HTML Links into Buttons</p>
<pre><code class="markdown">&lt;a class=&quot;btn btn-primary&quot; href=&quot;&quot;&gt;HTML Link&lt;/a&gt;
<pre><code class="language-markdown">&lt;a class=&quot;btn btn-primary&quot; href=&quot;&quot;&gt;HTML Link&lt;/a&gt;
</code></pre>
<p><a class="btn btn-primary" href="">HTML Link</a></p></div>
</div>
</div>

6
web/root/site/build.html

@ -112,17 +112,15 @@
<div class="col-md-12" role="main" style="top: -50px;">
<h2 id="building-the-website">Building the Website</h2>
<pre><code class="bash">[$] cd skq-mkdocs-templates
<pre><code class="language-bash">[$] cd skq-mkdocs-templates
</code></pre>
<p>To rebuild a clean HTML <code>site</code> directory run <code>mkdocs build --clean</code></p>
<pre><code class="bash">[$] mkdocs build --clean
<pre><code class="language-bash">[$] mkdocs build --clean
WARNING - Config value: 'version'. Warning: Unrecognised configuration name: version
PDF export is disabled (set environment variable ENABLE_PDF_EXPORT to 1 to enable)
INFO - Cleaning site directory
INFO - Building documentation to directory: /home/jehaverlack/Devel/Sikuliaq/docs/skq-mkdocs-template/site
</code></pre>
<div class="alert alert-info">
Each time you edit the site source content files you will need to run the <code>mkdocs build --clean</code> command to rebuild the <code>site</code> directory and test your edits.
</div>

9
web/root/site/cloning.html

@ -117,21 +117,18 @@ A UA Github (<a href="https://github.alaska.edu">https://github.alaska.edu</a>)
</div>
<h4 id="git-clone">Git clone</h4>
<pre><code class="bash">git clone https://github.alaska.edu/skq/skq-mkdocs-template.git
<pre><code class="language-bash">git clone https://github.alaska.edu/skq/skq-mkdocs-template.git
</code></pre>
<h4 id="download-zip">Download Zip</h4>
<p>Or <a href="https://github.alaska.edu/skq/skq-mkdocs-template/archive/master.zip">download as a zip</a> file.</p>
<h3 id="shipside-git-repository">Shipside Git Repository</h3>
<p>No login required</p>
<h4 id="git-clone_1">Git clone</h4>
<pre><code class="bash">git clone https://git.sikuliaq.alaska.edu/scm/git/skq/skq-mkdocs-template
<pre><code class="language-bash">git clone https://git.sikuliaq.alaska.edu/scm/git/skq/skq-mkdocs-template
</code></pre>
<h3 id="files-and-directories">Files and Directories</h3>
<pre><code class="bash">cd skq-mkdocs-templates
<pre><code class="language-bash">cd skq-mkdocs-templates
</code></pre>
<h4 id="inputs">Inputs</h4>
<ul>
<li><strong>mkdocs.yml</strong> - master Configuration File</li>

52
web/root/site/code.html

@ -117,88 +117,82 @@
</div>
<h3 id="plain-text">Plain Text</h3>
<pre><code class="plaintext">Hello World
<pre><code class="language-plaintext">Hello World
</code></pre>
<h3 id="html">HTML</h3>
<pre><code class="html">&lt;h2&gt;Hello World&lt;/h2&gt;
<pre><code class="language-html">&lt;h2&gt;Hello World&lt;/h2&gt;
</code></pre>
<h3 id="javascript">JavaScript</h3>
<pre><code class="javascript">console.log(&quot;Hello World&quot;)
<pre><code class="language-javascript">console.log(&quot;Hello World&quot;)
</code></pre>
<h3 id="css">CSS</h3>
<pre><code class="css">.helloworld {
<pre><code class="language-css">.helloworld {
color: #567;
}
</code></pre>
<h3 id="markdown">Markdown</h3>
<pre><code class="markdown">## Hello World
<pre><code class="language-markdown">## Hello World
</code></pre>
<h3 id="bash">Bash</h3>
<pre><code class="bash">#!/bin/bash
<pre><code class="language-bash">#!/bin/bash
echo &quot;Hello World&quot;
</code></pre>
<h3 id="json">JSON</h3>
<pre><code class="json">{
<pre><code class="language-json">{
&quot;Hello&quot;:&quot;World&quot;
}
</code></pre>
<hr />
<h4 id="marddown-code-highlight-source">Marddown Code Highlight Source</h4>
<div class="alert alert-warning">
<pre><code class="markdown">
### Plain Text
&#96&#96&#96 {.plaintext}
&#96;&#96;&#96; {.plaintext}
Hello World
&#96&#96&#96
&#96;&#96;&#96;
### HTML
&#96&#96&#96 {.html}
&#60h2&#62Hello World&#60/h2&#62
&#96&#96&#96
&#96;&#96;&#96; {.html}
&#60;h2&#62;Hello World&#60;/h2&#62;
&#96;&#96;&#96;
### JavaScript
&#96&#96&#96 {.javascript}
&#96;&#96;&#96; {.javascript}
console.log("Hello World")
&#96&#96&#96
&#96;&#96;&#96;
### CSS
&#96&#96&#96 {.css}
&#96;&#96;&#96; {.css}
.helloworld {
color: #567;
}
&#96&#96&#96
&#96;&#96;&#96;
### Markdown
&#96&#96&#96 {.markdown}
&#96;&#96;&#96; {.markdown}
## Hello World
&#96&#96&#96
&#96;&#96;&#96;
### Bash
&#96&#96&#96 {.bash}
&#96;&#96;&#96; {.bash}
#!/bin/bash
echo "Hello World"
&#96&#96&#96
&#96;&#96;&#96;
### JSON
&#96&#96&#96 {.json}
&#96;&#96;&#96; {.json}
{
"Hello":"World"
}
&#96&#96&#96
&#96;&#96;&#96;
</code></pre>
</div></div>
</div>

3
web/root/site/editing.html

@ -124,7 +124,7 @@
To modify the navigation menu find the following section in <code>mkdocs.yml</code>. NOTE the <b>top level nav menu</b> items such as <b>Setup</b>, <b>Features</b>, and <b>About</b>. And the paged under each top level nav item.
</div>
<pre><code class="yml">nav:
<pre><code class="language-yml">nav:
- &lt;span class=&quot;fas fa-home&quot;&gt;&lt;/span&gt;: index.md
- Setup:
- Install: install.md
@ -147,7 +147,6 @@
- About:
- Contact: contact.md
</code></pre>
<div class="alert alert-info">
See how the HTML renders a <a target="_blank" href="https://getbootstrap.com/docs/3.3/components/#navbar-default">Bootstrap</a> menu.
</div>

9
web/root/site/equations.html

@ -119,18 +119,16 @@ Markdown supports inline [LaTeX](https://en.wikipedia.org/wiki/LaTeX) equations
<h4 id="inline-equations">Inline Equations</h4>
<p>Inline LaTeX starts and ends with <code>\(</code> LaTex Code <code>\)</code></p>
<h5 id="code">Code</h5>
<pre><code class="latex">The square root of 2 is \(\sqrt{2} = 1.141421....\).
<pre><code class="language-latex">The square root of 2 is \(\sqrt{2} = 1.141421....\).
</code></pre>
<p>The square root of 2 is <script type="math/tex">\sqrt{2} = 1.141421....</script>.</p>
<hr />
<h4 id="centered-equations">Centered Equations</h4>
<p>To center an equation on the page use:</p>
<p><code>\[</code> LaTex Code <code>\]</code></p>
<h5 id="code_1">Code</h5>
<pre><code class="latex">\[\sqrt{2} = 1.141421....\]
<pre><code class="language-latex">\[\sqrt{2} = 1.141421....\]
</code></pre>
<p>
<script type="math/tex; mode=display">\sqrt{2} = 1.141421....</script>
</p>
@ -139,9 +137,8 @@ Markdown supports inline [LaTeX](https://en.wikipedia.org/wiki/LaTeX) equations
<p>To left justify an equation use:</p>
<p><code>\(</code> LaTex Code <code>\)</code></p>
<h5 id="code_2">Code</h5>
<pre><code class="latex">\(\sqrt{2} = 1.141421....\)
<pre><code class="language-latex">\(\sqrt{2} = 1.141421....\)
</code></pre>
<p>
<script type="math/tex">\sqrt{2} = 1.141421....</script>
</p>

3
web/root/site/footnotes.html

@ -113,13 +113,12 @@
<h2 id="footnotes">Footnotes</h2>
<p>To use the footnotes plugin <sup id="fnref:1"><a class="footnote-ref" href="#fn:1">1</a></sup>, simply include <code>[^footnoteid]</code> inline in your text, and <code>[^footnoteid]:</code> at the end of your markdown file. Also be sure to enable the footnote plugin in your <code>mkdocs.yml</code> file.</p>
<pre><code class="markdown">To use the footnotes plugin [^1], simply include ...
<pre><code class="language-markdown">To use the footnotes plugin [^1], simply include ...
...
[^1]: [Footnotes Plugin](https://www.markdownguide.org/extended-syntax#footnotes)
</code></pre>
<div class="footnote">
<hr />
<ol>

3
web/root/site/icons.html

@ -126,7 +126,6 @@
<p>To use an FA Icon, embed it as a <code>&lt;span&gt;</code> element with the appropriate class.</p>
<pre><code>&lt;span class=&quot;fas fa-user&quot;&gt;&lt;/span&gt;
</code></pre>
<p><span class="fas fa-user"></span></p>
<h4 id="example-1">Example 1</h4>
<p>Search for <strong><em>question</em></strong> on the <a href="https://fontawesome.com/icons?d=gallery&amp;s=brands,regular,solid&amp;m=free">Font Awesome</a> icon page. You will see 3 search interesting results:
@ -138,7 +137,6 @@
- &lt;span class=&quot;fas fa-question-circle&quot;&gt;&lt;/span&gt; Solid Question Circle
- &lt;span class=&quot;far fa-question-circle&quot;&gt;&lt;/span&gt; Regular Question Circle
</code></pre>
<ul>
<li><span class="fas fa-question"></span> Solid Question Mark</li>
<li><span class="fas fa-question-circle"></span> Solid Question Circle</li>
@ -150,7 +148,6 @@
- &lt;span class=&quot;fab fa-apple&quot;&gt;&lt;/span&gt; Mac
- &lt;span class=&quot;fab fa-windows&quot;&gt;&lt;/span&gt; Windows
</code></pre>
<ul>
<li><span class="fab fa-linux"></span> Linux</li>
<li><span class="fab fa-apple"></span> Mac</li>

14
web/root/site/install.html

@ -112,9 +112,10 @@
<div class="col-md-12" role="main" style="top: -50px;">
<h2 id="installing-requirements">Installing Requirements</h2>
<p><div class="alert alert-info">
<div class="alert alert-info">
The following tools can be installed and used cross platform on <b>Windows</b>, <b>Mac</b> and <b>Linux</b> computers to build <b>MkDocs</b> websites.
</div></p>
</div>
<div class="alert alert-warning">
You may need to adapt the following notes for you operating system platform.
</div>
@ -125,13 +126,12 @@
<li><a href="https://www.python.org/">Python</a> Version 3 recommended</li>
</ul>
<h5 id="testing-python-version">Testing Python Version</h5>
<pre><code class="bash">[$] python3 --version
<pre><code class="language-bash">[$] python3 --version
Python 3.6.8
[$] pip3 --version
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
</code></pre>
<h3 id="mkdocs">MkDocs</h3>
<ul>
<li><a href="https://www.mkdocs.org/">MkDocs</a> Website</li>
@ -141,18 +141,16 @@ pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
</div>
<h4 id="installing-mkdocs-and-common-plugins">Installing MkDocs and common plugins</h4>
<pre><code class="bash">sudo pip install mkdocs
<pre><code class="language-bash">sudo pip install mkdocs
sudo pip install mkdocs-pdf-export-plugin
sudo pip install mkdocs-bootstrap
sudo pip install python-markdown-math
sudo pip install https://github.com/mitya57/python-markdown-math/archive/master.zip
</code></pre>
<h5 id="testing-mkdocs-version">Testing MkDocs Version</h5>
<pre><code class="bash">[$] mkdocs --version
<pre><code class="language-bash">[$] mkdocs --version
mkdocs, version 1.1 from /usr/local/lib/python3.6/site-packages/mkdocs (Python 3.6)
</code></pre>
<p>For windows you can omit <code>sudo</code> in the above commands.</p>
<div class="alert alert-warning">
NOTE: You will need MkDocs version 1.1 to work with this template. If you have an older version try upgrading with:

10
web/root/site/menu.html

@ -112,11 +112,12 @@
<div class="col-md-12" role="main" style="top: -50px;">
<h2 id="menu-navigation">Menu navigation</h2>
<p>As described on the <a href="editing.html">Editing</a> page
<p>As described on the <a href="editing.html">Editing</a> page</p>
<div class="alert alert-info">
To modify the navigation menu find the following section in <code>mkdocs.yml</code>.
</div></p>
<pre><code class="yml">nav:
</div>
<pre><code class="language-yml">nav:
- &lt;span class=&quot;fas fa-home&quot;&gt;&lt;/span&gt;: index.md
- Setup:
- Install: install.md
@ -127,12 +128,11 @@
- Swipe Nav: swipe.md
-...
</code></pre>
<div class="alert alert-info">
However both top and sub nav menu items can also be both Markdown or URL links. For example:
</div>
<pre><code class="yml">nav:
<pre><code class="language-yml">nav:
- Home: index.md
- Sikuliaq: https://www.sikuliaq.alaska.edu
- UAF:

12
web/root/site/optional.html

@ -113,35 +113,31 @@
<h2 id="optional-recommended-tools">Optional Recommended Tools</h2>
<p>MkDocs provides a test webserver that can be used to test the static HTML website.</p>
<pre><code class="bash">mkdocs serve
<pre><code class="language-bash">mkdocs serve
</code></pre>
<p>However you might prefer the Node.js http-server for this purpose.</p>
<h3 id="nodejs">Node.js</h3>
<ul>
<li><a href="https://nodejs.org/en/">Node.js</a></li>
</ul>
<h5 id="or-via-nvm-no-admin-privs-needed">or via <a href="https://github.com/nvm-sh/nvm#installing-and-updating">NVM</a> (No Admin Privs Needed)</h5>
<pre><code class="bash">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
<pre><code class="language-bash">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
nvm install --lts
</code></pre>
<pre><code class="bash">[$] node --version
<pre><code class="language-bash">[$] node --version
v12.14.1
[$] npm --version
6.13.4
</code></pre>
<h3 id="http-server">http-server</h3>
<p>(Requires Node.js)</p>
<ul>
<li><a href="https://github.com/http-party/http-server#readme">http-server</a></li>
</ul>
<pre><code class="bash">npm install --global http-server
<pre><code class="language-bash">npm install --global http-server
</code></pre>
<h3 id="atom-editor">Atom Editor</h3>
<ul>
<li><a href="https://atom.io/">https://atom.io/</a></li>

3
web/root/site/pdf.html

@ -118,14 +118,13 @@
</ul>
<h4 id="enable-the-plugin">Enable the Plugin</h4>
<p>In your <code>mkdocs.yml</code> Config File</p>
<pre><code class="yml">plugins:
<pre><code class="language-yml">plugins:
- pdf-export:
verbose: true
media_type: print
combined: true
combined_output_path: pdf/skq-docs.pdf
</code></pre>
<div class="alert alert-warning">
Not all HTML code renders well as PDF.
</div>

2
web/root/site/search.html

@ -120,7 +120,7 @@
To enable site <b>Search</b> add the <code>- search</code> to the <code>mkdocs.yml</code> plugins section.
</div>
<pre><code class="yml">plugins:
<pre><code class="language-yml">plugins:
- search
</code></pre></div>
</div>

BIN
web/root/site/sitemap.xml.gz

2
web/root/site/swipe.html

@ -122,7 +122,7 @@ Swipe navigation is not a feature of MkDocs but is a custom modification include
<h3 id="customjsswipenavjs">custom/js/swipenav.js</h3>
<p>For details see the following JavaScript code.</p>
<pre><code class="javascript">var links = document.getElementsByTagName(&quot;a&quot;);
<pre><code class="language-javascript">var links = document.getElementsByTagName(&quot;a&quot;);
for (l in links) {
if (String(links[l].innerHTML).match(/fa-arrow-left.*Previous/)) {

9
web/root/site/test.html

@ -112,9 +112,8 @@
<div class="col-md-12" role="main" style="top: -50px;">
<h2 id="testing-the-site">Testing the Site</h2>
<pre><code class="bash">[$] cd skq-mkdocs-templates
<pre><code class="language-bash">[$] cd skq-mkdocs-templates
</code></pre>
<div class="alert alert-info">
There is more than one way to test a mkdocs website.
</div>
@ -128,7 +127,7 @@ There is more than one way to test a mkdocs website.
</div>
<h3 id="run-the-mkdocs-serve-test-server">Run the <code>mkdocs serve</code> test server</h3>
<pre><code class="bash">[$] mkdocs serve
<pre><code class="language-bash">[$] mkdocs serve
INFO - Building documentation...
PDF export is disabled (set environment variable ENABLE_PDF_EXPORT to 1 to enable)
INFO - Cleaning site directory
@ -137,7 +136,6 @@ INFO - Cleaning site directory
[I 200208 15:58:49 handlers:64] Start detecting changes
[I 200208 15:59:08 handlers:135] Browser Connected: http://127.0.0.1:8000/
</code></pre>
<ul>
<li>Point your browser to: <a href="http://127.0.0.1:8000">http://127.0.0.1:8000</a></li>
</ul>
@ -147,14 +145,13 @@ INFO - Cleaning site directory
</ul>
<h3 id="run-the-http-server-test-server">Run the <code>http-server</code> test server</h3>
<p>See: <a href="optional.html">Optional Tools</a> to install.</p>
<pre><code class="bash">[$ skq-mkdocs-template] http-server site
<pre><code class="language-bash">[$ skq-mkdocs-template] http-server site
Starting up http-server, serving site
Available on:
http://127.0.0.1:8080
http://10.1.0.242:8080
Hit CTRL-C to stop the server
</code></pre>
<p>Point your browser to:</p>
<ul>
<li><a href="http://127.0.0.1:8080">http://127.0.0.1:8080</a></li>

3
web/root/site/version.html

@ -116,10 +116,9 @@
A custom site <b>version</b> date has been added to the <code>mkdocs.yml</code> configuration file.
</div>
<pre><code class="yml">extra:
<pre><code class="language-yml">extra:
version: 2020-02-08
</code></pre>
<p>The <strong>Version</strong> is rendered in the footer of all MkDocs site page.</p>
<p><a href="img/Version.png"><img src="img/Version.png" class="img-responsive img-rounded" style="width: 600px;" alt="MenuNaV" ></a></p></div>
</div>

Loading…
Cancel
Save