mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 01:47:17 +02:00
parent
9b86fe760b
commit
80b7a28422
714 changed files with 1026 additions and 1026 deletions
|
@ -85,7 +85,7 @@
|
|||
<p>The easiest way to get started customizing your home page is to use the example site that was <a href="/docs/zh-CN/next/site-creation">created</a> when you ran the <a href="/docs/zh-CN/next/installation">Docusaurus initialization script</a>.</p>
|
||||
<p>You can <a href="/docs/zh-CN/next/site-preparation#verifying-installation">start</a> your local server and go to <code>http://localhost:3000</code> to see what the example home page looks like. 在那里,编辑<code>website/pages/en/index.js</code>文件以及它的各种组件来使用你的这个项目需要用到的图像和文本。</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="加入其它自定义页面"></a><a href="#加入其它自定义页面" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>加入其它自定义页面</h2>
|
||||
<p>Docusaurus provides some simple example pages in the <code>website/pages/en</code> directory, including <code>index.js</code>, <code>users.js</code>, and <code>help.js</code>. These are good examples to showcase how to create a custom page for Docusaurus.</p>
|
||||
<p>Docusaurus provides some helpful example pages in the <code>website/pages/en</code> directory, including <code>index.js</code>, <code>users.js</code>, and <code>help.js</code>. These are good examples to showcase how to create a custom page for Docusaurus.</p>
|
||||
<pre><code class="hljs css language-bash">root-directory
|
||||
├── docs
|
||||
└── website
|
||||
|
@ -102,7 +102,7 @@
|
|||
├── siteConfig.js
|
||||
└── static
|
||||
</code></pre>
|
||||
<p>Of course, you are also free to write your own pages. It is strongly suggested that you at least have an index page, but none of the pages provided are mandatory to include in your site. 有关如何使用提供的组件或包含您自己的部件的详细信息, 可在 <a href="/docs/zh-CN/next/api-pages"> 的 </a> 处找到。 有关如何链接到页眉导航栏中的不同页面的信息, 请 <a href="/docs/zh-CN/next/navigation"> 的</a> 处找到。</p>
|
||||
<p>You are also free to write your own pages. It is strongly suggested that you at least have an index page, but none of the pages provided are mandatory to include in your site. 有关如何使用提供的组件或包含您自己的部件的详细信息, 可在 <a href="/docs/zh-CN/next/api-pages"> 的 </a> 处找到。 有关如何链接到页眉导航栏中的不同页面的信息, 请 <a href="/docs/zh-CN/next/navigation"> 的</a> 处找到。</p>
|
||||
<blockquote>
|
||||
<p>If you want your page to show up in your navigation header, you will need to update <code>siteConfig.js</code> to add to the <code>headerLinks</code> element. e.g., <code>{ page: 'about-slash', label: 'About/' }</code>,</p>
|
||||
</blockquote>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue