mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
parent
c21c204804
commit
a4f0fa179e
15 changed files with 59 additions and 3 deletions
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>To run the script directly from the command-line, you can use the following, filling in the parameter values as appropriate.</p>
|
||||
<p><strong>Bash</strong></p>
|
||||
<pre><code class="hljs css language-bash">GIT_USER=<GIT_USER> \
|
||||
CURRENT_BRANCH=master \
|
||||
USE_SSH=<span class="hljs-literal">true</span> \
|
||||
yarn run publish-gh-pages <span class="hljs-comment"># or `npm run publish-gh-pages`</span>
|
||||
</code></pre>
|
||||
<p><strong>Windows</strong></p>
|
||||
<pre><code class="hljs css language-batch">cmd /C "<span class="hljs-keyword">set</span> GIT_USER=<GIT_USER> && <span class="hljs-keyword">set</span> CURRENT_BRANCH=<span class="hljs-keyword">master</span> && <span class="hljs-keyword">set</span> USE_SSH=<span class="hljs-literal">true</span> && yarn run publish-gh-pages<span class="hljs-string">"
|
||||
</span></code></pre>
|
||||
<p>There are also two optional parameters that are set as environment variables:</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>To run the script directly from the command-line, you can use the following, filling in the parameter values as appropriate.</p>
|
||||
<p><strong>Bash</strong></p>
|
||||
<pre><code class="hljs css language-bash">GIT_USER=<GIT_USER> \
|
||||
CURRENT_BRANCH=master \
|
||||
USE_SSH=<span class="hljs-literal">true</span> \
|
||||
yarn run publish-gh-pages <span class="hljs-comment"># or `npm run publish-gh-pages`</span>
|
||||
</code></pre>
|
||||
<p><strong>Windows</strong></p>
|
||||
<pre><code class="hljs css language-batch">cmd /C "<span class="hljs-keyword">set</span> GIT_USER=<GIT_USER> && <span class="hljs-keyword">set</span> CURRENT_BRANCH=<span class="hljs-keyword">master</span> && <span class="hljs-keyword">set</span> USE_SSH=<span class="hljs-literal">true</span> && yarn run publish-gh-pages<span class="hljs-string">"
|
||||
</span></code></pre>
|
||||
<p>There are also two optional parameters that are set as environment variables:</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue