Deploy website

Deploy website version based on 226741598f
This commit is contained in:
Website Deployment Script 2017-10-26 19:16:15 +00:00
parent 226741598f
commit 09740316dd
8 changed files with 25 additions and 25 deletions

View file

@ -14,15 +14,15 @@
<pre><code class="hljs">yarn <span class="hljs-keyword">run</span><span class="bash"> start
</span></code></pre>
<p>The same script can be invoked using npm:</p>
<pre><code>npm <span class="hljs-keyword">run</span><span class="bash"> start
<pre><code class="hljs">npm <span class="hljs-keyword">run</span><span class="bash"> start
</span></code></pre>
<p>To run a particular script, just replace the <code>start</code> command in the examples above with the command associated with your script.</p>
<h2><a class="anchor" name="using-arguments"></a>Using arguments <a class="hash-link" href="#using-arguments">#</a></h2>
<p>Some commands support optional arguments. For example, to start a server on port 8080, you can specify the <code>--port</code> argument when running <code>start</code>:</p>
<pre><code>yarn <span class="hljs-keyword">run</span><span class="bash"> start --port 8080
<pre><code class="hljs">yarn <span class="hljs-keyword">run</span><span class="bash"> start --port 8080
</span></code></pre>
<p>If you run Docusaurus using npm, you can still use the command line arguments by inserting a <code>--</code> between <code>npm run &lt;command&gt;</code> and the command arguments:</p>
<pre><code>npm <span class="hljs-keyword">run</span><span class="bash"> start -- --port 8080
<pre><code class="hljs">npm <span class="hljs-keyword">run</span><span class="bash"> start -- --port 8080
</span></code></pre>
<h2><a class="anchor" name="configuration"></a>Configuration <a class="hash-link" href="#configuration">#</a></h2>
<p>These scripts are set up under the <code>&quot;scripts&quot;</code> key in your <code>website/package.json</code> file as part of the installation process. If you need help setting them up again, please refer to the <a href="/docs/en/installation.html">Installation guide</a>.</p>