Getting Started with Development
The Open Library website makes heavy use of jQuery libraries.
vendor.js and third party libraries
static/build/vendor.js is generated by combining these
static/build/vendor.js are specified in
a shell script
To include a new third-party library:
Add that library in vendor/js in the repository
Add an entry in static/js/vendor.jsh
$ make js
Commit vendor.jsh and the library added to the repository
The order in which these files are included is determined by the sort order of the names. In general, it is a bad idea to depend on the order of files loaded.
make js to regenerate
Working with CSS
All stylesheets are in
static/css. They are combined to generate
build/css/all.css, which is included in all the web pages.
It's a good idea to break CSS into multiple logical files, instead of putting it in one monolithic file.
If you make changes to any CSS, run
make css to regenerate