Browse Source

Working Linux Client

v0.0.11
John Haverlack 3 years ago
parent
commit
e641523e44
  1. 3
      download/skqitam-setup.js
  2. 40
      download/skqitam-setup.ps1
  3. 92
      download/skqitam-setup.sh
  4. 63
      getnodejs.sh
  5. 84
      package-lock.json
  6. 2
      web/root/docs/js/skq-it-am.js
  7. 16
      web/root/site/bootstrap.html
  8. 6
      web/root/site/build.html
  9. 9
      web/root/site/cloning.html
  10. 52
      web/root/site/code.html
  11. 3
      web/root/site/editing.html
  12. 9
      web/root/site/equations.html
  13. 3
      web/root/site/footnotes.html
  14. 3
      web/root/site/icons.html
  15. 14
      web/root/site/install.html
  16. 2
      web/root/site/js/skq-it-am.js
  17. 10
      web/root/site/menu.html
  18. 12
      web/root/site/optional.html
  19. 3
      web/root/site/pdf.html
  20. 2
      web/root/site/search.html
  21. 8
      web/root/site/sitemap.xml
  22. BIN
      web/root/site/sitemap.xml.gz
  23. 2
      web/root/site/swipe.html
  24. 9
      web/root/site/test.html
  25. 3
      web/root/site/version.html

3
download/skqitam-setup.js

@ -0,0 +1,3 @@
console.log ("Hello World")

40
download/skqitam-setup.ps1

@ -2,15 +2,12 @@ param(
[string]$base_url
)
Write-Output "Sikuliaq IT Asset Manager Client Setup"
Write-Output " Copyright (C) 2021 University of Alaska Fairbanks / R/V Sikuliaq"
Write-Output " Version skq-it-am v 1.0.0_2021-06-07"
Write-Output (" Base URL: " + $base_url)
# Tmp Dir
# Tmp = ""
$tmp_dir = "~\Downloads\skqitam-tmp"
mkdir ~\Downloads\skqitam-tmp -ErrorAction SilentlyContinue
# Get OS Arch
# WMIC http://support.moonpoint.com/os/windows/commands/wmic/os_get.php
$os = "win"
$arch = (Get-WmiObject Win32_OperatingSystem).OSArchitecture
# wmic os get OSArchitecture
@ -22,16 +19,33 @@ if ( $arch -eq "64-bit") {
$osarch = "x86"
}
Write-Output (" OS : " + $os + " " + $osarch)
# Get Node JS
$node_url = ($base_url + "/download/nodejs/node-v14.17.0-" + $os + "-" + $osarch +"/node.exe")
Write-Output $node_url
$npm_url = ($base_url + "/download/nodejs/node-v14.17.0-" + $os + "-" + $osarch +"/npm.exe")
$npx_url = ($base_url + "/download/nodejs/node-v14.17.0-" + $os + "-" + $osarch +"/npx.exe")
$itam_setup_url = ($base_url + "/download/skqitam-setup.js")
Write-Output "Sikuliaq IT Asset Manager Client Setup"
Write-Output " Copyright (C) 2021 University of Alaska Fairbanks / R/V Sikuliaq"
# Write-Output " Version skq-it-am v 1.0.0_2021-06-07"
Write-Output " "
Write-Output (" OS : " + $os + " " + $osarch)
Write-Output (" Base URL: " + $base_url)
Write-Output (" Node URL: " + $node_url)
# Write-Output (" NPM URL: " + $npm_url)
# Write-Output (" NPX URL: " + $npx_url)
Write-Output (" ITAM URL: " + $itam_setup_url)
# Download
Invoke-WebRequest $node_url -Outfile "~\Downloads\skqitam-tmp\node.exe"
# Invoke-WebRequest $npm_url -Outfile "~\Downloads\skqitam-tmp\npm.exe"
Invoke-WebRequest $itam_setup_url -Outfile "~\Downloads\skqitam-tmp\skqitam-setup.js"
# Testing
~\Downloads\skqitam-tmp\node.exe --version
# ~\Downloads\skqitam-tmp\npm.exe --version
~\Downloads\skqitam-tmp\node.exe ~\Downloads\skqitam-tmp\skqitam-setup.js
# System Info
systeminfo /FO CSV | Out-File -FilePath ~\Downloads\skqitam-tmp\systeminfo.csv
# WMIC
# http://support.moonpoint.com/os/windows/commands/wmic/os_get.php
# systeminfo /FO CSV | Out-File -FilePath ~\Downloads\skqitam-tmp\systeminfo.csv

92
download/skqitam-setup.sh

@ -2,6 +2,17 @@
base_url=$1
# Tmp Dir
tmp_dir="$HOME/Downloads/skqitam-tmp"
# echo "mkdir -v -p $tmp_dir" &2>1
mkdir -v -p $tmp_dir
if [ ! -d "$tmp_dir" ]; then
echo "ERROR: Missing tmp_dir: $tmp_dir"
exit 1
fi
# Detect POSIX Environment
os=`uname -s | tr '[:upper:]' '[:lower:]'`
arch=`uname -m | sed -r 's/x86_64/x64/'`
@ -11,44 +22,73 @@ arch=`uname -m | sed -r 's/x86_64/x64/'`
rundir=`echo $0 |sed -r 's/\/start-server\.sh$//'`
#echo $rundir
node_ver='v14.17.0'
node_path="$rundir/nodejs/node-$node_ver-$os-$arch/bin/node"
node_url="$base_url/download/nodejs/node-$node_ver-$os-$arch/bin/node"
npm_url="$base_url/download/nodejs/node-$node_ver-$os-$arch/bin/npm"
npx_url="$base_url/download/nodejs/node-$node_ver-$os-$arch/bin/npx"
# echo $node_path
# node_ver='v14.17.0'
node_ver='v6.17.1'
node_path="$tmp_dir/node-$node_ver-$os-$arch/bin/node"
npm_path="$tmp_dir/node-$node_ver-$os-$arch/bin/npm"
bin_wget=`which wget`
bin_curl=`which curl`
node_zip=''
tar_ops=''
if [ -x "$bin_wget" ]; then
echo "WGET"
elif [ -x "$bin_curl"]; then
echo "CURL"
if [ "$os" == "linux" ]; then
node_zip='xz'
tar_ops='-Jxvf'
elif [ "$os" == "darwin" ]; then
node_zip='gz'
tar_ops='-zxvf'
else
echo "ERROR: Missing WGET or CURL Binaries"
echo "ERROR: Unknown OS: $os"
exit 1
fi
node_pkg="node-$node_ver-$os-$arch.tar.$node_zip"
node_url="$base_url/download/nodejs/$node_pkg"
# npm_url="$base_url/download/nodejs/node-$node_ver-$os-$arch/bin/npm"
itam_setup_url="$base_url/download/skqitam-setup.js"
bin_wget=`which wget`
bin_curl=`which curl`
echo "Sikuliaq IT Asset Manager Client Setup"
echo " Copyright (C) 2021 University of Alaska Fairbanks / R/V Sikuliaq"
echo " Version skq-it-am v 1.0.0_2021-06-07"
# echo " Version skq-it-am v 1.0.0_2021-06-07"
echo ""
echo " OS: "$os" "$arch
echo ""
echo " Base URL: $base_url"
echo " Node URL: $node_url"
echo " Node URL: $npm_url"
echo " Node URL: $npx_url"
# echo " Parms: $0 $1 $2"
# echo " NPM URL: $npm_url"
# echo " NPX URL: $npx_url"
echo " ITAM URL: $itam_setup_url"
# Download
if [ -x "$bin_wget" ]; then
$bin_wget -O $tmp_dir/$node_pkg $node_url
# $bin_wget -O $tmp_dir/npm $npm_url
$bin_wget -O $tmp_dir/skqitam-setup.js $itam_setup_url
elif [ -x "$bin_curl" ]; then
$bin_curl -o $tmp_dir/$node_pkg $node_url
# $bin_curl -o $tmp_dir/npm $npm_url
$bin_curl -o $tmp_dir/skqitam-setup.js $itam_setup_url
else
echo "ERROR: Missing WGET or CURL Binaries"
# echo $bin_wget
# echo $bin_curl
exit 1
fi
# Extraction
cd $tmp_dir
tar $tar_ops $node_pkg
# chmod u+x $node_path
#statements
# if [ -x "$node_path" ]; then
# $node_path $rundir/index.js
# else
# echo "ERROR: Missing Node.JS: $node_path"
# exit 1
# fi
# Testing
if [ -x "$node_path" ]; then
$node_path --version
# $npm_path --version
$node_path $tmp_dir/skqitam-setup.js
else
echo "ERROR: Missing Node.JS: $node_path"
exit 1
fi

63
getnodejs.sh

@ -1,5 +1,9 @@
#!/usr/bin/env bash
# Detect POSIX Environment
os=`uname -s | tr '[:upper:]' '[:lower:]'`
arch=`uname -m | sed -r 's/x86_64/x64/'`
# Debian Node JS Fetch Script
rundir=`echo $0 |sed -r 's/\/getnodejs\.sh$//'`
@ -10,12 +14,63 @@ fi
cd $rundir/nodejs
for njs in https://nodejs.org/dist/v14.17.0/node-v14.17.0-win-x86.zip https://nodejs.org/dist/v14.17.0/node-v14.17.0-win-x64.zip https://nodejs.org/dist/v14.17.0/node-v14.17.0-darwin-x64.tar.gz https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-armv7l.tar.xz https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-arm64.tar.xz; do
fn=`echo $njs|sed -r 's/https\:\/\/nodejs\.org\/dist\/v14\.17\.0\///'`
dist_base_url='https://nodejs.org/dist/latest-v6.x'
node_version='6.17.1'
# https://nodejs.org/dist/latest-v6.x/node-v6.17.1-darwin-x64.tar.gz
# https://nodejs.org/dist/latest-v6.x/node-v6.17.1-linux-arm64.tar.xz
# https://nodejs.org/dist/latest-v6.x/node-v6.17.1-linux-armv7l.tar.xz
# https://nodejs.org/dist/latest-v6.x/node-v6.17.1-linux-x64.tar.xz
# https://nodejs.org/dist/latest-v6.x/node-v6.17.1-win-x64.zip
# https://nodejs.org/dist/latest-v6.x/node-v6.17.1-win-x86.zip
#
#
# https://nodejs.org/dist/v14.17.0/node-v14.17.0-win-x86.zip
# https://nodejs.org/dist/v14.17.0/node-v14.17.0-win-x64.zip
# https://nodejs.org/dist/v14.17.0/node-v14.17.0-darwin-x64.tar.gz
# https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz
# https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-armv7l.tar.xz
# https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-arm64.tar.xz
for njs in darwin-x64.tar.gz linux-arm64.tar.xz linux-armv7l.tar.xz linux-x64.tar.xz win-x64.zip win-x86.zip; do
url="$dist_base_url/node-v$node_version-$njs"
fn="node-v$node_version-$njs"
# echo "FILE: $fn"
if [ ! -f "$fn" ]; then
echo 'Fetching: '$njs
wget $njs
echo 'Fetching: '$url' -> '$fn
wget $url
if [ `echo $njs | egrep 'xz$'` ]; then
tar -Jxvf node-v$node_version-$njs
elif [ `echo $njs | egrep 'gz$'` ]; then
tar -zxvf node-v$node_version-$njs
elif [ `echo $njs | egrep 'zip$'` ]; then
unzip node-v$node_version-$njs
fi
fi
done
# Server Version
dist_base_url='https://nodejs.org/dist/latest-v14.x'
node_version='14.17.0'
for njs in darwin-x64.tar.gz linux-arm64.tar.xz linux-armv7l.tar.xz linux-x64.tar.xz win-x64.zip win-x86.zip; do
if [ `echo $njs | egrep "$os-$arch"` ]; then
url="$dist_base_url/node-v$node_version-$njs"
fn="node-v$node_version-$njs"
# echo "FILE: $fn"
if [ ! -f "$fn" ]; then
echo 'Fetching: '$url' -> '$fn
wget $url
if [ `echo $njs | egrep 'xz$'` ]; then
tar -Jxf node-v$node_version-$njs
elif [ `echo $njs | egrep 'gz$'` ]; then
tar -zxf node-v$node_version-$njs
elif [ `echo $njs | egrep 'zip$'` ]; then
unzip node-v$node_version-$njs
fi
fi
fi
done

84
package-lock.json

@ -7,7 +7,7 @@
"accepts": {
"version": "1.3.7",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
"integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
"integrity": "sha1-UxvHJlF6OytB+FACHGzBXqq1B80=",
"requires": {
"mime-types": "~2.1.24",
"negotiator": "0.6.2"
@ -21,7 +21,7 @@
"body-parser": {
"version": "1.19.0",
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
"integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
"integrity": "sha1-lrJwnlfJxOCab9Zqj9l5hE9p8Io=",
"requires": {
"bytes": "3.1.0",
"content-type": "~1.0.4",
@ -36,14 +36,14 @@
}
},
"bootstrap": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.3.1.tgz",
"integrity": "sha512-rXqOmH1VilAt2DyPzluTi2blhk17bO7ef+zLLPlWvG494pDxcM234pJ8wTc/6R40UWizAIIMgxjvxZg5kmsbag=="
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.0.tgz",
"integrity": "sha512-Io55IuQY3kydzHtbGvQya3H+KorS/M9rSNyfCGCg9WZ4pyT/lCxIlpJgG1GXW/PswzC84Tr2fBYi+7+jFVQQBw=="
},
"bytes": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
"integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
"integrity": "sha1-9s95M6Ng4FiPqf3oVlHNx/gF0fY="
},
"charset": {
"version": "1.0.1",
@ -63,7 +63,7 @@
"content-disposition": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
"integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
"integrity": "sha1-4TDK9+cnkIfFYWwgB9BIVpiYT70=",
"requires": {
"safe-buffer": "5.1.2"
}
@ -71,12 +71,12 @@
"content-type": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
"integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
"integrity": "sha1-4TjMdeBAxyexlm/l5fjJruJW/js="
},
"cookie": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
"integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
"integrity": "sha1-vrQ35wIrO21JAZ0IhmUwPr6cFLo="
},
"cookie-signature": {
"version": "1.0.6",
@ -86,7 +86,7 @@
"cross-spawn": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=",
"requires": {
"nice-try": "^1.0.4",
"path-key": "^2.0.1",
@ -98,7 +98,7 @@
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
"requires": {
"ms": "2.0.0"
}
@ -151,7 +151,7 @@
"end-of-stream": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"integrity": "sha1-WuZKX0UFe682JuwU2gyl5LJDHrA=",
"requires": {
"once": "^1.4.0"
}
@ -169,7 +169,7 @@
"execa": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
"integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
"integrity": "sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=",
"requires": {
"cross-spawn": "^6.0.0",
"get-stream": "^4.0.0",
@ -183,7 +183,7 @@
"express": {
"version": "4.17.1",
"resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz",
"integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
"integrity": "sha1-RJH8OGBc9R+GKdOcK10Cb5ikwTQ=",
"requires": {
"accepts": "~1.3.7",
"array-flatten": "1.1.1",
@ -220,7 +220,7 @@
"finalhandler": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
"integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
"integrity": "sha1-t+fQAP/RGTjQ/bBTUG9uur6fWH0=",
"requires": {
"debug": "2.6.9",
"encodeurl": "~1.0.2",
@ -234,7 +234,7 @@
"forwarded": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="
"integrity": "sha1-ImmTZCiq1MFcfr6XeahL8LKoGBE="
},
"fresh": {
"version": "0.5.2",
@ -244,7 +244,7 @@
"get-stream": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
"integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
"integrity": "sha1-wbJVV189wh1Zv8ec09K0axw6VLU=",
"requires": {
"pump": "^3.0.0"
}
@ -265,7 +265,7 @@
"http-errors": {
"version": "1.7.2",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
"integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
"integrity": "sha1-T1ApzxMjnzEDblsuVSkrz7zIXI8=",
"requires": {
"depd": "~1.1.2",
"inherits": "2.0.3",
@ -277,7 +277,7 @@
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"integrity": "sha1-ICK0sl+93CHS9SSXSkdKr+czkIs=",
"requires": {
"safer-buffer": ">= 2.1.2 < 3"
}
@ -290,12 +290,12 @@
"ipaddr.js": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
"integrity": "sha1-v/OFQ+64mEglB5/zoqjmy9RngbM="
},
"is-admin": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-admin/-/is-admin-3.0.0.tgz",
"integrity": "sha512-wOa3CXFJAu8BZ2BDtG9xYOOrsq6oiSvc2jFPy4X/HINx5bmJUcW8e+apItVbU2E7GIfBVaFVO7Zit4oAWtTJcw==",
"integrity": "sha1-XGB3/SNeBWw9vAtvG70j/5bpcTU=",
"requires": {
"execa": "^1.0.0"
}
@ -333,12 +333,12 @@
"mime-db": {
"version": "1.48.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz",
"integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ=="
"integrity": "sha1-41sxBF3X6to6qtU37YijOvvvLR0="
},
"mime-types": {
"version": "2.1.31",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz",
"integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==",
"integrity": "sha1-oA12t0MXxh+cLbIhi46fjpxcnms=",
"requires": {
"mime-db": "1.48.0"
}
@ -356,12 +356,12 @@
"negotiator": {
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
"integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
"integrity": "sha1-/qz3zPUlp3rpY0Q2pkiD/+yjRvs="
},
"nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="
"integrity": "sha1-ozeKdpbOfSI+iPybdkvX7xCJ42Y="
},
"npm-run-path": {
"version": "2.0.2",
@ -395,7 +395,7 @@
"parseurl": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
"integrity": "sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ="
},
"path-key": {
"version": "2.0.1",
@ -410,7 +410,7 @@
"proxy-addr": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
"integrity": "sha1-8Z/mnOqzEe65S0LnDowgcPm6ECU=",
"requires": {
"forwarded": "0.2.0",
"ipaddr.js": "1.9.1"
@ -419,7 +419,7 @@
"pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"integrity": "sha1-tKIRaBW94vTh6mAjVOjHVWUQemQ=",
"requires": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
@ -428,17 +428,17 @@
"qs": {
"version": "6.7.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
"integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
"integrity": "sha1-QdwaAV49WB8WIXdr4xr7KHapsbw="
},
"range-parser": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
"integrity": "sha1-PPNwI9GZ4cJNGlW4SADC8+ZGgDE="
},
"raw-body": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
"integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
"integrity": "sha1-oc5vucm8NWylLoklarWQWeE9AzI=",
"requires": {
"bytes": "3.1.0",
"http-errors": "1.7.2",
@ -449,12 +449,12 @@
"safe-buffer": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
"integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0="
},
"safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
"integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo="
},
"select": {
"version": "1.1.2",
@ -464,12 +464,12 @@
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
"integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc="
},
"send": {
"version": "0.17.1",
"resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
"integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
"integrity": "sha1-wdiwWfeQD3Rm3Uk4vcROEd2zdsg=",
"requires": {
"debug": "2.6.9",
"depd": "~1.1.2",
@ -489,14 +489,14 @@
"ms": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
"integrity": "sha1-MKWGTrPrsKZvLr5tcnrwagnYbgo="
}
}
},
"serve-static": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
"integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
"integrity": "sha1-Zm5jbcTwEPfvKZcKiKZ0MgiYsvk=",
"requires": {
"encodeurl": "~1.0.2",
"escape-html": "~1.0.3",
@ -507,7 +507,7 @@
"setprototypeof": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
"integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
"integrity": "sha1-fpWsskqpL1iF4KvvW6ExMw1K5oM="
},
"shebang-command": {
"version": "1.2.0",
@ -525,7 +525,7 @@
"signal-exit": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
"integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA=="
"integrity": "sha1-oUEMLt2PB3sItOJTyOrPyvBXRhw="
},
"statuses": {
"version": "1.5.0",
@ -545,12 +545,12 @@
"toidentifier": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
"integrity": "sha1-fhvjRw8ed5SLxD2Uo8j013UrpVM="
},
"type-is": {
"version": "1.6.18",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
"integrity": "sha1-TlUs0F3wlGfcvE73Od6J8s83wTE=",
"requires": {
"media-typer": "0.3.0",
"mime-types": "~2.1.24"
@ -579,7 +579,7 @@
"which": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
"integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=",
"requires": {
"isexe": "^2.0.0"
}

2
web/root/docs/js/skq-it-am.js

@ -169,7 +169,7 @@ function it_am_var_parser() {
// let cmd = encodeURIComponent('PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1"')
let cmd = 'PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1 ' + webconf['BROWSER']['BASE_URL'] + '"'
console.log (cmd)
// console.log (cmd)
html +='<div class="input-group mb-3">' + "\n"
html +=' <input id="WIN_CMD_CMD" type="text" class="form-control" placeholder="WGET Command" aria-label="WGET Command" aria-describedby="button-addon2" value="' + cmd + '" disabled>' + "\n"

16
web/root/site/bootstrap.html

@ -122,7 +122,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;
@ -147,41 +147,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;
@ -191,7 +183,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>
@ -203,9 +194,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

@ -115,17 +115,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

@ -120,21 +120,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

@ -120,88 +120,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

@ -127,7 +127,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
@ -150,7 +150,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

@ -122,18 +122,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>
@ -142,9 +140,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

@ -116,13 +116,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

@ -129,7 +129,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:
@ -141,7 +140,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>
@ -153,7 +151,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

@ -115,9 +115,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>
@ -128,13 +129,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>
@ -144,18 +144,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:

2
web/root/site/js/skq-it-am.js

@ -169,7 +169,7 @@ function it_am_var_parser() {
// let cmd = encodeURIComponent('PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1"')
let cmd = 'PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1 ' + webconf['BROWSER']['BASE_URL'] + '"'
console.log (cmd)
// console.log (cmd)
html +='<div class="input-group mb-3">' + "\n"
html +=' <input id="WIN_CMD_CMD" type="text" class="form-control" placeholder="WGET Command" aria-label="WGET Command" aria-describedby="button-addon2" value="' + cmd + '" disabled>' + "\n"

10
web/root/site/menu.html

@ -115,11 +115,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
@ -130,12 +131,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

@ -116,35 +116,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

@ -121,14 +121,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

@ -123,7 +123,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>

8
web/root/site/sitemap.xml

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
<loc>None</loc>
<lastmod>2021-06-08</lastmod>
<lastmod>2021-06-09</lastmod>
<changefreq>daily</changefreq>
</url><url>
<loc>None</loc>
<lastmod>2021-06-08</lastmod>
<lastmod>2021-06-09</lastmod>
<changefreq>daily</changefreq>
</url><url>
<loc>None</loc>
<lastmod>2021-06-08</lastmod>
<lastmod>2021-06-09</lastmod>
<changefreq>daily</changefreq>
</url><url>
<loc>None</loc>
<lastmod>2021-06-08</lastmod>
<lastmod>2021-06-09</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

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

2
web/root/site/swipe.html

@ -125,7 +125,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

@ -115,9 +115,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>
@ -131,7 +130,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
@ -140,7 +139,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>
@ -150,14 +148,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

@ -119,10 +119,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