GithubHelp home page GithubHelp logo

javier / redis-doc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redis/redis-doc

0.0 3.0 0.0 2.18 MB

Redis documentation source code for markdown and metadata files, conversion scripts, and so forth

redis-doc's Introduction

Redis documentation

Clients

All clients are listed in the clients.json file. Each key in the JSON object represents a single client library. For example:

"Rediska": {

  # A programming language should be specified.
  "language": "PHP",

  # If the project has a website of its own, put it here.
  # Otherwise, lose the "url" key.
  "url": "http://rediska.geometria-lab.net",

  # A URL pointing to the repository where users can
  # find the code.
  "repository": "http://github.com/Shumkov/Rediska",

  # A short, free-text description of the client.
  # Should be objective. The goal is to help users
  # choose the correct client they need.
  "description": "A PHP client",

  # An array of Twitter usernames for the authors
  # and maintainers of the library.
  "authors": ["shumkov"]

}

Commands

Redis commands are described in the commands.json file.

For each command there's a Markdown file with a complete, human-readable description. We process this Markdown to provide a better experience, so some things to take into account:

  • Inside text, all commands should be written in all caps, in between backticks. For example: INCR.

  • You can use some magic keywords to name common elements in Redis. For example: @multi-bulk-reply. These keywords will get expanded and auto-linked to relevant parts of the documentation.

There should be at least two predefined sections: description and return value. The return value section is marked using the @return keyword:

Returns all keys matching the given pattern.

@return

@multi-bulk-reply: all the keys that matched the pattern.

Styling guidelines

Please use the following formatting rules:

  • Wrap lines to 80 characters.
  • Start every sentence on a new line.

Luckily, this repository comes with an automated Markdown formatter. To only reformat the files you have modified, first stage them using git add (this makes sure that your changes won't be lost in case of an error), then run the formatter:

$ rake format:cached

The formatter has the following dependencies:

  • Redcarpet
  • Nokogiri
  • The par tool

Installation of the Ruby gems:

gem install redcarpet nokogiri

Installation of par (OSX):

brew install par

Installation of par (Ubuntu):

sudo apt-get install par

Checking your work

Once you're done, the very least you should do is make sure that all files compile properly. You can do this by running Rake inside your working directory.

$ rake parse

Additionally, if you have Aspell installed, you can spell check the documentation:

$ rake spellcheck

Exceptions can be added to ./wordlist.

redis-doc's People

Contributors

antirez avatar pietern avatar djanowski avatar dspezia avatar soveran avatar shawnmilo avatar joedevon avatar charsyam avatar rsanheim avatar badboy avatar melo avatar huangzworks avatar justincase avatar michael-grunder avatar whilp avatar spullara avatar poincare avatar inkel avatar jjaffeux avatar uglide avatar slestak avatar stefankjartansson avatar sethwklein avatar sasanrose avatar santosh79 avatar ph2734 avatar eskatos avatar pashields avatar nparry avatar mjackson avatar

Watchers

javier ramírez avatar James Cloos 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.