Giter Site home page Giter Site logo

site-build's Introduction

OpenSeadragon Site-Build

This project compiles static web pages which provide the examples and documentation for using OpenSeadragon.

On the Web

http://openseadragon.github.io/

First Time Setup

All command-line operations are scripted using Grunt which is based on Node.js. To get set up:

  1. Install Node, if you haven't already (available at the link above)
  2. Install the Grunt command line runner (if you haven't already); on the command line, run npm install -g grunt-cli
  3. Clone the site-build repository
  4. On the command line, go in to the site-build folder
  5. Run npm install

You're set... continue reading for build and test instructions.

Building the Web Pages

To build, just run (on the command line, in the site-build folder):

grunt build

The built website will appear in site-build/build.

If you want to try the site out in your browser, you can run:

grunt connect watch

This will run a server at http://localhost:9000/.

Building the Docs

grunt doc

... will build the docs into the local build folder.

Publishing

To publish, run:

grunt publish

This cleans out the openseadragon.github.com folder (which you've cloned from the openseadragon.github.com repository, and resides next to your site-build folder) and builds and copies the web pages and docs into it.

Note that while the OpenSeadragon website resides at http://openseadragon.github.io, for historical reasons the repository is named openseadragon.github.com.

Example Images

If you want to see the website with the appropriate example images, clone the example-images repository into site-build/build and check out its gh-pages branch.

site-build's People

Contributors

abrlam avatar aiosa avatar altert avatar avandecreme avatar bgilbert avatar bpirih avatar daniel-km avatar dependabot[bot] avatar harshalitalele avatar houseofyin avatar iangilman avatar jmlatgpixel avatar joedf avatar kittarlin avatar lizdominguez avatar mindfreeze avatar msalsbery avatar nicolas-heigvd avatar patrickheck avatar regisrob avatar thatcher avatar thejohnhoffer avatar tmund avatar tokee avatar tuvia-ru avatar ventero avatar verrochi92 avatar wasmachensachen avatar zero41120 avatar zfox23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

site-build's Issues

Build improvements

  • Pull version number out of openseadragon.js, so we don't have multiple copies of that variable (currently stored in build.properties).
  • Switch to Grunt so we're all using the same system?

General page on the technology and history of OpenSeadragon

Create a "so you're migrating from Seadragon Ajax" page

We seem to be getting a bunch of interest from people who are already using Seadragon Ajax and they want to upgrade to OpenSeadragon. We should give them a page with clear instructions highlighting the differences and showing them how to quickly make the change.

@thatcher you know better than I what these differences are, so maybe you could start this? If you want I'm happy to finish it up and get it on the site.

Site footer

Just something small and consistent across the site. Should contain the same nav links that are up at the top.

Favicon

Presumably based on the logo we're using for the Twitter account.

Better handling of jsdoc in our build process

I almost have the new Grunt-based build working in the site-build repository, and will be checking it in shortly. Everything's moved over to Grunt vernacular, except jsdoc; with that I just punted and am using Ant to build it. Hopefully we can address this in the future.

I tried using https://github.com/krampstudio/grunt-jsdoc-plugin, but I couldn't get it to work (I can post the command line errors here if they would be useful to someone).

Next I tried using Grunt's spawn command to run our existing jsdoc on the command line, but I don't know that much about Java, so I couldn't figure out how to convert Ant's java command into something that would work on the command line... can anyone tell me how to convert this into straight command line?

    <java jar="jsdoc/jsrun.jar" 
          fork="true">
        <arg value="jsdoc/app/run.js"/>
        <arg value="openseadragon/openseadragon.js"/>
        <arg value="--template=jsdoc/openseadragon"/>
        <arg value="--directory=${BUILD}/docs"/>
        <arg value="--verbose"/>
    </java>

Of course I'm open to other options as well, including other jsdoc libraries, or even other documentation tools (assuming the migration path is smooth).

Redirect for EventHandler

@msalsbery, just a quick follow-up to #33: could you add one more redirect, so /docs/symbols/OpenSeadragon.EventHandler.html redirects to /docs/OpenSeadragon.EventSource.html?

Getting started or FAQ

I've received a bit of help implementing OpenSeadragon by asking questions here on GitHub -- and it dawned on me that perhaps there could be some extension to the getting started page, or frequently asked questions page for first-time users like myself. I've cloned down the site-build repo to make some changes myself, but I don't want step on anyone's toes. Would this sort of contribution be welcome from a first-time user? Are there any existing plans for this sort of feature, or anyone else already working on it?

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.