• Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    CSS
  • Created about 14 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The guides source. Build and push to https://github.com/sproutcore-guides/sproutcore-guides.github.com.

SproutCore Guides

These are the official guides for the SproutCore framework. You can see them live at the SproutCore Guides homepage.

This document contains a brief overview of how to contribute changes and additioins to the SproutCore Guides. For an in-depth explanation, see the Contributing Guide.

Getting the Source Code

  1. Fork the SproutCore Guides repository on GitHub.

  2. Clone the fork on to your local machine.

    $ git clone git://github.com/<yourname>/guides.git
  3. Add the main SproutCore Guides repository as a remote so you can fetch updates.

    $ cd guides
    $ git remote add upstream git://github.com/sproutcore/guides.git

Installing Prerequisites

The SproutCore guides use the Node-powered DocPad framework. In order to contribute to the guides, you will first need to install Node from http://nodejs.org/.

Next, install the docpad framework (note: you may need to use sudo for this):

$ npm install -g docpad

Finally, change into the guides directory and install the necessary development dependencies:

$ cd ~/my/dev/directory/sproutcore/guides
$ npm install

You should see a plethora of output similar to the following:

...
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/qs/0.6.5
npm http 304 https://registry.npmjs.org/commander/0.6.1
npm http 304 https://registry.npmjs.org/bal-util
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
...

Before Making Changes

Before you make any changes, you'll want to pull in any upstream changes and create a new topic branch for your changes.

$ git checkout master
$ git pull
$ git checkout -b <branchname>

Create the Avatar Cache

Our sproutdown plugin will attempt to cache the avatars so that we do not hit GitHub more than necessary. Run the following command to initialize the file.

echo '{}' > plugins/sproutdown/src/.avatar_cache.json

Creating or Modifying a Guide

Guides reside in the src directory and are written in a modified version of the Markdown markup language. The best way to familiarize yourself with how to use Markdown is to check out the other guides.

Docpad makes it easy to see what the guides on your local machine will look like when they're published to guides.sproutcore.com. To preview your changes, run the following command from the guides directory:

$ docpad run

Now point a web browser to localhost:9778. This preview will keep itself updated as you make changes to the guides; all you have to do is refresh your browser window to see your latest changes.

Submitting Your Changes

You can get your changes and additions included by creating a pull request on GitHub using the topic branch you created above.

Deploying a Release

In order to deploy a release, you'll need to have the sproutcore-guides.github.com repository checked out into a local directory. All you need to do is use DocPad to generate the guides, copy that to the checked out live repo and then commit and push. It should looks something like this:

./generate_production.sh
cd ../sproutcore-guides.github.com
git status
git commit -am "New release of guides..."
git push

More Information

For more information on the SproutCore Guides, including a more in depth look at committing your additions and changes, see the contributing guide.

If you have any questions, the team can be reached at @sproutcore on Twitter, in the #sproutcore IRC channel on Freenode, or at the SproutCore Google Group.

More Repositories

1

sproutcore

JavaScript Application Framework - JS library only
JavaScript
2,147
star
2

TransformJS

A jQuery plugin that provides an abstraction over 2d and 3d transforms - Project Owner: jtaby
JavaScript
229
star
3

abbot

SproutCore Build Tools [deprecated]
Ruby
88
star
4

demos

The demos source. Build and push to https://github.com/sproutcore-demos/sproutcore-demos.github.com.
JavaScript
58
star
5

Todos-Example

JavaScript
52
star
6

docs

The documentation source. Build and push to https://github.com/sproutcore-docs/sproutcore-docs.github.com.
JavaScript
14
star
7

build-tools

SproutCore Build Tools
JavaScript
12
star
8

website

The website source. Build and push to https://github.com/sproutcore/sproutcore.github.com.
CSS
9
star
9

showcase

The showcase source. Build and push to https://github.com/sproutcore-showcase/sproutcore-showcase.github.com.
JavaScript
7
star
10

sproutcore-website-old

Code for the Official SproutCore Website
Ruby
6
star
11

rich-text-editor

A rich text editor for SproutCore.
JavaScript
6
star
12

getting-started

JavaScript
4
star
13

sproutcore.github.io

The live website. Do NOT edit this directly, it must be built from the code in sproutcore/website.
HTML
4
star
14

greenhouse

SproutCore's Page Designer (work-in-progress)
JavaScript
2
star
15

debug-apps

Apps for working on and debugging specific components of SproutCore
JavaScript
2
star
16

sproutcore_next

An attempt to "modernize" SproutCore
JavaScript
1
star
17

extensions

High quality extensions to the SproutCore framework
JavaScript
1
star
18

sproutcore-sublime-text-2-package

A SproutCore package for Sublime Text 2
JavaScript
1
star
19

sproutcore-ace

Ace editor for SproutCore
JavaScript
1
star
20

TransformJS_site

The Website for TransformJS
Ruby
1
star