The official website for the Sails framework.
Most content on the site (including documentation) is pulled automatically from the sails-docs repo and compiled into HTML.
The contribution guide for the Sails project has information and guidelines for contributing to the Sails website, the official documentation, and the project in general.
Please be sure to carefully read the entire contribution guide before opening an issue or submitting a pull request to this repository.
All direct changes should be made to the master
branch of this repository.
Both sailsjs.org and preview.sailsjs.org are deployed directly from master
. The code for the websites with documentation for earlier realeases of sails are on the branches that correspond with those versions. (e.g. branch 0.11
→ 0.11.sailsjs.org)
With the up-to-date master branch checked out locally:
git checkout master
git pull -u origin master
Start the server locally:
GITHUB_HOOK_SECRET=whatever sails_branch=0.12 sails lift
After a moment, you will see messages like the following showing up in the terminal:
Compiling `reference` docs from the `0.12` branch of `git://github.com/balderdashy/sails-docs.git`...
Compiling `anatomy` docs from the `0.12` branch of `git://github.com/balderdashy/sails-docs.git`...
Compiling `concepts` docs from the `0.12` branch of `git://github.com/balderdashy/sails-docs.git`...
Compiling `getting-started` docs from the `0.12` branch of `git://github.com/balderdashy/sails-docs.git`...
Compiling `support/irc` docs from the `0.12` branch of `git://github.com/balderdashy/sails-docs.git`...
Compiling `version-notes` docs from the `0.12` branch of `git://github.com/balderdashy/sails-docs.git`...
Compiling `security` docs from the `0.12` branch of `git://github.com/balderdashy/sails-docs.git`...
Then take a look at the website running on localhost:1337 in your browser and make sure everything is cool. Specifically make sure and visit a few of the doc pages, such as the reference page for sails.config.csrf
.
Assuming everything is hunky dory, now commit and push that up to master:
git commit -am "Recompiled documentation."
git push -u origin master
Now checkout the appropriate branch for production deployment, pull, and merge in master, then push that up:
git checkout 0.12
git pull -u origin 0.12
git merge master
git push -u origin 0.12
Now you're ready to deploy the website from the appropriate branch! (in this example 0.12
)
MIT c. 2016 Mike McNeil, Rachael Shaw, Scott Gress, Irl Nathan, Cody Stoltman and contributors