This is a documentation portal written in Ruby, using Sinatra for routing and CouchDB for content storage and searching. The UI is controlled by Twitter Bootstrap.
- Set up git
- Install RVM
- Install bundle
- Clone this project
- In that directory, run bundle install
- Install lessc and uglifyjs installed (the best way is to install them with npm, then
npm install -g less uglify-js
) - Add Bootstrap, version 2.3.2, and Font Awesome, as submodules with the following rake command
rake bootstrap:init
- Customize the files in
less/
. See http://lesscss.org/ for details on less. - Run
rake bootstrap:make
- Add the bootstrap files source control -
git add public/bootstrap
, thengit commit -m "Adding styling"
- If you have specific metadata requirements update
lib/db/db_transaction.rb
- Add you html files to content/lang-local/deliverable_name
- Create a deliverable_metadata.json file in content/lang-local/deliverable_name
- Create a deliverable_name.toc in content/lang-local/deliverable_name
- Set up couchdb
- Add lucene to couchdb
- Then run
rake update_local_db
- Review the log in log/upload_*.txt
- Then run
rake start_local
- If you want to auto-load local changes, instead of start_local, use
rake start_local_debug
- One time, initialize the project on heroku
rake initialize_heroku
- Push it to heroku
git push heroku master
- Push your content to the remote database
rake update_remote_db
- Review the log in log/upload_*.txt
© Copyright 2013 salesforce.com, inc.