mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 21:03:47 +02:00
parent
c21c204804
commit
a4f0fa179e
15 changed files with 59 additions and 3 deletions
|
@ -165,11 +165,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>
|
||||
|
@ -343,7 +347,7 @@ e.g.</li>
|
|||
</tbody>
|
||||
</table>
|
||||
<p>Alter your <code>siteConfig.js</code> to add a property <code>'githubHost'</code> which represents the GitHub Enterprise hostname. Alternatively, set an environment variable <code>GITHUB_HOST</code> when executing the publish command.</p>
|
||||
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 2019-10-12 by Yangshun Tay</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/site-creation"><span class="arrow-prev">← </span><span>Creating your site</span></a><a class="docs-next button" href="/docs/en/next/docker"><span>Docker</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#building-static-html-pages">Building Static HTML Pages</a></li><li><a href="#hosting-static-html-pages">Hosting Static HTML Pages</a><ul class="toc-headings"><li><a href="#hosting-on-a-service">Hosting on a Service:</a></li><li><a href="#using-zeit-now">Using ZEIT Now</a></li><li><a href="#using-github-pages">Using GitHub Pages</a></li></ul></li><li><a href="#automating-deployments-using-continuous-integration">Automating Deployments Using Continuous Integration</a><ul class="toc-headings"><li><a href="#using-circleci-20">Using CircleCI 2.0</a></li><li><a href="#tips-amp-tricks">Tips & Tricks</a></li><li><a href="#using-travis-ci">Using Travis CI</a></li><li><a href="#hosting-on-zeit-now">Hosting on ZEIT Now</a></li><li><a href="#hosting-on-netlify">Hosting on Netlify</a></li><li><a href="#hosting-on-render">Hosting on Render</a></li><li><a href="#publishing-to-github-enterprise">Publishing to GitHub Enterprise</a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/docusaurus_monochrome.svg" alt="Docusaurus" width="66" height="58"/></a><div class="footerSection"><h5>Docs</h5><a href="
|
||||
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 2019-10-29 by Dylan Myers</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/site-creation"><span class="arrow-prev">← </span><span>Creating your site</span></a><a class="docs-next button" href="/docs/en/next/docker"><span>Docker</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#building-static-html-pages">Building Static HTML Pages</a></li><li><a href="#hosting-static-html-pages">Hosting Static HTML Pages</a><ul class="toc-headings"><li><a href="#hosting-on-a-service">Hosting on a Service:</a></li><li><a href="#using-zeit-now">Using ZEIT Now</a></li><li><a href="#using-github-pages">Using GitHub Pages</a></li></ul></li><li><a href="#automating-deployments-using-continuous-integration">Automating Deployments Using Continuous Integration</a><ul class="toc-headings"><li><a href="#using-circleci-20">Using CircleCI 2.0</a></li><li><a href="#tips-amp-tricks">Tips & Tricks</a></li><li><a href="#using-travis-ci">Using Travis CI</a></li><li><a href="#hosting-on-zeit-now">Hosting on ZEIT Now</a></li><li><a href="#hosting-on-netlify">Hosting on Netlify</a></li><li><a href="#hosting-on-render">Hosting on Render</a></li><li><a href="#publishing-to-github-enterprise">Publishing to GitHub Enterprise</a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/docusaurus_monochrome.svg" alt="Docusaurus" width="66" height="58"/></a><div class="footerSection"><h5>Docs</h5><a href="
|
||||
/docs/en/installation">Getting Started</a><a href="
|
||||
/docs/en/versioning">Versioning</a><a href="
|
||||
/docs/en/translation">Localization</a><a href="
|
||||
|
|
|
@ -165,11 +165,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>
|
||||
|
@ -343,7 +347,7 @@ e.g.</li>
|
|||
</tbody>
|
||||
</table>
|
||||
<p>Alter your <code>siteConfig.js</code> to add a property <code>'githubHost'</code> which represents the GitHub Enterprise hostname. Alternatively, set an environment variable <code>GITHUB_HOST</code> when executing the publish command.</p>
|
||||
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 2019-10-12 by Yangshun Tay</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/site-creation"><span class="arrow-prev">← </span><span>Creating your site</span></a><a class="docs-next button" href="/docs/en/next/docker"><span>Docker</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#building-static-html-pages">Building Static HTML Pages</a></li><li><a href="#hosting-static-html-pages">Hosting Static HTML Pages</a><ul class="toc-headings"><li><a href="#hosting-on-a-service">Hosting on a Service:</a></li><li><a href="#using-zeit-now">Using ZEIT Now</a></li><li><a href="#using-github-pages">Using GitHub Pages</a></li></ul></li><li><a href="#automating-deployments-using-continuous-integration">Automating Deployments Using Continuous Integration</a><ul class="toc-headings"><li><a href="#using-circleci-20">Using CircleCI 2.0</a></li><li><a href="#tips-amp-tricks">Tips & Tricks</a></li><li><a href="#using-travis-ci">Using Travis CI</a></li><li><a href="#hosting-on-zeit-now">Hosting on ZEIT Now</a></li><li><a href="#hosting-on-netlify">Hosting on Netlify</a></li><li><a href="#hosting-on-render">Hosting on Render</a></li><li><a href="#publishing-to-github-enterprise">Publishing to GitHub Enterprise</a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/docusaurus_monochrome.svg" alt="Docusaurus" width="66" height="58"/></a><div class="footerSection"><h5>Docs</h5><a href="
|
||||
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 2019-10-29 by Dylan Myers</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/site-creation"><span class="arrow-prev">← </span><span>Creating your site</span></a><a class="docs-next button" href="/docs/en/next/docker"><span>Docker</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#building-static-html-pages">Building Static HTML Pages</a></li><li><a href="#hosting-static-html-pages">Hosting Static HTML Pages</a><ul class="toc-headings"><li><a href="#hosting-on-a-service">Hosting on a Service:</a></li><li><a href="#using-zeit-now">Using ZEIT Now</a></li><li><a href="#using-github-pages">Using GitHub Pages</a></li></ul></li><li><a href="#automating-deployments-using-continuous-integration">Automating Deployments Using Continuous Integration</a><ul class="toc-headings"><li><a href="#using-circleci-20">Using CircleCI 2.0</a></li><li><a href="#tips-amp-tricks">Tips & Tricks</a></li><li><a href="#using-travis-ci">Using Travis CI</a></li><li><a href="#hosting-on-zeit-now">Hosting on ZEIT Now</a></li><li><a href="#hosting-on-netlify">Hosting on Netlify</a></li><li><a href="#hosting-on-render">Hosting on Render</a></li><li><a href="#publishing-to-github-enterprise">Publishing to GitHub Enterprise</a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/docusaurus_monochrome.svg" alt="Docusaurus" width="66" height="58"/></a><div class="footerSection"><h5>Docs</h5><a href="
|
||||
/docs/en/installation">Getting Started</a><a href="
|
||||
/docs/en/versioning">Versioning</a><a href="
|
||||
/docs/en/translation">Localization</a><a href="
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>Pour exécuter le script directement à partir de la ligne de commande, vous pouvez utiliser le suivant, en remplissant les valeurs de paramètre comme il se doit.</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>Il y a également deux paramètres optionnels définis comme variables d'environnement :</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>Pour exécuter le script directement à partir de la ligne de commande, vous pouvez utiliser le suivant, en remplissant les valeurs de paramètre comme il se doit.</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>Il y a également deux paramètres optionnels définis comme variables d'environnement :</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>명령행에서 스크립트를 바로 실행하기 위해서는 적절하게 파라미터 값을 채워주어야 합니다.</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"># 또는 `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>환경 변수로 설정할 수 있는 추가적인 2가지 파라미터는 아래와 같습니다.</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>명령행에서 스크립트를 바로 실행하기 위해서는 적절하게 파라미터 값을 채워주어야 합니다.</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"># 또는 `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>환경 변수로 설정할 수 있는 추가적인 2가지 파라미터는 아래와 같습니다.</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>Para rodar o script diretamente da linha de comando, você pode usar o seguinte comando, preenchendo os valores de parâmetros conforme apropriado.</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"># ou `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>Há também dois parâmetros opcionais que são definidos como variáveis de ambiente:</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>Para rodar o script diretamente da linha de comando, você pode usar o seguinte comando, preenchendo os valores de parâmetros conforme apropriado.</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"># ou `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>Há também dois parâmetros opcionais que são definidos como variáveis de ambiente:</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>
|
||||
|
|
|
@ -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>Чтобы запустить скрипт непосредственно из командной строки, вы можете использовать следующую команду, заполняя значения параметров соответствующим образом.</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"># или `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>Есть также два необязательных параметра, которые задаются в качестве переменных окружения:</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -163,11 +163,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>Чтобы запустить скрипт непосредственно из командной строки, вы можете использовать следующую команду, заполняя значения параметров соответствующим образом.</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"># или `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>Есть также два необязательных параметра, которые задаются в качестве переменных окружения:</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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path fill-opacity="0" d="M0 0h50v50H0z"/><path d="M18.623 4.256c-7.913 0-14.367 6.454-14.367 14.367 0 7.913 6.454 14.367 14.367 14.367 3.241 0 6.228-1.095 8.637-2.918a2 2 0 0 0 .15.166l14.898 14.898a2 2 0 1 0 2.828-2.828L30.238 27.41a2 2 0 0 0-.166-.15c1.823-2.409 2.918-5.396 2.918-8.637 0-7.913-6.454-14.367-14.367-14.367zm0 3.59A10.75 10.75 0 0 1 29.4 18.623c0 5.973-4.804 10.777-10.777 10.777S7.846 24.595 7.846 18.623A10.75 10.75 0 0 1 18.623 7.846z" color="#000" fill="#555" style="block-progression:tb;isolation:auto;mix-blend-mode:normal;text-decoration-color:#000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-transform:none"/></svg>
|
||||
<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h50v50H0z" fill="none"/><path d="M18.623 4.256c-7.913 0-14.367 6.454-14.367 14.367 0 7.913 6.454 14.367 14.367 14.367 3.241 0 6.228-1.095 8.637-2.918a2 2 0 0 0 .15.166l14.898 14.898a2 2 0 1 0 2.828-2.828L30.238 27.41a2 2 0 0 0-.166-.15c1.823-2.409 2.918-5.396 2.918-8.637 0-7.913-6.454-14.367-14.367-14.367zm0 3.59A10.75 10.75 0 0 1 29.4 18.623c0 5.973-4.804 10.777-10.777 10.777S7.846 24.595 7.846 18.623A10.75 10.75 0 0 1 18.623 7.846z" color="#000" fill="#555" style="block-progression:tb;isolation:auto;mix-blend-mode:normal;text-decoration-color:#000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-transform:none"/></svg>
|
Before Width: | Height: | Size: 753 B After Width: | Height: | Size: 748 B |
Loading…
Add table
Add a link
Reference in a new issue