diff --git a/docs/.gitignore b/docs/.gitignore
new file mode 100644
index 00000000..8c199a58
--- /dev/null
+++ b/docs/.gitignore
@@ -0,0 +1,6 @@
+_site/
+.sass-cache/
+.DS_STORE
+*.swo
+*.swp
+*.psd
diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md
new file mode 100644
index 00000000..67bb25e6
--- /dev/null
+++ b/docs/CONTRIBUTING.md
@@ -0,0 +1,115 @@
+This provides guidance on how to contribute various content to `your-site`.
+
+## Getting started
+
+You should only have to do these one time.
+
+- Rename this file to `CONTRIBUTING.md`.
+- Rename `EXAMPLE-README-FOR-RUNNING-DOCS.md` to `README.md` (replacing the existing `README.md` that came with the template).
+- Rename `EXAMPLE-LICENSE` to `LICENSE`.
+- Review the [template information](./TEMPLATE-INFORMATION.md).
+- Review `./_config.yml`.
+- Make sure you update `title`, `description`, `tagline` and `gacode` (Google Analytics) in `./_config.yml`.
+
+## Basic Structure
+
+Most content is written in markdown. You name the file `something.md`, then have a header that looks like this:
+
+```
+---
+docid: getting-started
+title: Getting started with ProjectName
+layout: docs
+permalink: /docs/getting-started.html
+---
+```
+
+Customize these values for each document, blog post, etc.
+
+> The filename of the `.md` file doesn't actually matter; what is important is the `docid` being unique and the `permalink` correct and unique too).
+
+## Landing page
+
+Modify `index.md` with your new or updated content.
+
+If you want a `GridBlock` as part of your content, you can do so directly with HTML:
+
+```
+
+```
+
+or with a combination of changing `./_data/features.yml` and adding some Liquid to `index.md`, such as:
+
+```
+{% include content/gridblocks.html data_source=site.data.features imagealign="bottom"%}
+```
+
+## Blog
+
+To modify a blog post, edit the appopriate markdown file in `./_posts/`.
+
+Adding a new blog post is a four-step process.
+
+> Some posts have a `permalink` and `comments` in the blog post YAML header. You will not need these for new blog posts. These are an artifact of migrating the blog from Wordpress to gh-pages.
+
+1. Create your blog post in `./_posts/` in markdown (file extension `.md` or `.markdown`). See current posts in that folder or `./doc-type-examples/2016-04-07-blog-post-example.md` for an example of the YAML format. **If the `./_posts` directory does not exist, create it**.
+ - You can add a `` tag in the middle of your post such that you show only the excerpt above that tag in the main `/blog` index on your page.
+1. If you have not authored a blog post before, modify the `./_data/authors.yml` file with the `author` id you used in your blog post, along with your full name and Facebook ID to get your profile picture.
+1. [Run the site locally](./README.md) to test your changes. It will be at `http://127.0.0.1/blog/your-new-blog-post-title.html`
+1. Push your changes to GitHub.
+
+## Docs
+
+To modify docs, edit the appropriate markdown file in `./_docs/`.
+
+To add docs to the site....
+
+1. Add your markdown file to the `./_docs/` folder. See `./doc-type-examples/docs-hello-world.md` for an example of the YAML header format. **If the `./_docs/` directory does not exist, create it**.
+ - You can use folders in the `./_docs/` directory to organize your content if you want.
+1. Update `_data/nav_docs.yml` to add your new document to the navigation bar. Use the `docid` you put in your doc markdown in as the `id` in the `_data/nav_docs.yml` file.
+1. [Run the site locally](./README.md) to test your changes. It will be at `http://127.0.0.1/docs/your-new-doc-permalink.html`
+1. Push your changes to GitHub.
+
+## Header Bar
+
+To modify the header bar, change `./_data/nav.yml`.
+
+## Top Level Page
+
+To modify a top-level page, edit the appropriate markdown file in `./top-level/`
+
+If you want a top-level page (e.g., http://your-site.com/top-level.html) -- not in `/blog/` or `/docs/`....
+
+1. Create a markdown file in the root `./top-level/`. See `./doc-type-examples/top-level-example.md` for more information.
+1. If you want a visible link to that file, update `_data/nav.yml` to add a link to your new top-level document in the header bar.
+
+ > This is not necessary if you just want to have a page that is linked to from another page, but not exposed as direct link to the user.
+
+1. [Run the site locally](./README.md) to test your changes. It will be at `http://127.0.0.1/your-top-level-page-permalink.html`
+1. Push your changes to GitHub.
+
+## Other Changes
+
+- CSS: `./css/main.css` or `./_sass/*.scss`.
+- Images: `./static/images/[docs | posts]/....`
+- Main Blog post HTML: `./_includes/post.html`
+- Main Docs HTML: `./_includes/doc.html`
diff --git a/docs/Gemfile b/docs/Gemfile
new file mode 100644
index 00000000..93dc8b0d
--- /dev/null
+++ b/docs/Gemfile
@@ -0,0 +1,2 @@
+source 'https://rubygems.org'
+gem 'github-pages', '~> 104'
diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock
new file mode 100644
index 00000000..346fc6c1
--- /dev/null
+++ b/docs/Gemfile.lock
@@ -0,0 +1,145 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ activesupport (4.2.7)
+ i18n (~> 0.7)
+ json (~> 1.7, >= 1.7.7)
+ minitest (~> 5.1)
+ thread_safe (~> 0.3, >= 0.3.4)
+ tzinfo (~> 1.1)
+ addressable (2.4.0)
+ coffee-script (2.4.1)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.10.0)
+ colorator (1.1.0)
+ ethon (0.9.1)
+ ffi (>= 1.3.0)
+ execjs (2.7.0)
+ faraday (0.9.2)
+ multipart-post (>= 1.2, < 3)
+ ffi (1.9.14)
+ forwardable-extended (2.6.0)
+ gemoji (2.1.0)
+ github-pages (104)
+ activesupport (= 4.2.7)
+ github-pages-health-check (= 1.2.0)
+ jekyll (= 3.3.0)
+ jekyll-avatar (= 0.4.2)
+ jekyll-coffeescript (= 1.0.1)
+ jekyll-feed (= 0.8.0)
+ jekyll-gist (= 1.4.0)
+ jekyll-github-metadata (= 2.2.0)
+ jekyll-mentions (= 1.2.0)
+ jekyll-paginate (= 1.1.0)
+ jekyll-redirect-from (= 0.11.0)
+ jekyll-sass-converter (= 1.3.0)
+ jekyll-seo-tag (= 2.1.0)
+ jekyll-sitemap (= 0.12.0)
+ jekyll-swiss (= 0.4.0)
+ jemoji (= 0.7.0)
+ kramdown (= 1.11.1)
+ liquid (= 3.0.6)
+ listen (= 3.0.6)
+ mercenary (~> 0.3)
+ minima (= 2.0.0)
+ rouge (= 1.11.1)
+ terminal-table (~> 1.4)
+ github-pages-health-check (1.2.0)
+ addressable (~> 2.3)
+ net-dns (~> 0.8)
+ octokit (~> 4.0)
+ public_suffix (~> 1.4)
+ typhoeus (~> 0.7)
+ html-pipeline (2.4.2)
+ activesupport (>= 2)
+ nokogiri (>= 1.4)
+ i18n (0.7.0)
+ jekyll (3.3.0)
+ addressable (~> 2.4)
+ colorator (~> 1.0)
+ jekyll-sass-converter (~> 1.0)
+ jekyll-watch (~> 1.1)
+ kramdown (~> 1.3)
+ liquid (~> 3.0)
+ mercenary (~> 0.3.3)
+ pathutil (~> 0.9)
+ rouge (~> 1.7)
+ safe_yaml (~> 1.0)
+ jekyll-avatar (0.4.2)
+ jekyll (~> 3.0)
+ jekyll-coffeescript (1.0.1)
+ coffee-script (~> 2.2)
+ jekyll-feed (0.8.0)
+ jekyll (~> 3.3)
+ jekyll-gist (1.4.0)
+ octokit (~> 4.2)
+ jekyll-github-metadata (2.2.0)
+ jekyll (~> 3.1)
+ octokit (~> 4.0, != 4.4.0)
+ jekyll-mentions (1.2.0)
+ activesupport (~> 4.0)
+ html-pipeline (~> 2.3)
+ jekyll (~> 3.0)
+ jekyll-paginate (1.1.0)
+ jekyll-redirect-from (0.11.0)
+ jekyll (>= 2.0)
+ jekyll-sass-converter (1.3.0)
+ sass (~> 3.2)
+ jekyll-seo-tag (2.1.0)
+ jekyll (~> 3.3)
+ jekyll-sitemap (0.12.0)
+ jekyll (~> 3.3)
+ jekyll-swiss (0.4.0)
+ jekyll-watch (1.5.0)
+ listen (~> 3.0, < 3.1)
+ jemoji (0.7.0)
+ activesupport (~> 4.0)
+ gemoji (~> 2.0)
+ html-pipeline (~> 2.2)
+ jekyll (>= 3.0)
+ json (1.8.3)
+ kramdown (1.11.1)
+ liquid (3.0.6)
+ listen (3.0.6)
+ rb-fsevent (>= 0.9.3)
+ rb-inotify (>= 0.9.7)
+ mercenary (0.3.6)
+ mini_portile2 (2.1.0)
+ minima (2.0.0)
+ minitest (5.9.1)
+ multipart-post (2.0.0)
+ net-dns (0.8.0)
+ nokogiri (1.6.8.1)
+ mini_portile2 (~> 2.1.0)
+ octokit (4.4.1)
+ sawyer (~> 0.7.0, >= 0.5.3)
+ pathutil (0.14.0)
+ forwardable-extended (~> 2.6)
+ public_suffix (1.5.3)
+ rb-fsevent (0.9.8)
+ rb-inotify (0.9.7)
+ ffi (>= 0.5.0)
+ rouge (1.11.1)
+ safe_yaml (1.0.4)
+ sass (3.4.22)
+ sawyer (0.7.0)
+ addressable (>= 2.3.5, < 2.5)
+ faraday (~> 0.8, < 0.10)
+ terminal-table (1.7.3)
+ unicode-display_width (~> 1.1.1)
+ thread_safe (0.3.5)
+ typhoeus (0.8.0)
+ ethon (>= 0.8.0)
+ tzinfo (1.2.2)
+ thread_safe (~> 0.1)
+ unicode-display_width (1.1.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ github-pages (~> 104)
+
+BUNDLED WITH
+ 1.13.1
diff --git a/docs/LICENSE b/docs/LICENSE
new file mode 100644
index 00000000..1f255c9f
--- /dev/null
+++ b/docs/LICENSE
@@ -0,0 +1,385 @@
+Attribution 4.0 International
+
+=======================================================================
+
+Creative Commons Corporation ("Creative Commons") is not a law firm and
+does not provide legal services or legal advice. Distribution of
+Creative Commons public licenses does not create a lawyer-client or
+other relationship. Creative Commons makes its licenses and related
+information available on an "as-is" basis. Creative Commons gives no
+warranties regarding its licenses, any material licensed under their
+terms and conditions, or any related information. Creative Commons
+disclaims all liability for damages resulting from their use to the
+fullest extent possible.
+
+Using Creative Commons Public Licenses
+
+Creative Commons public licenses provide a standard set of terms and
+conditions that creators and other rights holders may use to share
+original works of authorship and other material subject to copyright
+and certain other rights specified in the public license below. The
+following considerations are for informational purposes only, are not
+exhaustive, and do not form part of our licenses.
+
+ Considerations for licensors: Our public licenses are
+ intended for use by those authorized to give the public
+ permission to use material in ways otherwise restricted by
+ copyright and certain other rights. Our licenses are
+ irrevocable. Licensors should read and understand the terms
+ and conditions of the license they choose before applying it.
+ Licensors should also secure all rights necessary before
+ applying our licenses so that the public can reuse the
+ material as expected. Licensors should clearly mark any
+ material not subject to the license. This includes other CC-
+ licensed material, or material used under an exception or
+ limitation to copyright. More considerations for licensors:
+ wiki.creativecommons.org/Considerations_for_licensors
+
+ Considerations for the public: By using one of our public
+ licenses, a licensor grants the public permission to use the
+ licensed material under specified terms and conditions. If
+ the licensor's permission is not necessary for any reason--for
+ example, because of any applicable exception or limitation to
+ copyright--then that use is not regulated by the license. Our
+ licenses grant only permissions under copyright and certain
+ other rights that a licensor has authority to grant. Use of
+ the licensed material may still be restricted for other
+ reasons, including because others have copyright or other
+ rights in the material. A licensor may make special requests,
+ such as asking that all changes be marked or described.
+ Although not required by our licenses, you are encouraged to
+ respect those requests where reasonable. More_considerations
+ for the public:
+ wiki.creativecommons.org/Considerations_for_licensees
+
+=======================================================================
+
+Creative Commons Attribution 4.0 International Public License
+
+By exercising the Licensed Rights (defined below), You accept and agree
+to be bound by the terms and conditions of this Creative Commons
+Attribution 4.0 International Public License ("Public License"). To the
+extent this Public License may be interpreted as a contract, You are
+granted the Licensed Rights in consideration of Your acceptance of
+these terms and conditions, and the Licensor grants You such rights in
+consideration of benefits the Licensor receives from making the
+Licensed Material available under these terms and conditions.
+
+Section 1 -- Definitions.
+
+ a. Adapted Material means material subject to Copyright and Similar
+ Rights that is derived from or based upon the Licensed Material
+ and in which the Licensed Material is translated, altered,
+ arranged, transformed, or otherwise modified in a manner requiring
+ permission under the Copyright and Similar Rights held by the
+ Licensor. For purposes of this Public License, where the Licensed
+ Material is a musical work, performance, or sound recording,
+ Adapted Material is always produced where the Licensed Material is
+ synched in timed relation with a moving image.
+
+b. Adapter's License means the license You apply to Your Copyright
+ and Similar Rights in Your contributions to Adapted Material in
+ accordance with the terms and conditions of this Public License.
+
+c. Copyright and Similar Rights means copyright and/or similar rights
+ closely related to copyright including, without limitation,
+ performance, broadcast, sound recording, and Sui Generis Database
+ Rights, without regard to how the rights are labeled or
+ categorized. For purposes of this Public License, the rights
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
+ Rights.
+
+d. Effective Technological Measures means those measures that, in the
+ absence of proper authority, may not be circumvented under laws
+ fulfilling obligations under Article 11 of the WIPO Copyright
+ Treaty adopted on December 20, 1996, and/or similar international
+ agreements.
+
+e. Exceptions and Limitations means fair use, fair dealing, and/or
+ any other exception or limitation to Copyright and Similar Rights
+ that applies to Your use of the Licensed Material.
+
+f. Licensed Material means the artistic or literary work, database,
+ or other material to which the Licensor applied this Public
+ License.
+
+g. Licensed Rights means the rights granted to You subject to the
+ terms and conditions of this Public License, which are limited to
+ all Copyright and Similar Rights that apply to Your use of the
+ Licensed Material and that the Licensor has authority to license.
+
+h. Licensor means the individual(s) or entity(ies) granting rights
+ under this Public License.
+
+i. Share means to provide material to the public by any means or
+ process that requires permission under the Licensed Rights, such
+ as reproduction, public display, public performance, distribution,
+ dissemination, communication, or importation, and to make material
+ available to the public including in ways that members of the
+ public may access the material from a place and at a time
+ individually chosen by them.
+
+j. Sui Generis Database Rights means rights other than copyright
+ resulting from Directive 96/9/EC of the European Parliament and of
+ the Council of 11 March 1996 on the legal protection of databases,
+ as amended and/or succeeded, as well as other essentially
+ equivalent rights anywhere in the world.
+
+k. You means the individual or entity exercising the Licensed Rights
+ under this Public License. Your has a corresponding meaning.
+
+Section 2 -- Scope.
+
+a. License grant.
+
+ 1. Subject to the terms and conditions of this Public License,
+ the Licensor hereby grants You a worldwide, royalty-free,
+ non-sublicensable, non-exclusive, irrevocable license to
+ exercise the Licensed Rights in the Licensed Material to:
+
+ a. reproduce and Share the Licensed Material, in whole or
+ in part; and
+
+ b. produce, reproduce, and Share Adapted Material.
+
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
+ Exceptions and Limitations apply to Your use, this Public
+ License does not apply, and You do not need to comply with
+ its terms and conditions.
+
+ 3. Term. The term of this Public License is specified in Section
+ 6(a).
+
+ 4. Media and formats; technical modifications allowed. The
+ Licensor authorizes You to exercise the Licensed Rights in
+ all media and formats whether now known or hereafter created,
+ and to make technical modifications necessary to do so. The
+ Licensor waives and/or agrees not to assert any right or
+ authority to forbid You from making technical modifications
+ necessary to exercise the Licensed Rights, including
+ technical modifications necessary to circumvent Effective
+ Technological Measures. For purposes of this Public License,
+ simply making modifications authorized by this Section 2(a)
+ (4) never produces Adapted Material.
+
+ 5. Downstream recipients.
+
+ a. Offer from the Licensor -- Licensed Material. Every
+ recipient of the Licensed Material automatically
+ receives an offer from the Licensor to exercise the
+ Licensed Rights under the terms and conditions of this
+ Public License.
+
+ b. No downstream restrictions. You may not offer or impose
+ any additional or different terms or conditions on, or
+ apply any Effective Technological Measures to, the
+ Licensed Material if doing so restricts exercise of the
+ Licensed Rights by any recipient of the Licensed
+ Material.
+
+ 6. No endorsement. Nothing in this Public License constitutes or
+ may be construed as permission to assert or imply that You
+ are, or that Your use of the Licensed Material is, connected
+ with, or sponsored, endorsed, or granted official status by,
+ the Licensor or others designated to receive attribution as
+ provided in Section 3(a)(1)(A)(i).
+
+b. Other rights.
+
+ 1. Moral rights, such as the right of integrity, are not
+ licensed under this Public License, nor are publicity,
+ privacy, and/or other similar personality rights; however, to
+ the extent possible, the Licensor waives and/or agrees not to
+ assert any such rights held by the Licensor to the limited
+ extent necessary to allow You to exercise the Licensed
+ Rights, but not otherwise.
+
+ 2. Patent and trademark rights are not licensed under this
+ Public License.
+
+ 3. To the extent possible, the Licensor waives any right to
+ collect royalties from You for the exercise of the Licensed
+ Rights, whether directly or through a collecting society
+ under any voluntary or waivable statutory or compulsory
+ licensing scheme. In all other cases the Licensor expressly
+ reserves any right to collect such royalties.
+
+Section 3 -- License Conditions.
+
+Your exercise of the Licensed Rights is expressly made subject to the
+following conditions.
+
+a. Attribution.
+
+ 1. If You Share the Licensed Material (including in modified
+ form), You must:
+
+ a. retain the following if it is supplied by the Licensor
+ with the Licensed Material:
+
+ i. identification of the creator(s) of the Licensed
+ Material and any others designated to receive
+ attribution, in any reasonable manner requested by
+ the Licensor (including by pseudonym if
+ designated);
+
+ ii. a copyright notice;
+
+ iii. a notice that refers to this Public License;
+
+ iv. a notice that refers to the disclaimer of
+ warranties;
+
+ v. a URI or hyperlink to the Licensed Material to the
+ extent reasonably practicable;
+
+ b. indicate if You modified the Licensed Material and
+ retain an indication of any previous modifications; and
+
+ c. indicate the Licensed Material is licensed under this
+ Public License, and include the text of, or the URI or
+ hyperlink to, this Public License.
+
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
+ reasonable manner based on the medium, means, and context in
+ which You Share the Licensed Material. For example, it may be
+ reasonable to satisfy the conditions by providing a URI or
+ hyperlink to a resource that includes the required
+ information.
+
+ 3. If requested by the Licensor, You must remove any of the
+ information required by Section 3(a)(1)(A) to the extent
+ reasonably practicable.
+
+ 4. If You Share Adapted Material You produce, the Adapter's
+ License You apply must not prevent recipients of the Adapted
+ Material from complying with this Public License.
+
+Section 4 -- Sui Generis Database Rights.
+
+Where the Licensed Rights include Sui Generis Database Rights that
+apply to Your use of the Licensed Material:
+
+a. for the avoidance of doubt, Section 2(a)(1) grants You the right
+ to extract, reuse, reproduce, and Share all or a substantial
+ portion of the contents of the database;
+
+b. if You include all or a substantial portion of the database
+ contents in a database in which You have Sui Generis Database
+ Rights, then the database in which You have Sui Generis Database
+ Rights (but not its individual contents) is Adapted Material; and
+
+c. You must comply with the conditions in Section 3(a) if You Share
+ all or a substantial portion of the contents of the database.
+
+For the avoidance of doubt, this Section 4 supplements and does not
+replace Your obligations under this Public License where the Licensed
+Rights include other Copyright and Similar Rights.
+
+Section 5 -- Disclaimer of Warranties and Limitation of Liability.
+
+a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
+
+b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
+
+c. The disclaimer of warranties and limitation of liability provided
+ above shall be interpreted in a manner that, to the extent
+ possible, most closely approximates an absolute disclaimer and
+ waiver of all liability.
+
+Section 6 -- Term and Termination.
+
+a. This Public License applies for the term of the Copyright and
+ Similar Rights licensed here. However, if You fail to comply with
+ this Public License, then Your rights under this Public License
+ terminate automatically.
+
+b. Where Your right to use the Licensed Material has terminated under
+ Section 6(a), it reinstates:
+
+ 1. automatically as of the date the violation is cured, provided
+ it is cured within 30 days of Your discovery of the
+ violation; or
+
+ 2. upon express reinstatement by the Licensor.
+
+ For the avoidance of doubt, this Section 6(b) does not affect any
+ right the Licensor may have to seek remedies for Your violations
+ of this Public License.
+
+c. For the avoidance of doubt, the Licensor may also offer the
+ Licensed Material under separate terms or conditions or stop
+ distributing the Licensed Material at any time; however, doing so
+ will not terminate this Public License.
+
+d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
+ License.
+
+Section 7 -- Other Terms and Conditions.
+
+a. The Licensor shall not be bound by any additional or different
+ terms or conditions communicated by You unless expressly agreed.
+
+b. Any arrangements, understandings, or agreements regarding the
+ Licensed Material not stated herein are separate from and
+ independent of the terms and conditions of this Public License.
+
+Section 8 -- Interpretation.
+
+a. For the avoidance of doubt, this Public License does not, and
+ shall not be interpreted to, reduce, limit, restrict, or impose
+ conditions on any use of the Licensed Material that could lawfully
+ be made without permission under this Public License.
+
+b. To the extent possible, if any provision of this Public License is
+ deemed unenforceable, it shall be automatically reformed to the
+ minimum extent necessary to make it enforceable. If the provision
+ cannot be reformed, it shall be severed from this Public License
+ without affecting the enforceability of the remaining terms and
+ conditions.
+
+c. No term or condition of this Public License will be waived and no
+ failure to comply consented to unless expressly agreed to by the
+ Licensor.
+
+d. Nothing in this Public License constitutes or may be interpreted
+ as a limitation upon, or waiver of, any privileges and immunities
+ that apply to the Licensor or You, including from the legal
+ processes of any jurisdiction or authority.
+
+=======================================================================
+
+Creative Commons is not a party to its public licenses.
+Notwithstanding, Creative Commons may elect to apply one of its public
+licenses to material it publishes and in those instances will be
+considered the "Licensor." Except for the limited purpose of indicating
+that material is shared under a Creative Commons public license or as
+otherwise permitted by the Creative Commons policies published at
+creativecommons.org/policies, Creative Commons does not authorize the
+use of the trademark "Creative Commons" or any other trademark or logo
+of Creative Commons without its prior written consent including,
+without limitation, in connection with any unauthorized modifications
+to any of its public licenses or any other arrangements,
+understandings, or agreements concerning use of licensed material. For
+the avoidance of doubt, this paragraph does not form part of the public
+licenses.
+
+Creative Commons may be contacted at creativecommons.org.
+
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 00000000..7bc39b88
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,80 @@
+## User Documentation for Yoga
+
+This directory will contain the user, feature and API documentation for Yoga. The documentation will be hosted on GitHub pages.
+
+### Contributing
+
+See [CONTRIBUTING.md](./CONTRIBUTING.md) for details on how to add or modify content.
+
+### Run the Site Locally
+
+The requirements for running a GitHub pages site locally is described in [GitHub help](https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/#requirements). The steps below summarize these steps.
+
+> If you have run the site before, you can start with step 1 and then move on to step 5.
+
+1. Ensure that you are in the same directory where this `README.md` exists (e.g., it could be in `yoga/docs` on `master`, in the root of a `gh-pages` branch, etc). The below RubyGems commands, etc. must be run from there.
+
+1. Make sure you have Ruby and [RubyGems](https://rubygems.org/) installed.
+
+ > Ruby >= 2.2 is required for the gems. On the latest versions of Mac OS X, Ruby 2.0 is the
+ > default. Use [Homebrew](http://brew.sh) and the `brew install ruby` command (or your
+ > preferred upgrade mechanism) to install a newer version of Ruby for your Mac OS X system.
+
+1. Make sure you have [Bundler](http://bundler.io/) installed.
+
+ ```
+ # may require sudo
+ gem install bundler
+ ```
+1. Install the project's dependencies
+
+ ```
+ # run this in the 'docs' directory
+ bundle install
+ ```
+
+ > If you get an error when installing `nokogiri`, you may be running into the problem described
+ > in [this nokogiri issue](https://github.com/sparklemotion/nokogiri/issues/1483). You can
+ > either `brew uninstall xz` (and then `brew install xz` after the bundle is installed) or
+ > `xcode-select --install` (although this may not work if you have already installed command
+ > line tools).
+
+1. Run Jekyll's server.
+
+ - On first runs or for structural changes to the documentation (e.g., new sidebar menu item), do a full build.
+
+ ```
+ bundle exec jekyll serve
+ ```
+
+ - For content changes only, you can use `--incremental` for faster builds.
+
+ ```
+ bundle exec jekyll serve --incremental
+ ```
+
+ > We use `bundle exec` instead of running straight `jekyll` because `bundle exec` will always use the version of Jekyll from our `Gemfile`. Just running `jekyll` will use the system version and may not necessarily be compatible.
+
+ - To run using an actual IP address, you can use `--host=0.0.0.0`
+
+ ```
+ bundle exec jekyll serve --host=0.0.0.0
+ ```
+
+ This will allow you to use the IP address associated with your machine in the URL. That way you could share it with other people.
+
+ e.g., on a Mac, you can your IP address with something like `ifconfig | grep "inet " | grep -v 127.0.0.1`.
+
+1. Either of commands in the previous step will serve up the site on your local device at http://127.0.0.1:4000/ or http://localhost:4000.
+
+### Updating the Bundle
+
+The site depends on Github Pages and the installed bundle is based on the `github-pages` gem.
+Occasionally that gem might get updated with new or changed functionality. If that is the case,
+you can run:
+
+```
+bundle update
+```
+
+to get the latest packages for the installation.
diff --git a/docs/TEMPLATE-INFORMATION.md b/docs/TEMPLATE-INFORMATION.md
new file mode 100644
index 00000000..9175bc0c
--- /dev/null
+++ b/docs/TEMPLATE-INFORMATION.md
@@ -0,0 +1,17 @@
+## Template Details
+
+First, go through `_config.yml` and adjust the available settings to your project's standard. When you make changes here, you'll have to kill the `jekyll serve` instance and restart it to see those changes, but that's only the case with the config file.
+
+Next, update some image assets - you'll want to update `favicon.png`, `logo.svg`, and `og_image.png` (used for Like button stories and Shares on Facbeook) in the `static` folder with your own logos.
+
+Next, if you're going to have docs on your site, keep the `_docs` and `docs` folders, if not, you can safely remove them (or you can safely leave them and not include them in your navigation - Jekyll renders all of this before a client views the site anyway, so there's no performance hit from just leaving it there for a future expansion).
+
+Same thing with a blog section, either keep or delete the `_posts` and `blog` folders.
+
+You can customize your homepage in three parts - the first in the homepage header, which is mostly automatically derived from the elements you insert into your config file. However, you can also specify a series of 'promotional' elements in `_data/promo.yml`. You can read that file for more information.
+
+The second place for your homepage is in `index.md` which contains the bulk of the main content below the header. This is all markdown if you want, but you can use HTML and Jekyll's template tags (called Liquid) in there too. Checkout this folder's index.md for an example of one common template tag that we use on our sites called gridblocks.
+
+The third and last place is in the `_data/powered_by.yml` and `_data/powered_by_highlight.yml` files. Both these files combine to create a section on the homepage that is intended to show a list of companies or apps that are using your project. The `powered_by_highlight` file is a list of curated companies/apps that you want to show as a highlight at the top of this section, including their logos in whatever format you want. The `powered_by` file is a more open list that is just text links to the companies/apps and can be updated via Pull Request by the community. If you don't want these sections on your homepage, just empty out both files and leave them blank.
+
+The last thing you'll want to do is setup your top level navigation bar. You can do this by editing `nav.yml` and keeping the existing title/href/category structure used there. Although the nav is responsive and fairly flexible design-wise, no more than 5 or 6 nav items is recommended.
diff --git a/docs/_config.yml b/docs/_config.yml
new file mode 100644
index 00000000..688e6a7b
--- /dev/null
+++ b/docs/_config.yml
@@ -0,0 +1,85 @@
+# Site settings
+permalink: /blog/:year/:month/:day/:title.html
+title: YOGA
+tagline: A cross-platform layout engine
+
+fbappid: "1615782811974223"
+gacode: "UA-12345-6"
+
+# baseurl determines the subpath of your site. For example if you're using an
+# organisation.github.io/reponame/ basic site URL, then baseurl would be set
+# as "/reponame" but leave blank if you have a top-level domain URL as it is
+# now set to "" by default as discussed in:
+# http://jekyllrb.com/news/2016/10/06/jekyll-3-3-is-here/
+baseurl: "/yoga"
+
+# the base hostname & protocol for your site
+# If baseurl is set, then the absolute url for your site would be url/baseurl
+# This was also be set to the right thing automatically for local development
+# https://github.com/blog/2277-what-s-new-in-github-pages-with-jekyll-3-3
+# http://jekyllrb.com/news/2016/10/06/jekyll-3-3-is-here/
+url: "https://facebook.github.io"
+
+# Note: There are new filters in Jekyll 3.3 to help with absolute and relative urls
+# absolute_url
+# relative_url
+# So you will see these used throughout the Jekyll code in this template.
+# no more need for | prepend: site.url | prepend: site.baseurl
+# http://jekyllrb.com/news/2016/10/06/jekyll-3-3-is-here/
+#https://github.com/blog/2277-what-s-new-in-github-pages-with-jekyll-3-3
+
+# The GitHub repo for your project
+ghrepo: "facebook/yoga"
+
+# Use these color settings to determine your colour scheme for the site.
+color:
+ # primary should be a vivid color that reflects the project's brand
+ primary: "#97dccf"
+ # secondary should be a subtle light or dark color used on page backgrounds
+ secondary: "#ffffff"
+ # Use the following to specify whether the previous two colours are 'light'
+ # or 'dark' and therefore what colors can be overlaid on them
+ primary-overlay: "light"
+ secondary-overlay: "light"
+
+#Uncomment this if you want to enable Algolia doc search with your own values
+searchconfig:
+ apikey: "48f81041f782ed6463719d8d98c94f38"
+ indexname: "yoga"
+
+# Blog posts are built into Jekyll by default, with the `_posts` directory.
+# Here you can specify other types of documentation. The names here are `docs`
+# and `top-level`. This means their content will be in `_docs` and `_top-level`.
+# The permalink format is also given.
+# http://ben.balter.com/2015/02/20/jekyll-collections/
+collections:
+ docs:
+ output: true
+ permalink: /docs/:name/
+ top-level:
+ output: true
+ permalink: :name.html
+
+# DO NOT ADJUST BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE CHANGING
+
+markdown: kramdown
+kramdown:
+ input: GFM
+ syntax_highlighter: rouge
+
+ syntax_highlighter_opts:
+ css_class: 'rougeHighlight'
+ span:
+ line_numbers: false
+ block:
+ line_numbers: true
+ start_line: 1
+
+sass:
+ style: :compressed
+
+redcarpet:
+ extensions: [with_toc_data]
+
+# Exclude these from the sites directory
+exclude: ['README.md', 'TEMPLATE-INFORMATION.md', 'CONTRIBUTING.md', 'Gemfile', 'Gemfile.lock']
diff --git a/docs/_data/authors.yml b/docs/_data/authors.yml
new file mode 100644
index 00000000..3807dbff
--- /dev/null
+++ b/docs/_data/authors.yml
@@ -0,0 +1,4 @@
+
+exampleauthor:
+ full_name: Example Author
+ fbid: 1234
\ No newline at end of file
diff --git a/docs/_data/features.yml b/docs/_data/features.yml
new file mode 100644
index 00000000..38cdf86b
--- /dev/null
+++ b/docs/_data/features.yml
@@ -0,0 +1,2 @@
+# Add features here if you are using:
+# {% include content/gridblocks.html data_source=site.data.features align="center" %}
diff --git a/docs/_data/nav.yml b/docs/_data/nav.yml
new file mode 100644
index 00000000..9f7be874
--- /dev/null
+++ b/docs/_data/nav.yml
@@ -0,0 +1,10 @@
+- title: Documentation
+ href: docs/
+ category: api
+
+- title: GitHub
+ href: https://github.com/facebook/yoga
+ category: external
+
+# Use external for external links not associated with the paths of the current site.
+# If a category is external, site urls, for example, are not prepended to the href, etc..
diff --git a/docs/_data/nav_docs.yml b/docs/_data/nav_docs.yml
new file mode 100644
index 00000000..8c401cfb
--- /dev/null
+++ b/docs/_data/nav_docs.yml
@@ -0,0 +1,24 @@
+- title: Quick Start
+ items:
+ - id: getting-started
+ - id: learn-more
+- title: Flexbox concepts
+ items:
+ - id: flex-direction
+ - id: justify-content
+ - id: flex-wrap
+ - id: alignment
+ - id: flex
+ - id: absolute-position
+ - id: min-max-dimen
+ - id: margin-padding-border
+- title: Yoga additions
+ items:
+ - id: aspect-ratio
+ - id: rtl
+- title: API
+ items:
+ - id: c
+ - id: objc
+ - id: java
+ - id: csharp
diff --git a/docs/_data/powered_by.yml b/docs/_data/powered_by.yml
new file mode 100644
index 00000000..f07b507f
--- /dev/null
+++ b/docs/_data/powered_by.yml
@@ -0,0 +1 @@
+# For non-highlighted projects. See format in powered_by_highlight.yml
diff --git a/docs/_data/powered_by_highlight.yml b/docs/_data/powered_by_highlight.yml
new file mode 100644
index 00000000..0a15db27
--- /dev/null
+++ b/docs/_data/powered_by_highlight.yml
@@ -0,0 +1,6 @@
+# React Native uses Yoga now. We can add a highlight later when other projects use it.
+#- title: Who Uses This Project?
+# items:
+# - name: React Native
+# url: https://facebook.github.io/react-native
+# img: static/images/react-native.png
diff --git a/docs/_data/promo.yml b/docs/_data/promo.yml
new file mode 100644
index 00000000..0818d4f1
--- /dev/null
+++ b/docs/_data/promo.yml
@@ -0,0 +1,11 @@
+# This file determines the list of promotional elements added to the header of \
+# your site's homepage.
+
+- type: plugin_row
+ children:
+ - type: button
+ href: docs/getting-started/
+ text: Get Started
+ - type: button
+ href: docs/learn-more/
+ text: Learn More
diff --git a/docs/_docs/api/c.md b/docs/_docs/api/c.md
new file mode 100644
index 00000000..3161472b
--- /dev/null
+++ b/docs/_docs/api/c.md
@@ -0,0 +1,74 @@
+---
+docid: c
+title: C
+layout: docs
+permalink: /docs/api/c/
+---
+`YGNodeRef` is the main object you will be interfacing with when using Yoga in C. `YGNodeRef` is a pointer to an internal `YGNode` struct.
+
+### Lifecycle
+
+The following functions control the lifecycle of a `YGNodeRef`.
+
+
+
+- `YGNodeReset` will reset a node to its initial state so it can be re-used without needing to re-allocate a new node.
+- `YGNodeFreeRecursive` is mostly used for testing and will free not only the node itself but also its children.
+
+### Children
+
+The following functions help manage the children of a node.
+
+
+
+### Style getters & setters
+
+The large part of Yoga's API consists of setters and getters for styles. These all follow the same general structure. Bellow are the function and enums used to control the various styles. For an in depth guide to how each style works see the getting started guide.
+
+
+
+### Layout results
+
+Once you have set up a tree of nodes with styles you will want to get the result of a layout calculation. Call `YGNodeCalculateLayout` with the desired width and height or `YGUndefined` to perform the layout calculation. Once this function returns the results of the layout calculation is stored on each node. Traverse the tree and retrieve the values from each node.
+
+
+
+### Custom measurements
+
+Certain nodes need to ability to measure themselves, the most common example is nodes which represent text. Text has an intrinsic size and requires measuring itself to determine that size. This is not something Yoga can do as it requires relying on the host system's text rendering engine.
+
+- Call `YGNodeMarkDirty` if a node with a custom text measurement function needs to be re-measured during the next layout pass.
+
+> A measure function can only be attached to a leaf node in the hierarchy.
+
+
+
+### Context
+
+Context is important when integrating Yoga into another layout system. Context allows you to associate another object with a `YGNodeRef`. This context can then be retrieved from a `YGNodeRef` when for example its measure function is called. This is what enables Yoga to rely on the Android and iOS system implementations of text measurement in React Native.
+
+
+
+### Logging
+
+Yoga will by default log to stdout and stderr. You may however customize this to instead log to your own logger.
+
+
+
+### Experiments
+
+Yoga has the concept of experiments. An experiment is a feature which is not yet stable. To enable a feature use the following functions. Once a feature has been tested and is ready to be released as a stable API we will remove its feature flag.
+
+
+
+### Custom allocators
+
+You may want to swap out the allocator used in Yoga. These functions allow that.
+
+
+
+### Printing
+
+Yoga has some hooks to print debug information while calculating layout. With the printing APIs you can add additional information to a node when it is printed.
+
+
diff --git a/docs/_docs/api/csharp.md b/docs/_docs/api/csharp.md
new file mode 100644
index 00000000..b3158ac2
--- /dev/null
+++ b/docs/_docs/api/csharp.md
@@ -0,0 +1,53 @@
+---
+docid: csharp
+title: C#
+layout: docs
+permalink: /docs/api/csharp/
+---
+`YogaNode` is the main object you will be interfacing with when using Yoga in .NET. `YogaNode` is a thin [P/Invoke](https://msdn.microsoft.com/en-us/library/aa446536.aspx) wrapper around the core Yoga library.
+
+### Lifecycle
+
+Create a `YogaNode` via its default constructor or the static `Create()` builder method and use `Reset` if you want to pool and re-use nodes. The native memory of a `YogaNode` will automatically be freed when the node is garbage collected.
+
+
+
+### Children
+
+The following methods help manage the children of a node.
+
+
+
+### Style getters & setters
+
+The large part of Yoga's API consists of properties, setters, and getters for styles. These all follow the same general structure. Bellow are the function and enums used to control the various styles. For an in depth guide to how each style works see the getting started guide.
+
+
+
+### Layout results
+
+Once you have set up a tree of nodes with styles you will want to get the result of a layout calculation. Call `CalculateLayout()` perform layout calculation. Once this function returns the results of the layout calculation is stored on each node. Traverse the tree and retrieve the values from each node.
+
+
+
+### Custom measurements
+
+Certain nodes need to ability to measure themselves, the most common example is nodes which represent text. Text has an intrinsic size and requires measuring itself to determine that size. This is not something Yoga can do as it requires relying on the host system's text rendering engine.
+
+- Call `MarkDirty()` if a node with a custom text measurement function needs to be re-measured during the next layout pass.
+
+> A measure function can only be attached to a leaf node in the hierarchy.
+
+
+
+### Data
+
+Data is important when integrating Yoga into another layout system. Data allows you to associate another object with a `YogaNode`. This data can then be retrieved from a `YogaNode` when for example its measure function is called. This is what enables Yoga to rely on the Android system implementations of text measurement in React Native.
+
+
+
+### Experiments
+
+Yoga has the concept of experiments. An experiment is a feature which is not yet stable. To enable a feature use the following functions. Once a feature has been tested and is ready to be released as a stable API we will remove its feature flag.
+
+
diff --git a/docs/_docs/api/java.md b/docs/_docs/api/java.md
new file mode 100644
index 00000000..16a9f10f
--- /dev/null
+++ b/docs/_docs/api/java.md
@@ -0,0 +1,59 @@
+---
+docid: java
+title: Java
+layout: docs
+permalink: /docs/api/java/
+---
+`YogaNode` is the main object you will be interfacing with when using Yoga in Java. `YogaNode` is a thin [JNI](https://en.wikipedia.org/wiki/Java_Native_Interface) wrapper around the core Yoga library.
+
+### Lifecycle
+
+Create a `YogaNode` via its default constructor and use `reset` if you want to pool and re-use nodes. The native memory of a `YogaNode` will automatically be freed when the node is garbage collected.
+
+
+
+### Children
+
+The following methods help manage the children of a node.
+
+
+
+### Style getters & setters
+
+The large part of Yoga's API consists of setters and getters for styles. These all follow the same general structure. Bellow are the function and enums used to control the various styles. For an in depth guide to how each style works see the getting started guide.
+
+
+
+### Layout results
+
+Once you have set up a tree of nodes with styles you will want to get the result of a layout calculation. Call `calculateLayout()` perform layout calculation. Once this function returns the results of the layout calculation is stored on each node. Traverse the tree and retrieve the values from each node.
+
+
+
+### Custom measurements
+
+Certain nodes need to ability to measure themselves, the most common example is nodes which represent text. Text has an intrinsic size and requires measuring itself to determine that size. This is not something Yoga can do as it requires relying on the host system's text rendering engine.
+
+- Call `dirty()` if a node with a custom text measurement function needs to be re-measured during the next layout pass.
+
+> A measure function can only be attached to a leaf node in the hierarchy.
+
+
+
+### Data
+
+Data is important when integrating Yoga into another layout system. Data allows you to associate another object with a `YogaNode`. This data can then be retrieved from a `YogaNode` when for example its measure function is called. This is what enables Yoga to rely on the Android system implementations of text measurement in React Native.
+
+
+
+### Logging
+
+Yoga will by default log to stdout and stderr (or logcat on Android). You may however customize this to instead log to your own logger.
+
+
+
+### Experiments
+
+Yoga has the concept of experiments. An experiment is a feature which is not yet stable. To enable a feature use the following functions. Once a feature has been tested and is ready to be released as a stable API we will remove its feature flag.
+
+
diff --git a/docs/_docs/api/objc.md b/docs/_docs/api/objc.md
new file mode 100644
index 00000000..a403bdba
--- /dev/null
+++ b/docs/_docs/api/objc.md
@@ -0,0 +1,38 @@
+---
+docid: objc
+title: Objective-C
+layout: docs
+permalink: /docs/api/objc/
+---
+
+> The Objective-C API is very new and still in rapid development. Please use it and [report issues, bugs or feedback](https://github.com/facebook/yoga/issues). We hope to stabilize the API over the next couple weeks / months.
+
+Yoga for Objective-C is implemented as a [category](https://developer.apple.com/library/content/documentation/General/Conceptual/DevPedia-CocoaCore/Category.html) on [UIView](https://developer.apple.com/reference/uikit/uiview). We try to rely on the existing `UIView` properties and initializers where possible, making the Yoga API smaller for Objective-C than for other languages.
+
+### Lifecycle
+
+As with any `UIView` instantiate it using `-(instancetype)initWithFrame:(CGRect)frame`. With Yoga for Objective-C the frame is actually how you set the width and the height of the Yoga node, just like any other `UIView`.
+
+Because Yoga is implemented as a category we need some way to mark the view as using Yoga as you might not want Yoga to control layout of your whole app, this is especially important if you are migrating an existing app to use Yoga. The property decides during layout/sizing whether or not `yg_*` properties should be applied. Defaults to `NO`.
+
+
+
+### Children
+
+Yoga relies on `UIView` subviews to build up its internal layout tree. However using properties such as `yg_includeInLayout` a View can exclude itself from layout. Therefor we provide the following method to query the number of children which are laid out using Yoga.
+
+
+
+### Style setters
+
+The large part of Yoga's API consists of setters for styles. These all follow the same general structure. Bellow are the function and enums used to control the various styles. For an in depth guide to how each style works see the getting started guide.
+
+
+
+### Layout
+- `yg_includeInLayout` decides if we should include this view when calculating layout. Defaults to `YES`.
+- `yg_intrinsicSize` returns the size of the view if no constraints were given. This is equivalent to calling `[view sizeThatFits:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX)]`.
+- `yg_applyLayout` performs layout calculation and update the frames of the views in the hierarchy with the results.
+- `yg_resolvedDirection` returns the resolved layout direction of this view. Either `YGDirectionRTL` or `YGDirectionLTR`.
+
+
diff --git a/docs/_docs/flexbox/absolute-position.md b/docs/_docs/flexbox/absolute-position.md
new file mode 100644
index 00000000..4b7d6500
--- /dev/null
+++ b/docs/_docs/flexbox/absolute-position.md
@@ -0,0 +1,38 @@
+---
+docid: absolute-position
+title: Absolute positioning
+layout: docs
+permalink: /docs/absolute-position/
+---
+
+The `Position` property tells Flexbox how you want your item to be positioned within its parent. There are 2 options:
+
+* `Relative` (default)
+* `Absolute`
+
+An item marked with `Position = Absolute` is positioned absolutely in regards to its parent. This is done through 6 properties:
+
+* `Left` - controls the distance a child's left edge is from the parent's left edge
+* `Top` - controls the distance a child's top edge is from the parent's top edge
+* `Right` - controls the distance a child's right edge is from the parent's right edge
+* `Bottom` - controls the distance a child's bottom edge is from the parent's bottom edge
+* `Start` - controls the distance a child's start edge is from the parent's start edge
+* `End` - controls the distance a child's end edge is from the parent's end edge
+
+Using these options you can control the size and position of an absolute item within its parent. Because absolutely positioned children don't effect their siblings layout `Position = Absolute` can be used to create overlays and stack children in the Z axis.
+
+#### Position = Absolute; Start = 0; Top = 0; Width = 50; Height = 50;
+
+
+
+
+
+
+
+#### Position = Absolute; Start = 10; Top = 10; End = 10; Bottom = 10;
+
+
+
+
+
+
diff --git a/docs/_docs/flexbox/alignment.md b/docs/_docs/flexbox/alignment.md
new file mode 100644
index 00000000..0d254303
--- /dev/null
+++ b/docs/_docs/flexbox/alignment.md
@@ -0,0 +1,92 @@
+---
+docid: alignment
+title: Alignment
+layout: docs
+permalink: /docs/alignment/
+---
+
+### AlignItems
+
+The `AlignItems` property describes how to align children along the cross axis of their container. `AlignItems` is very similar to `JustifyContent` but instead of applying to the main axis, it applies to the cross axis. There are 4 options for `AlignItems`:
+
+* `Stretch` (default)
+* `FlexStart`
+* `FlexEnd`
+* `Center`
+
+The only non-obvious option of the four is `Stretch`. With `AlignItems = Stretch` you instruct children to match the size of their container in the cross axis.
+
+#### AlignItems = Stretch
+
+
+
+
+
+
+
+
+#### AlignItems = FlexStart
+
+
+
+
+
+
+
+
+#### AlignItems = FlexEnd
+
+
+
+
+
+
+
+
+#### AlignItems = Center
+
+
+
+
+
+
+
+
+### AlignSelf
+
+The `AlignSelf` property has the same options and effect as `AlignItems` but instead of affecting the children within a container, you can apply this property to a single child to change its alignment within its parent.
+
+This property overrides any option set by the parent via the `AlignItems` property.
+
+#### AlignItems = FlexEnd; AlignSelf = FlexStart;
+
+
+
+
+
+
+
+
+### AlignContent
+
+The `AlignContent` property is used to control how multiple lines of content are aligned within a container which uses `FlexWrap = wrap`. There are 6 options:
+
+* `FlexStart` (default)
+* `FlexEnd`
+* `Center`
+* `Stretch`
+* `SpaceBetween`
+* `SpaceAround`
+
+#### AlignContent = FlexEnd
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/_docs/flexbox/flex-direction.md b/docs/_docs/flexbox/flex-direction.md
new file mode 100644
index 00000000..caed98a4
--- /dev/null
+++ b/docs/_docs/flexbox/flex-direction.md
@@ -0,0 +1,47 @@
+---
+docid: flex-direction
+title: Flex direction
+layout: docs
+permalink: /docs/flex-direction/
+---
+
+The `FlexDirection` property controls the direction in which children are laid out. There are 4 options, of which 2 are commonly used:
+
+* `Column` (default)
+* `Row`
+* `ColumnReverse`
+* `RowReverse`
+
+The `Column` option stacks children horizontally from top to bottom, and the `Row` option stacks children from left to right. The `Reverse` variants of the options reverse the order. If your layout supports right-to-left direction, Yoga will automatically toggle between `Row` and `RowReverse` as necessary.
+
+`FlexDirection` introduces another important aspect of Flexbox, the main and cross axes. This is important as other properties will reference which axis they operate on. Simply put, the main axis follows the `FlexDirection` and the cross axis crosses the main axis at a 90 degree angle.
+
+#### FlexDirection = Row
+
+In this example the main axis goes from the left to the right. The cross axis goes from the top to the bottom.
+
+
+
+
+
+
+
+
+
+
+
+
+#### FlexDirection = Column
+
+In this example the main axis goes from the top to the bottom. The cross axis goes from the left to the right.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/_docs/flexbox/flex-wrap.md b/docs/_docs/flexbox/flex-wrap.md
new file mode 100644
index 00000000..d93247b2
--- /dev/null
+++ b/docs/_docs/flexbox/flex-wrap.md
@@ -0,0 +1,39 @@
+---
+docid: flex-wrap
+title: Flex wrap
+layout: docs
+permalink: /docs/flex-wrap/
+---
+
+The `FlexWrap` property is set on containers and controls what happens when children overflow the size of the container along the main axis. There are 2 options:
+
+* `Nowrap` (default)
+* `Wrap`
+
+If a container specifies `FlexWrap = Wrap` then its children will wrap to the next line instead of overflowing. The next line will have the same `FlexDirection` as the first line and will appear next to the first line along the cross axis -- below it if using `FlexDirection = Column` and to the right if using `FlexDirection = Row`.
+
+#### FlexWrap = Nowrap
+
+
+
+
+
+
+
+
+
+
+
+
+#### FlexWrap = Wrap
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/_docs/flexbox/flex.md b/docs/_docs/flexbox/flex.md
new file mode 100644
index 00000000..40246b40
--- /dev/null
+++ b/docs/_docs/flexbox/flex.md
@@ -0,0 +1,100 @@
+---
+docid: flex
+title: Flex
+layout: docs
+permalink: /docs/flex/
+---
+
+### FlexGrow
+
+The `FlexGrow` property describes how any space within a container should be distributed among its children along the main axis. After laying out its children, a container will distribute any remaining space according to the `FlexGrow` values specified by its children.
+
+`FlexGrow` accepts any floating point value >= 0, with 0 being the default value. A container will distribute any remaining space among its children weighted by the child's `FlexGrow` value.
+
+
+
+
+
+
+
+
+
+
+
+
+ FlexGrow = 1
+
+
+
+
+
+
+
+ FlexGrow = 1
+
+
+ FlexGrow = 1
+
+
+
+
+
+
+
+ FlexGrow = 1
+
+
+ FlexGrow = 2
+
+
+
+
+### FlexShrink
+
+The `FlexShrink` property describes how to shrink children along the main axis in the case that the total size of the children overflow the size of the container on the main axis.
+
+`FlexShrink` is very similar to `FlexGrow` and can be thought of in the same way if any overflowing size is considered to be negative remaining space. These two properties also work well together by allowing children to grow and shrink as needed.
+
+`FlexShrink` accepts any floating point value >= 0, with 0 being the default value. A container will shrink its children weighted by the child's `FlexShrink` value.
+
+
+
+
+
+
+
+
+
+
+
+
+ FlexShrink = 1
+
+
+
+
+
+
+
+ FlexShrink = 1
+
+
+ FlexShrink = 1
+
+
+
+
+
+
+
+ FlexShrink = 1
+
+
+ FlexShrink = 2
+
+
+
+
+### FlexBasis
+
+The `FlexBasis` property is an axis-independent way of providing the default size of an item on the main axis. Setting the `FlexBasis` of a child is similar to setting the `Width` of that child if its parent is a container with `FlexDirection = row` or setting the `Height` of a child if its parent is a container with `FlexDirection = column`. The `FlexBasis` of an item is the default size of that item, the size of the item before any `FlexGrow` and `FlexShrink` calculations are performed.
diff --git a/docs/_docs/flexbox/justify-content.md b/docs/_docs/flexbox/justify-content.md
new file mode 100644
index 00000000..39a724ed
--- /dev/null
+++ b/docs/_docs/flexbox/justify-content.md
@@ -0,0 +1,61 @@
+---
+docid: justify-content
+title: Justify content
+layout: docs
+permalink: /docs/justify-content/
+---
+
+The `JustifyContent` property describes how to align children within the main axis of a container. For example, you can use this property to center a child horizontally within a container with `FlexDirection = Row` or vertically within a container with `FlexDirection = Column`.
+
+`JustifyContent` accepts 1 of the following 5 options:
+
+* `FlexStart` (default)
+* `FlexEnd`
+* `Center`
+* `SpaceBetween`
+* `SpaceAround`
+
+#### JustifyContent = FlexStart
+
+
+
+
+
+
+
+
+#### JustifyContent = FlexEnd
+
+
+
+
+
+
+
+
+#### JustifyContent = Center
+
+
+
+
+
+
+
+
+#### JustifyContent = SpaceBetween
+
+
+
+
+
+
+
+
+#### JustifyContent = SpaceAround
+
+
+
+
+
+
+
diff --git a/docs/_docs/flexbox/margin-padding-border.md b/docs/_docs/flexbox/margin-padding-border.md
new file mode 100644
index 00000000..0d5a9eaa
--- /dev/null
+++ b/docs/_docs/flexbox/margin-padding-border.md
@@ -0,0 +1,58 @@
+---
+docid: margin-padding-border
+title: Margin, Padding, Border
+layout: docs
+permalink: /docs/margin-padding-border/
+---
+
+`Margin`, `Padding` are similar but have some important differences. By applying `Margin` to an item you specify the offset a certain edge of the item should have from it's closest sibling or parent. With `Padding` on the other hand you specify the offset children should have from a certain edge on the parent. `Border` behaves nearly identically to `Padding` and is only separate from `Padding` to make it easier to implement border effect such as color. In the below illustrations the green box is a child of the dark gray box.
+
+#### MarginStart = 50;
+
+
+
+
+
+
+
+
+
+#### MarginEnd = 50;
+
+
+
+
+
+
+
+
+
+#### MarginAll = 50;
+
+
+
+
+
+
+
+
+
+#### PaddingAll = 50;
+
+
+
+
+
+
+
+
+
+#### BorderWidth = 50;
+
+
+
+
+
+
+
+
diff --git a/docs/_docs/flexbox/minmaxdimen.md b/docs/_docs/flexbox/minmaxdimen.md
new file mode 100644
index 00000000..3d9dcf27
--- /dev/null
+++ b/docs/_docs/flexbox/minmaxdimen.md
@@ -0,0 +1,34 @@
+---
+docid: min-max-dimen
+title: Min & Max dimensions
+layout: docs
+permalink: /docs/min-max-dimen/
+---
+
+Using `MinWidth`, `MinHeight`, `MaxWidth`, and `MaxHeight` gives you increased control over the final size of items in a layout. By mixing these properties with `FlexGrow`, `FlexShrink`, and `AlignItems = Stretch`, you are able to have items with dynamic size within a range which you control.
+
+An example of when `Max` properties can be useful is if you are using `AlignItems = Stretch` but your know that your item won't look good after it increases past a certain point. In this case, your item will stretch to the size of its parent or until it is as big as specified in the `Max` property.
+
+Same goes for the `Min` properties when using `FlexShrink`. For example, you may want children of a container to shrink to fit on one row, but if you specify a minimum width, they will break to the next line after a certain point (if you are using `FlexWrap = Wrap`).
+
+Another case where `Min` and `Max` dimension constraints are useful is when using `AspectRatio`.
+
+#### FlexGrow = 1; MaxWidth = 200;
+
+
+
+
+
+ FlexGrow = 1
+
+
+
+
+#### AlignItems = Stretch; MaxHeight: 100;
+
+
+
+
+
+
+
diff --git a/docs/_docs/getting-started.md b/docs/_docs/getting-started.md
new file mode 100644
index 00000000..6a8cde69
--- /dev/null
+++ b/docs/_docs/getting-started.md
@@ -0,0 +1,28 @@
+---
+docid: getting-started
+title: Getting Started
+layout: docs
+permalink: /docs/getting-started/
+---
+
+## Installation
+
+Installation of Yoga is currently a manual process. We have plans on bringing Yoga to the many available package management systems (e.g., [Yarn](https://yarnpkg.com/), [Gradle](https://gradle.org/), [Cocoapods](https://cocoapods.org/)), but we do not have a target date at this time. We would greatly appreciate [community contributions here](https://github.com/facebook/yoga/pulls).
+
+### Getting the Code
+
+For now we recommend including Yoga as a [git submodule](https://git-scm.com/docs/git-submodule) in your project. Once done, you can either build Yoga using Buck (detailed [below](#building-with-buck)) or integrate it into your existing build system by including the C library from the [root `yoga` directory](https://github.com/facebook/yoga/tree/master/yoga) as well as the [language bindings](https://github.com/facebook/yoga) (e.g., Java, C#) you wish to use.
+
+### Running the Example
+
+Yoga ships with an [iOS example](https://github.com/facebook/yoga/tree/master/YogaKit/YogaKitSample). To get it running:
+
+
+
+### Building with Buck
+
+Yoga uses [Buck](https://buckbuild.com/) as its build system. Buck is not required for using Yoga, but, if you already use Buck, then integrating Yoga is very simple.
+
+If you are using Buck all you need to do is reference the language bindings you want to use in your `BUCK` file.
+
+
diff --git a/docs/_docs/learn-more.md b/docs/_docs/learn-more.md
new file mode 100644
index 00000000..43e3e679
--- /dev/null
+++ b/docs/_docs/learn-more.md
@@ -0,0 +1,42 @@
+---
+docid: learn-more
+title: Learn More
+layout: docs
+permalink: /docs/learn-more/
+---
+
+Yoga is an open-source, cross-platform layout library that implements Flexbox. Yoga's focus is on creating an expressive ***layout*** library, not implementing all of CSS. Therefore, there are no plans to include support for tables, floats, or similar CSS concepts. Yoga also does not support styling properties that have no impact on layout, such as color or background properties.
+
+### Yoga vs Flexbox
+
+Yoga aims to be compatible with Flexbox according to the [w3 specification](https://www.w3.org/TR/css3-flexbox). However, Yoga was not developed to strictly adhere to the specification; thus, there are aspects where Yoga differs.
+
+#### Default values
+
+Yoga has chosen to change the default values of some properties to better fit mobile layout use cases. The following CSS block describes the differences in default values from the [Flexbox w3 specification](https://www.w3.org/TR/css3-flexbox).
+
+
+
+We have set up a [JSFiddle](https://jsfiddle.net/emilsjolander/jckmwztt/) so you can see these default values in action.
+
+#### Right-to-Left
+
+We believe that Right-to-Left (RTL) should be a first class citizen when it comes to layout. Therefore, Yoga implements non-standard RTL support for margin, padding, border, and position properties. This enables specifying these properties as `start` instead of `left` and `end` instead of `right`.
+
+
+
+#### Yoga-specific properties
+
+The goal of Yoga is to be a library which makes layout easy. Of course, implementing Flexbox, a common and well-liked system, helps meet this goal. However, there are areas where we think Yoga can evolve beyond Flexbox and provide developers with tools not included in the [Flexbox w3 specification](https://www.w3.org/TR/css3-flexbox). Currently Yoga has added one such property, `AspectRatio`, to solve a common problem we saw in many UIs.
+
+
diff --git a/docs/_docs/yoga/aspect-ratio.md b/docs/_docs/yoga/aspect-ratio.md
new file mode 100644
index 00000000..4aa23e71
--- /dev/null
+++ b/docs/_docs/yoga/aspect-ratio.md
@@ -0,0 +1,47 @@
+---
+docid: aspect-ratio
+title: Aspect ratio
+layout: docs
+permalink: /docs/aspect-ratio/
+---
+
+`AspectRatio` is a property introduced by Yoga. `AspectRatio` solves the problem of knowing one dimension of an element and an aspect ratio, this is very common when it comes to videos, images, and other media types. `AspectRatio` accepts any floating point value > 0, the default is undefined. `AspectRatio` can apply to either the width or the height of an item, it depends on which dimension is fixed. `AspectRatio` Also respects the `Min` and `Max` dimensions of an item.
+
+- If an item has a `Width` set then `AspectRatio` controls the item's height.
+- If an item has a `Height` set then `AspectRatio` controls the item's width.
+- If an item has a `FlexBasis` set then `AspectRatio` controls the item's cross axis dimension.
+- If an item's alignment is `Stretch` and its main axis is undefined then `AspectRatio` controls the item's main axis dimension.
+- If an item has `FlexGrow` or `FlexShrink` set then `AspectRatio` controls the item's cross axis dimension if it is undefined.
+- If both dimensions of an item are fixed then `AspectRatio` is ignored.
+
+#### Width = 100; AspectRatio = 2;
+
+
diff --git a/docs/_docs/yoga/rtl.md b/docs/_docs/yoga/rtl.md
new file mode 100644
index 00000000..1f9212a5
--- /dev/null
+++ b/docs/_docs/yoga/rtl.md
@@ -0,0 +1,15 @@
+---
+docid: rtl
+title: RTL
+layout: docs
+permalink: /docs/rtl/
+---
+
+The web has limited support for Right-to-Left (RTL) layouts. It does a pretty good job when it comes to text alignment and text rendering, but lacks the features needed to build fully RTL compatible UIs. Therefore, Yoga has adopted `Start` and `End` values for `Margin`, `Padding`, `Border`, and `Position` properties.
+
+
+## Direction
+
+With `Start` and `End`, you can specify these properties in your UI without having to think about whether your item will show up on the left or the right side of the screen (depending on the person's language setting). Yoga automatically handles this for you.
+
+The `Direction` property controls this behavior. `Direction` defaults to `Inherit` on all nodes except the root which defaults to `LTR`. It is up to you to detect the user's preferred direction (most platforms have a standard way of doing this) and setting this direction on the root of your layout tree.
diff --git a/docs/_includes/blog_pagination.html b/docs/_includes/blog_pagination.html
new file mode 100644
index 00000000..e26da279
--- /dev/null
+++ b/docs/_includes/blog_pagination.html
@@ -0,0 +1,28 @@
+
+{% if paginator.total_pages > 1 %}
+
+
+ {% for promo in site.data.promo %}
+ {% include plugins/{{promo.type}}.html button_href=promo.href button_text=promo.text %}
+
+ {% endfor %}
+
+
+
+
diff --git a/docs/_includes/hero.html b/docs/_includes/hero.html
new file mode 100644
index 00000000..e69de29b
diff --git a/docs/_includes/home_header.html b/docs/_includes/home_header.html
new file mode 100644
index 00000000..6f34b25a
--- /dev/null
+++ b/docs/_includes/home_header.html
@@ -0,0 +1,31 @@
+
+
+
+
+
{{ site.tagline }}
+
+
+
+ Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API familiar to many designers and opening it up to developers across different platforms.
+
+
+
Do you already know Flexbox? Then you already know Yoga.
+
Write code in a language familiar to you - Java, C#, Objective-C, C.
+
C under the hood so your code moves fast.
+
Battle tested in popular frameworks like React Native.
+
+
+
+ {% for promo in site.data.promo %}
+
+ {% include plugins/{{promo.type}}.html href=promo.href text=promo.text children=promo.children %}
+
+ {% endfor %}
+
+
+
+
+
+
+
+
diff --git a/docs/_includes/katex_import.html b/docs/_includes/katex_import.html
new file mode 100644
index 00000000..6d6b7cf4
--- /dev/null
+++ b/docs/_includes/katex_import.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/docs/_includes/katex_render.html b/docs/_includes/katex_render.html
new file mode 100644
index 00000000..56e2e897
--- /dev/null
+++ b/docs/_includes/katex_render.html
@@ -0,0 +1,210 @@
+
diff --git a/docs/_includes/nav.html b/docs/_includes/nav.html
new file mode 100644
index 00000000..0d7a1aeb
--- /dev/null
+++ b/docs/_includes/nav.html
@@ -0,0 +1,32 @@
+
diff --git a/docs/_includes/nav/header_nav.html b/docs/_includes/nav/header_nav.html
new file mode 100644
index 00000000..42069143
--- /dev/null
+++ b/docs/_includes/nav/header_nav.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
diff --git a/docs/_includes/nav_search.html b/docs/_includes/nav_search.html
new file mode 100644
index 00000000..84956b9f
--- /dev/null
+++ b/docs/_includes/nav_search.html
@@ -0,0 +1,15 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/all_share.html b/docs/_includes/plugins/all_share.html
new file mode 100644
index 00000000..59b00d61
--- /dev/null
+++ b/docs/_includes/plugins/all_share.html
@@ -0,0 +1,3 @@
+
+ {% include plugins/like_button.html %}{% include plugins/twitter_share.html %}{% include plugins/google_share.html %}
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/ascii_cinema.html b/docs/_includes/plugins/ascii_cinema.html
new file mode 100644
index 00000000..7d3f9714
--- /dev/null
+++ b/docs/_includes/plugins/ascii_cinema.html
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/button.html b/docs/_includes/plugins/button.html
new file mode 100644
index 00000000..9e499fe3
--- /dev/null
+++ b/docs/_includes/plugins/button.html
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/github_star.html b/docs/_includes/plugins/github_star.html
new file mode 100644
index 00000000..6aea70fc
--- /dev/null
+++ b/docs/_includes/plugins/github_star.html
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/github_watch.html b/docs/_includes/plugins/github_watch.html
new file mode 100644
index 00000000..64233b57
--- /dev/null
+++ b/docs/_includes/plugins/github_watch.html
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/google_share.html b/docs/_includes/plugins/google_share.html
new file mode 100644
index 00000000..1b557db8
--- /dev/null
+++ b/docs/_includes/plugins/google_share.html
@@ -0,0 +1,5 @@
+
+ {% include plugins/button.html href=include.href text=include.text %}
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/like_button.html b/docs/_includes/plugins/like_button.html
new file mode 100644
index 00000000..bcb8a7be
--- /dev/null
+++ b/docs/_includes/plugins/like_button.html
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/plugin_row.html b/docs/_includes/plugins/plugin_row.html
new file mode 100644
index 00000000..33fd6db3
--- /dev/null
+++ b/docs/_includes/plugins/plugin_row.html
@@ -0,0 +1,6 @@
+
+{% for child in include.children %}
+ {% include plugins/{{child.type}}.html href=child.href text=child.text %}
+
+{% endfor %}
+
diff --git a/docs/_includes/plugins/post_social_plugins.html b/docs/_includes/plugins/post_social_plugins.html
new file mode 100644
index 00000000..cb4d6e2e
--- /dev/null
+++ b/docs/_includes/plugins/post_social_plugins.html
@@ -0,0 +1,34 @@
+
+
+
\ No newline at end of file
diff --git a/docs/_includes/plugins/twitter_share.html b/docs/_includes/plugins/twitter_share.html
new file mode 100644
index 00000000..67f1d62f
--- /dev/null
+++ b/docs/_includes/plugins/twitter_share.html
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/docs/_includes/post.html b/docs/_includes/post.html
new file mode 100644
index 00000000..d91f8a8a
--- /dev/null
+++ b/docs/_includes/post.html
@@ -0,0 +1,35 @@
+