You can use this project to generate a cd-rom for your conference.
You can see screnshots of a generated cd-rom at:
We have 3 entities:
- engine to read the data
- datasource
- eruby template to generate the presentation page of the cd-rom
For now, only one engine was implemented:
- simple-cd: reads data from csv files.
-
ruby
-
gem install --remote erubis
All this instructions assume you are using
mkdir ~/cd-roms
cd ~/cd-roms
git clone https://github.com/edusantana/cd-rom-for-conferences
Create a cd-rom structure from jquery-ui ziped file:
cd ~/cd-roms
wget https://github.com/edusantana/cd-rom-for-conferences/raw/master/jquery/jquery-ui-1.10.3.custom.zip
unzip jquery-ui-1.10.3.custom.zip
mv jquery-ui-1.10.3.custom my-conference-cd-rom
This instructions will create a directory my-conference-cd-rom
that will
be the root the cd-rom.
cd ~/cd-roms/cd-rom-for-conferences/simple-cd
ruby simple-cd.rb < templates/gepad.eruby > ~/cd-roms/my-conference-cd-rom/intro.html
Open ~/cd-roms/my-conference-cd-rom/intro.html
and see what was generated.
NOTE: This page (template) was written in portuguese and using utf-8 encoding.
Let's add some data to submission datasource::
cd ~/cd-roms/cd-rom-for-conferences/simple-cd
echo -e "article\tfiles/my-conference-article-01.pdf\toriginal filename.docx\tMy article\tMusic\tAbastract about this\tJohn Lenon\tMichel Jackson\tLuiz Gonzaga" >> submissions.csv
Generate the presentation file again:
ruby simple-cd.rb < templates/gepad.eruby > ~/cd-roms/my-conference-cd-rom/intro.html
Open intro.html
and see that a submission was added at the end of the page.
TIP: To understand this data, look at * simple-cd README.
Open gepad.eruby
and save it as your template my-conference.eruby
, and run the
engine with your template.
You can (and it is recommended) select/edit your own jqueryui theme.
Unzip the downloaded file and rename the folder as indicated at "Create a cd-rom structure".
Open index.html
from jquery and find these lines:
<link href="css/start/jquery-ui-1.10.3.custom.css" rel="stylesheet">
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery-ui-1.10.3.custom.js"></script>
DON'T USE the above line, use the lines from your index.html
. Use those lines
to update your template.
Create a copy of simple-cd
and create your own engine for generate the cd-rom.
- You can submit templates at
simple-cd/templates
- You can create and submit other engine (like
simple-cd
andsimple-cd.rb
)