mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
parent
81465cdbf9
commit
845333ebfa
129 changed files with 924 additions and 924 deletions
|
@ -96,7 +96,7 @@ organizationName: 'USERNAME' // Your GitHub username.
|
|||
</ol>
|
||||
<ol start="2">
|
||||
<li>In Terminal or Git Bash, kill the web server by pressing <strong>Cmd+C</strong> or <strong>Ctrl+C</strong>.</li>
|
||||
<li>In the <code>website</code> directory, run <code>npm run build</code> or <code>yarn build</code>. The command generates a <code>build</code> directory inside the <code>website</code> directory, containing HTML files (and other file types) for all of your docs and other pages. Make sure the <code>docusaurus-tutorial/website/build</code> directory is successfully created before running the next step.</li>
|
||||
<li>在 <code>website</code> 目录下,运行 <code>npm run build</code> 或 <code>yarn build</code> 命令。 The command generates a <code>build</code> directory inside the <code>website</code> directory, containing HTML files (and other file types) for all of your docs and other pages. Make sure the <code>docusaurus-tutorial/website/build</code> directory is successfully created before running the next step.</li>
|
||||
<li>Replace <code>USERNAME</code> with your GitHub username and run the following command.</li>
|
||||
</ol>
|
||||
<pre><code class="hljs css language-sh">GIT_USER=USERNAME CURRENT_BRANCH=master USE_SSH=<span class="hljs-literal">true</span> npm run publish-gh-pages <span class="hljs-comment"># SSH</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue