-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
…oject file if it exists, Added link to online help, Completed user manual
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
all: http | ||
|
||
http: $(shell find jade) config.json | ||
./build.sh | ||
|
||
clean: | ||
rm -rf http jade/{manual,main,download}/{template,menu}.jade | ||
|
||
publish: http | ||
rsync -Lav http/ [email protected]:/var/www/openscam.org/http/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
declare -A PAGES | ||
|
||
PAGES[main]="about quick-start mission screenshots status donate community " | ||
PAGES[main]+="legal contact" | ||
PAGES[download]="current install run source debug previous" | ||
PAGES[manual]="overview projects simulation layout playback nc-files tools " | ||
PAGES[manual]+="workpiece export docks toolbars" | ||
|
||
# Create Menus | ||
for PAGE in ${!PAGES[@]}; do | ||
"$(dirname "$0")"/create_menu.sh $PAGE ${PAGES[$PAGE]} \ | ||
>jade/$PAGE/menu.jade | ||
done | ||
|
||
# Create Templates | ||
for PAGE in ${!PAGES[@]}; do | ||
"$(dirname "$0")"/create_template.sh $PAGE ${PAGES[$PAGE]} \ | ||
>jade/$PAGE/template.jade | ||
done | ||
|
||
mkdir -p http | ||
|
||
for PAGE in ${!PAGES[@]}; do | ||
TEMPLATE=jade/$PAGE/template.jade | ||
TARGET=http/$PAGE.html | ||
echo Building $TARGET from $TEMPLATE... | ||
jade -P -p $TEMPLATE -O "$(cat config.json)" <$TEMPLATE >$TARGET | ||
done | ||
|
||
jade -P <jade/notfound.jade >http/notfound.html | ||
|
||
ln -sf main.html http/index.html | ||
ln -sf ../css ../js ../images http/ | ||
|
||
touch http |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
pages: { | ||
main: { | ||
titleText: | ||
'<div><img src="images/banner.png" alt="OpenSCAM"/></div>', | ||
subtext: 'Open-Source Simulation & Computer Aided Machining', | ||
}, | ||
download: { | ||
titleText: "<h1>Downloads</h1>", | ||
subtext: 'OpenSCAM installers and packages.', | ||
}, | ||
manual: { | ||
titleText: "<h1>User's Manual</h1>", | ||
subtext: 'A guide to using OpenSCAM v0.2.1 or newer.', | ||
} | ||
}, | ||
version: '0.2.1 beta', | ||
repoURL: 'https://github.com/CauldronDevelopmentLLC/OpenSCAM', | ||
releases: [ | ||
['Windows', ['windows-128.png'], | ||
'windows-xp-32bit', 'openscam_0.2.1_x86.exe'], | ||
['Mac OS-X', ['osx-128.png'], | ||
'osx-10.6.4-64bit', 'openscam_0.2.1_x86_64.pkg'], | ||
['Debian Linux 64-bit', ['debian-128.png', 'mint-128.png'], | ||
'debian-testing-64bit', 'openscam_0.2.1_amd64.deb'], | ||
['Debian Linux 32-bit', ['debian-128.png', 'mint-128.png'], | ||
'debian-testing-32bit', 'openscam_0.2.1_i386.deb'], | ||
['Ubuntu Precise Penguin 64-bit', ['ubuntu-128.png'], | ||
'ubuntu-precise-64bit', 'openscam_0.2.1_amd64.deb'], | ||
['LinuxCNC 10.04', ['ubuntu-128.png'], | ||
'linuxcnc-10.04-32bit', 'openscam_0.2.1_i386.deb'] | ||
] | ||
} |