Coder Social home page Coder Social logo

docs's Introduction

GRAKN.AI Documentation

Code Triagers Badge

Dependencies

You need to install the following dependencies to be able to build HTML pages in the documentation repository. NOTE: this is not necessary for updating the documentation itself.

  1. Bundle; you will need to install bundler through your package manager of choice.

    Arch Linux

    $ yaourt -S ruby-bundler
    

    OSX

    $ brew install bundler
    

    Ruby Gems (generic)

    $ gem install bundler
    
  2. Rake; this is used to automate the rest of the site building process.

    $ gem install rake
    

With rake installed you can now install all other dependencies:

$ rake dependencies

Environment variables

There is an environment variable that needs to be set depending on the build you wish to commence: urlprefix. If you only wish to preview the generated documentation itself; as server from this repository rather than integrated into the GRAKN.AI website you do not need to do anything.

urlprefix

For local builds (local web server with documentation only), do not set this variable, or make sure it has been cleared with:

$ export urlprefix=""

For integrating to GRAKN.AI website, or elsewhere set as needed. For example; www.grakn.ai/docs/

$ export urlprefix=/docs

Building

You can generate the documentation HTML by running the following in the repository top level.

$ rake build
      Generating...
                    done in 1.503 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
$

This will build the documentation site in _jekyll and create a symlink _site in the repository top level directory which will contain all the generated content.

Cleaning

Clean by running the following command in the repository top level:

$ rake clean

This will remove all generated files.

Serving

You can also build and server the generated HTML files in one command. A web server will be started listening on localhost (127.0.0.1) on port 4005

$ rake serve
    Server address: http://127.0.0.1:4005/
  Server running... press ctrl-c to stop.
$

You can now view the documentation by navigating your web browser to http://127.0.0.1:4005/

docs's People

Contributors

aelred avatar alexandraorth avatar bolerio avatar denislobanov avatar fppt avatar haikalpribadi avatar kasper-piskorski avatar marco-scoppetta avatar sklarman avatar stichbury avatar

Watchers

 avatar  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.