Code Monkey home page Code Monkey logo

slash-developers's Introduction

slash-developers

Build Status

This repository contains the raw content for www.contentful.com/developers/

Usage

  1. There's a Makefile inside the apiary folder for dealing with the reference blueprints:
$ cd apiary/
$ make clean    # remove generated files
$ make install  # install the necessary tools
$ make preview  # generates local HTML for blueprints, shows them in a browser
$ make test     # tests the blueprints

Where appropriate, tests are run before the task is performed. The test use dredd to check the blueprint against the actual APIs. When changes are merged to master, they will be automatically published.

Note: to reduce manual duplication of content between the different blueprints, hercule is used for including content from _partials into the blueprints - the Makefile tasks take care of generating a full blueprint into the out directory, so make sure you are editing the actual sources, not the generated files.

  1. The rest of the documentation consists of Markdown files which will end up on the Contentful website, via a Git submodule in the marketing repository.

  2. To make the lists of SDKs and projects more maintainable, there's a script:

$ ./scripts/public_projects.rb

This will list all Contentful public GitHub repositories, which aren't referenced from the documentation.

Setting up the environment

  • For running the tests, the environment variable CONTENTFUL_MANAGEMENT_API_ACCESS_TOKEN needs to be set to a valid CMA token which has access to the testing space "<space_id>".
  • For using the Apiary gem, the environment variable APIARY_API_KEY needs to be set (see this for more information).

Tips on contributing

  • use branches & pull requests
  • All pull requests should be reviewed by somebody else before merging to master. Preferably they are reviewed by @chrischinchilla.
  • To actually make your changes appear on staging/production, follow this guide
  • Changes to the API blueprints are automatically published once they are merged to master.

Tests

The tests in this repository are using dredd to check that the examples defined in the docs actually work against the API. Generally this works by taking the URL template and example body, replacing all variables with the sample values and comparing the APIs response with the MSON defined for this request. Currently only GET requests are tested.

Note: The tests only affect the blueprint used for the documentation on Apiary. Files in the docs/ directory are not tested in any way.

Apiary customization

In order to understand how we include and theme the Apiary references, please see the apiary_customization.md file in the marketing website repository.

slash-developers's People

Contributors

benben avatar cschagen avatar danihodovic avatar dlitvakb avatar eugenekudashev avatar floelhoeffel avatar gaapt avatar grncdr avatar hollensteiner avatar hungryblank avatar jelz avatar khaledgarbaya avatar madtrick avatar mariobodemann avatar mrsteele avatar neonichu avatar npmcdn-to-unpkg-bot avatar realityking avatar roblinde avatar sdepold avatar stefanjudis avatar sunnaster avatar timbeyer avatar tolgaio avatar tomxor avatar trodrigues avatar zeusdeux 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.