Pārlūkot izejas kodu

Adjustments to templates

Jordi Boggiano 13 gadi atpakaļ
vecāks
revīzija
0f120bd074

+ 2 - 2
src/Packagist/WebBundle/Resources/views/About/aboutComposer.html.twig

@@ -48,14 +48,14 @@
         <p>Of course if you do that you should define an alternative repository or Composer will be pretty useless.</p>
 
         <h2>Adding a git repository containing a composer package</h2>
-        <p>Git repositories can be used as repositories if they contain a composer.json, even if the packages are not available on Packagist. They could also be private repositories that you don't want to make accessible to everyone. Here's how to do it:</p>
+        <p>VCS (only Git so far) repositories can be used as repositories if they contain a composer.json, even if the packages are not available on Packagist. They could also be private repositories that you don't want to make accessible to everyone. Here's how to do it:</p>
 <pre>
 {
     "name": "my-project",
     "version": "1.0.0",
     "repositories": {
         "MyRepo": {
-            "git": {
+            "vcs": {
                 "url": "git://example.org/MyRepo.git"
             }
         }

+ 20 - 20
src/Packagist/WebBundle/Resources/views/Web/index.html.twig

@@ -14,30 +14,30 @@
                 <h2>Define Your Dependencies</h2>
                 <p>Put a file named <em>composer.json</em> at the root of your project, containing your project dependencies:</p>
                 <pre>
-    {
-        "require": {
-            "vendor/package": "1.3.2",
-            "vendor/package2": "1.*",
-            "vendor/package3": ">=2.0.3"
-        }
+{
+    "require": {
+        "vendor/package": "1.3.2",
+        "vendor/package2": "1.*",
+        "vendor/package3": ">=2.0.3"
     }
-    </pre>
+}
+</pre>
                 <h2>Install Composer In Your Project</h2>
                 <p>Run this in your command line:</p>
                 <pre>
-    wget http://getcomposer.org/composer.phar
-    </pre>
+wget http://getcomposer.org/composer.phar
+</pre>
                 <p>Or <a href="http://getcomposer.org/composer.phar">download composer</a> into your project root.</p>
                 <h2>Install Dependencies</h2>
                 <p>Execute this in your project root.</p>
                 <pre>
-    php composer.phar install
-    </pre>
+php composer.phar install
+</pre>
                 <h2>Autoload Dependencies</h2>
                 <p>If all your packages follow the <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md">PSR-0</a> standard, you can autoload all the dependencies by adding this to your code:</p>
                 <pre>
-    require 'vendor/.composer/autoload.php';
-    </pre>
+require 'vendor/.composer/autoload.php';
+</pre>
 
                 <p><a href="{{ path('browse') }}">Browse</a> the packages we have to find more great libraries you can use in your project.</p>
             </div>
@@ -49,14 +49,14 @@
                 <h2>Define Your Package</h2>
                 <p>Put a file named <em>composer.json</em> at the root of your package, containing this information:</p>
                 <pre>
-    {
-        "name": "your-vendor-name/package-name",
-        "require": {
-            "php": ">=5.3.0",
-            "another-vendor/package": "1.*",
-        }
+{
+    "name": "your-vendor-name/package-name",
+    "require": {
+        "php": ">=5.3.0",
+        "another-vendor/package": "1.*"
     }
-    </pre>
+}
+</pre>
                 <p>This is the strictly minimal information you have to give.</p>
                 <p>For more details about package naming and the fields you can use to document your package better, see the <a href="{{ path('about') }}">about</a> page.</p>
                 <h2>Commit The File</h2>