https://github.com/zotero/styles-repo
Zotero styles page
https://github.com/zotero/styles-repo
Last synced: about 1 year ago
JSON representation
Zotero styles page
- Host: GitHub
- URL: https://github.com/zotero/styles-repo
- Owner: zotero
- Created: 2012-09-06T16:46:59.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2024-05-08T10:15:51.000Z (about 2 years ago)
- Last Synced: 2024-05-08T11:29:39.966Z (about 2 years ago)
- Language: PHP
- Homepage: http://www.zotero.org/styles
- Size: 957 KB
- Stars: 11
- Watchers: 6
- Forks: 12
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Installation
------------
cp include/config.inc.php-sample include/config.inc.php
cd scripts
Extract Trang binary to current directory:
wget http://jing-trang.googlecode.com/files/trang-20081028.zip
unzip -ej trang-20081028.zip trang-20081028/trang.jar
rm trang-20081028.zip
Install other prerequisites:
* apache2
* php5, php5-curl
* java
* xmllint (part of libxml2-utils package)
* [citeproc-node](https://github.com/zotero/citeproc-node)
Configure apache2
* In addition to the default setup, the following modules must be enabled:
* mod_rewrite
* mod_expires
* Apache must be configured to allow overrides of the following options in .htaccess
* MultiViews
Run setup scripts:
./fetch-schema
./generate-index
./generate-previews
./generate-json
Set generate-index, generate-previews and generate-json to run periodically via cron.
The main page for the style repository is "/htdocs/styles.php". Configure paths and citeproc URL in "/include/config.inc.php"
Frontend
--------
To work on the frontend of the application run `npm install` followed by `npm start` inside the **frontend** directory. This will generate development version of the frontend library with additional metrics and debug infromation. These files should not be checked in into the repository, instead use `npm run build` to produce distribution ready files.