Browse Source

pull documentation

master
Nils 4 years ago
parent
commit
be11aa3a86
  1. 7
      generate.bash
  2. 4
      projectinfo2modulepage.py
  3. 2
      static/documentation/README.md

7
generate.bash

@ -13,7 +13,6 @@ echo Running from "$ROOTPATH"
#Create initial structure and data-set
mkdir temp || true #in .gitignore . Make dir, ignore fail if exists for set -e
mkdir -p "out/images" || true #in .gitignore . Make dir, ignore fail if exists for set -e
rm -rf out/
cp -r static out
cd temp
@ -39,6 +38,12 @@ do
done
cd "$ROOTPATH" #reset for next step
#Documentation, just a copy
for PROJECT in ${PROJECTS[*]}
do
cp -r "temp/$PROJECT/documentation/out" "out/documentation/$PROJECT"
cp "static/images/$PROJECT.png" "out/documentation/$PROJECT/logo.png"
done
#Generate Menu. n^2 loop. For each project all projects
for PROJECT in ${PROJECTS[*]}

4
projectinfo2modulepage.py

@ -40,9 +40,9 @@ template = f"""<div id="main">
<ul>
<li>Current Version: {META["version"]} ({META["year"]})</li>
<li>Multi-Language <a href="/documentation/{META["shortName"]}">Manual</a></li>
<li>Multi-Language <a href="/documentation/{META["shortName"]}/">Manual</a></li> <!-- The trailing slash is very important. Otherwise it won't find the images-->
<li>Download: <a href="/downloads/{META["shortName"]}-{META["version"]}.tar.gz">Sourcecode</a> or <a href="/downloads">All Downloads</a></li>
<li>Bugs and Issues: <a href="https://www.laborejo.org/bugs">https://www.laborejo.org/bugs</a>
<li>Bugs and Issues: <a href="https://www.laborejo.org/bugs">https://www.laborejo.org/bugs/</a>
<li>Git and Developers README: <a href="http://git.laborejo.org/lss/{META["shortName"]}.git">https://git.laborejo.org/lss/{META["shortName"]}.git</a></li>
</ul>

2
static/documentation/README.md

@ -0,0 +1,2 @@
The generator script pulls in the pre-built documentation from each git.
Since each program has a built-in documentation viewer, a minimal browser, this is already in the right format.
Loading…
Cancel
Save