Coder Social home page Coder Social logo

adam3smith / csl-editor-demo-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from citation-style-language/csl-editor-demo-site

0.0 2.0 0.0 22.5 MB

Reference implementation of the CSL editor

Home Page: http://adam3smith.github.io/csl-editor-demo-site/

License: MIT License

HTML 54.29% JavaScript 41.28% Shell 4.43%

csl-editor-demo-site's Introduction

Reference implementation of the cslEdit library for searching and editing .csl (Citation Style Language) files

This web application allows users of CSL based reference managers to search for citation styles and edit them. It's still an alpha version, but the Visual Editor supports all the features of independent CSL styles (AFAIK) and it should be possible to do real work with it.

It is an implementation of the CSL editor library.

Play with it here: Citation Style Editor

Prerequisites

  • bash (on Windows, I recommend git bash included with msysgit)
  • git
  • Jekyll
  • Node.js 0.8.4 or later
  • Java runtime (optional - for running trang to convert the CSL schema)
  • Mail server (for sending feedback emails)

To Setup Development Version

  • Run git clone --recursive https://github.com/citation-style-editor/csl-editor-demo-site.git csl-demo to checkout the repo.

  • In the repo directory, run jekyll serve (optional: add --watch to automatically rebuild when source changes).

  • Point your browser to localhost:5001 to view the site locally.

  • Point your browser to localhost:5001/cslEditorLib/pages/unitTests.html to run the unit tests

To Deploy

This process creates a static HTML site with concatenated javascript files and cache busters on the URLs, and optionally pushes to the gh-pages branch, currently served by github at http://editor.citationstyles.org.

  • Run git clone --recursive https://github.com/citation-style-editor/csl-editor-demo-site.git csl-demo to checkout the repo.

  • From the repo directory, run ./deploy.sh $BUILD_DIR $GH_PAGES_REPO_DIR, where:

    • $BUILD_DIR is the name of the directory you wish to deploy to, relative to the parent of the current directory. All current contents of $BUILD_DIR will be removed!
    • $GH_PAGES_REPO_DIR (optional) is the name of a checked out csl-editor-demo-site repo directory, again relative to the parent of the current directory, which will be used to copy the built version and push the result to the gh-pages branch in github, which will automatically update the site at editor.citationstyles.org, the domain given in the CNAME file.
  • Point your browser to http://editor.citationstyles.org/cslEditorLib/pages/unitTests.html to run the unit tests

  • Point your browser to http://editor.citationstyles.org to view the deployed site

Customising the editor to integrate with your website or application

Create a fork of this csl-editor-demo-site repository and feel free to alter everything for your own needs except for the core library within the cslEditorLib git submodule.

Customisable features include:

  • Load/Save functions, see src/visualEditorPage.js
  • Navigation bar and feedback widget, see html/navigation.html

You can override these without touching cslEditorLib.

Customising the core library

See documentation for the core library code and it's API at the CSLEditorLib wiki.

If you fix bugs or otherwise improve the core cslEditorLib library, ensure the changes are not specific to your implementation and please issue a pull request so that everyone can benefit. Thanks!

csl-editor-demo-site's People

Contributors

adam3smith avatar cpina avatar rmzelle avatar steveridout avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.