Ver Fonte

Small improvements to quickstart text.

JC Brand há 10 anos atrás
pai
commit
952b5098cd
1 ficheiros alterados com 6 adições e 5 exclusões
  1. 6 5
      docs/source/quickstart.rst

+ 6 - 5
docs/source/quickstart.rst

@@ -22,14 +22,14 @@ tags:
 You need to initialize Converse.js with configuration settings according to
 You need to initialize Converse.js with configuration settings according to
 your requirements.
 your requirements.
 
 
-Please refer to the :ref:`configuration-variables` section further below for info on
-all the available configuration settings.
+Please refer to the :ref:`configuration-variables` section for info on all the available configuration settings.
 
 
-To configure Converse.js, put the following inline Javascript code at the
+To configure and initialize Converse.js, put the following inline Javascript code at the
 bottom of your page (after the closing *</body>* element).
 bottom of your page (after the closing *</body>* element).
 
 
 .. code-block:: javascript
 .. code-block:: javascript
 
 
+    <script>
     require(['converse'], function (converse) {
     require(['converse'], function (converse) {
         converse.initialize({
         converse.initialize({
             bosh_service_url: 'https://bind.conversejs.org', // Please use this connection manager only for testing purposes
             bosh_service_url: 'https://bind.conversejs.org', // Please use this connection manager only for testing purposes
@@ -38,14 +38,15 @@ bottom of your page (after the closing *</body>* element).
             roster_groups: true
             roster_groups: true
         });
         });
     });
     });
+    </script>
 
 
 The `index.html <https://github.com/jcbrand/converse.js/blob/master/index.html>`_ file inside the
 The `index.html <https://github.com/jcbrand/converse.js/blob/master/index.html>`_ file inside the
 Converse.js repository may serve as a nice usable example.
 Converse.js repository may serve as a nice usable example.
 
 
-These minified files provide the same demo-like functionality as is available
+These minified `.js` and `.css` files provide the same demo-like functionality as is available
 on the `conversejs.org <http://conversejs.org>`_ website. Useful for testing or demoing.
 on the `conversejs.org <http://conversejs.org>`_ website. Useful for testing or demoing.
 
 
-You'll most likely want to implement some kind of single persistent session solution for
+You'll most likely want to implement some kind of persistent single-session solution for
 your website, where users authenticate once in your website and then stay
 your website, where users authenticate once in your website and then stay
 logged in to their XMPP session upon the next page reload.
 logged in to their XMPP session upon the next page reload.