/www.sailsjs.org

Public-facing sailsjs.org website.

Primary LanguageHTML

sailsjs.org

The official website for the Sails framework.

Screenshot of the www.sailsjs.org website

Where does the content come from?

Most content on the site (including documentation) is pulled automatically from the sails-docs repo and compiled into HTML.

How can I help?

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.

Which branch do I use?

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.110.11.sailsjs.org)

Recompiling the documentation for production

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

Then send an HTTP request: Run in Postman

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)

License

MIT c. 2016 Mike McNeil, Rachael Shaw, Scott Gress, Irl Nathan, Cody Stoltman and contributors