Giter Club home page Giter Club logo

spid-tech-docs's Introduction

SPiD API Documentation Build Status

The SPiD API Documentation is a Clojure app that pulls information from the API itself and merges it with examples and meta-data stored in this repository. The site can be browsed/developed live, or exported to static files.

Up and running

  1. Install Leiningen

    1. Download the lein script
    2. Place it on your $PATH where your shell can find it (eg. ~/bin)
    3. Set it to be executable (chmod a+x ~/bin/lein)
    4. Run it (lein) and it will download the self-install package
  2. Fetch and run the web server

    git clone [email protected]:schibsted/spid-tech-docs.git
    cd spid-tech-docs
    lein ring server

    That should pop up a browser with the SPiD API documentation. Replace server with server-headless if you would prefer to open your own browser window.

Note: There's no need to restart the server after making changes.

Writing documentation

Check out the wiki. First time around? Start with the general overview.

You might also want to check out a summary of this wiki in presentation form, or even a video of that presentation.

Exporting the site

If you want a static export of the site, cd into the root of the project, then run:

lein build-site

The resulting site in ./dist is ready for use and can be scp-ed directly to a server. Note that it doesn't work well served from file:// because it uses absolute URLs. Just use python -m SimpleHTTPServer in the directory to set up a local web server for it.

Developing the site

The documentation is built in Clojure using various libraries. The main structure of the app is thoroughly described in Building static sites in Clojure with Stasis, a tutorial on building sites on the same basic principle.

Running the tests

You can run all the tests with ./run-integration-tests.sh, or you can start autotesting on a faster subset of the tests with ./autotest.sh

Note that nodejs is used to create SVG sequence diagrams. The latest compatible version of nodejs is 0.10.0. Use nvm to manage different versions of nodejs locally and make sure that you use version 0.10.0 when running the integration tests.

spid-tech-docs's People

Contributors

5orenso avatar afshin-rashid avatar alkemann avatar andersos avatar andreasmartinsax avatar cjohansen avatar claesb avatar danielbentes avatar emilva avatar grzegorzkurtyka avatar ivylotarev avatar joawan avatar lancerinf avatar linnhege avatar magdalena-gawel avatar magnars avatar mchlstckl avatar michalskinder avatar paalvibe avatar parapety avatar piotrknapik avatar robborow avatar soarez avatar stale-pettersen-schibsted avatar stonetwig avatar thogra avatar zamzterz avatar

Watchers

 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.