diff options
author | awatson@chromium.org <awatson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-06 18:23:21 +0000 |
---|---|---|
committer | awatson@chromium.org <awatson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-06 18:23:21 +0000 |
commit | 36ec5d84d1736362b431e582497da88516a220b2 (patch) | |
tree | 119e2951f1b3962efb91625445de2dc7ede775e1 /native_client_sdk | |
parent | 8b160d88bd40a90b0f65dd6c859a8b00636ac71d (diff) | |
download | chromium_src-36ec5d84d1736362b431e582497da88516a220b2.zip chromium_src-36ec5d84d1736362b431e582497da88516a220b2.tar.gz chromium_src-36ec5d84d1736362b431e582497da88516a220b2.tar.bz2 |
Porting changes on DevSite back to Chromium:
RST-ifying new landing page. Adding needed CSS. Renaming the original
index.html to sitemap.html.
R=binji@chromium.org
Review URL: https://codereview.chromium.org/113133015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/doc/_static/css/local_extensions.css | 52 | ||||
-rw-r--r-- | native_client_sdk/src/doc/index.rst | 124 | ||||
-rw-r--r-- | native_client_sdk/src/doc/sitemap.rst | 56 |
3 files changed, 178 insertions, 54 deletions
diff --git a/native_client_sdk/src/doc/_static/css/local_extensions.css b/native_client_sdk/src/doc/_static/css/local_extensions.css index 9f1202f..ea55fe3 100644 --- a/native_client_sdk/src/doc/_static/css/local_extensions.css +++ b/native_client_sdk/src/doc/_static/css/local_extensions.css @@ -47,6 +47,58 @@ th.center {text-align: center;} .features section p {margin-bottom: 0;} p.date {margin-top: 0; margin-bottom: 0.5em; font-style: italic;} blockquote.indent-only {font-style: normal; color: #000; } +#home .button-nacl { + border-top: 1px solid #96d1f8; + background: #65a9d7; + background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#65a9d7)); + background: -webkit-linear-gradient(top, #3e779d, #65a9d7); + background: -moz-linear-gradient(top, #3e779d, #65a9d7); + background: -ms-linear-gradient(top, #3e779d, #65a9d7); + background: -o-linear-gradient(top, #3e779d, #65a9d7); + padding: 5px 10px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0; + -moz-box-shadow: rgba(0,0,0,1) 0 1px 0; + box-shadow: rgba(0,0,0,1) 0 1px 0; + text-shadow: rgba(0,0,0,.4) 0 1px 0; + color: white; + font-size: 18px; + text-decoration: none; + vertical-align: middle; + } +#home .button-nacl:visited { + color: #fff; + } +#home .button-nacl:hover { + border-top-color: #28597a; + background: #28597a; + color: #ccc; + } +#home .button-nacl:active { + border-top-color: #1b435e; + background: #1b435e; + } +#home .button-download { + float: right; + margin: 2em 4em; + } +#home .big-intro { + font-size: 16px; + } +#home iframe.video { + display: block; + margin: 1em auto 0; + } +#home .right-side { + float: right; + width: 54%; + background-color: #FFF; + } +#home .right-side-inner { + padding-left: 40px; + } /* ======================== */ /* OLD STYLES FROM CODESITE */ diff --git a/native_client_sdk/src/doc/index.rst b/native_client_sdk/src/doc/index.rst index 2b32153..93187b7 100644 --- a/native_client_sdk/src/doc/index.rst +++ b/native_client_sdk/src/doc/index.rst @@ -1,54 +1,70 @@ -Welcome to Native Client's documentation! -========================================= - -Contents: - -.. toctree:: - :maxdepth: 2 - - overview.rst - quick-start.rst - nacl-and-pnacl.rst - glossary.rst - sdk/index.rst - sdk/download.rst - sdk/examples.rst - sdk/release-notes.rst - devguide/index.rst - devguide/tutorial/index.rst - devguide/tutorial/tutorial-part1.rst - devguide/tutorial/tutorial-part2.rst - devguide/devcycle/index.rst - devguide/devcycle/building.rst - devguide/devcycle/running.rst - devguide/devcycle/debugging.rst - devguide/devcycle/vs-addin.rst - devguide/devcycle/dynamic-loading.rst - devguide/coding/index.rst - devguide/coding/3D-graphics.rst - devguide/coding/audio.rst - devguide/coding/application-structure.rst - devguide/coding/native-client-modules.rst - devguide/coding/file-io.rst - devguide/coding/nacl_io.rst - devguide/coding/message-system.rst - devguide/coding/progress-events.rst - devguide/coding/url-loading.rst - devguide/coding/view-focus-input-events.rst - devguide/distributing.rst - community/index.rst - community/application-gallery.rst - community/middleware.rst - community/security-contest/index.rst - community/security-contest/contest-announcement.rst - community/security-contest/contest-terms.rst - community/security-contest/contest-faq.rst - peppercpp/index.rst - reference/index.rst - reference/pnacl-bitcode-abi.rst - reference/pnacl-c-cpp-language-support.rst - reference/nacl-manifest-format.rst - publications-and-presentations.rst - faq.rst - help.rst - version.rst +######################## +Welcome to Native Client +######################## + +.. raw:: html + + <div id="home"> + <a class="button-nacl button-download" href="/native-client/dev/sdk/download">Download SDK</a> + <div class="big-intro"> + +**Native Client** is a sandbox for running compiled C and C++ code in the +browser efficiently and securely, independent of the user's operating system. +**Portable Native Client** extends that technology with +architecture independence, letting developers compile their code once to run +in any website and on any architecture. + +In short, Native Client brings the **performance** and **low-level control** +of native code to modern web browsers, without sacrificing the **security** and +**portability** of the web. Watch the video below for an overview of +Native Client, including its goals, how it works, and how +Portable Native Client lets developers run native compiled code on the web. + +.. raw:: html + + </div> + + <iframe class="video" width="640" height="360" + src="//www.youtube.com/embed/MvKEomoiKBA?rel=0" frameborder="0"></iframe> + + <div class="right-side"> + <div class="right-side-inner"> + <h2>Guiding principles of Native Client</h2> + <div class="big-intro"> + <ul> + <li>Developer flexibility to program in any language.</li> + <li>Running close to the metal to allow access to performance gains.</li> + <li>Protecting users from malicious code and malware.</li> + <li>Write-once, run-anywhere code portability across all user architectures.</li> + </ul> + +.. raw:: html + + </div> + </div> + </div> + +Get started with Native Client +============================== + +.. raw:: html + + <div class="big-intro"> + +#. :doc:`Download the Native Client SDK <sdk/download>`. +#. Read the :doc:`Technical Overview <overview>`. +#. Learn how to use the SDK and build both a web app and a Chrome app in the + :doc:`Getting Started Tutorial <devguide/tutorial/tutorial-part1>`. + +.. raw:: html + + </div> + <div class="big-intro" style="clear: both;"> + +Send us questions, comments, and feedback: +`native-client-discuss <https://groups.google.com/forum/#!forum/native-client-discuss>`_. + +.. raw:: html + + </div> + </div> diff --git a/native_client_sdk/src/doc/sitemap.rst b/native_client_sdk/src/doc/sitemap.rst new file mode 100644 index 0000000..3de3aaa --- /dev/null +++ b/native_client_sdk/src/doc/sitemap.rst @@ -0,0 +1,56 @@ +:orphan: + +Native Client Documentation Sitemap +=================================== + +Contents: + +.. toctree:: + :maxdepth: 2 + + overview.rst + quick-start.rst + nacl-and-pnacl.rst + glossary.rst + sdk/index.rst + sdk/download.rst + sdk/examples.rst + sdk/release-notes.rst + devguide/index.rst + devguide/tutorial/index.rst + devguide/tutorial/tutorial-part1.rst + devguide/tutorial/tutorial-part2.rst + devguide/devcycle/index.rst + devguide/devcycle/building.rst + devguide/devcycle/running.rst + devguide/devcycle/debugging.rst + devguide/devcycle/vs-addin.rst + devguide/devcycle/dynamic-loading.rst + devguide/coding/index.rst + devguide/coding/3D-graphics.rst + devguide/coding/audio.rst + devguide/coding/application-structure.rst + devguide/coding/native-client-modules.rst + devguide/coding/file-io.rst + devguide/coding/nacl_io.rst + devguide/coding/message-system.rst + devguide/coding/progress-events.rst + devguide/coding/url-loading.rst + devguide/coding/view-focus-input-events.rst + devguide/distributing.rst + community/index.rst + community/application-gallery.rst + community/middleware.rst + community/security-contest/index.rst + community/security-contest/contest-announcement.rst + community/security-contest/contest-terms.rst + community/security-contest/contest-faq.rst + peppercpp/index.rst + reference/index.rst + reference/pnacl-bitcode-abi.rst + reference/pnacl-c-cpp-language-support.rst + reference/nacl-manifest-format.rst + publications-and-presentations.rst + faq.rst + help.rst + version.rst |