Site Preparation
After installing Docusaurus, you now have a skeleton to work from for your specific website. The following discusses the rest of the Docusaurus structure in order for you to prepare your site.
Directory Structure
As shown after you installed Docusaurus, the initialization script created a directory structure similar to:
root-of-repo
├── docs-examples-from-docusaurus
│ └── doc1.md
│ └── doc2.md
│ └── doc3.md
│ └── exampledoc4.md
│ └── exampledoc5.md
└── website
│ └── blog-examples-from-docusaurus
│ └── 2016-03-11-blog-post.md
│ └── 2017-04-10-blog-post-two.md
│ └── core
│ └── Footer.js
│ └── node_modules
│ └── package.json
│ └── pages
│ └── sidebars.json
│ └── siteConfig.js
│ └── static
You may have already renamed the example blog (website/blog-examples-from-docusaurus and document (docs-examples-from-docusaurus) directories when you verified the installation.
website/core/Footer.js
dosyası Docusaurus tarafından üretilen sitenin alt bilgi gibi davranan bir React bileşenidir ve kullanıcı tarafından özelleştirilmelidir.website/blog-examples-from-docusaurus
klasörü markdown ile yazılmış blog postlarının örneklerini içerir.docs-examples-from-docusaurus
klasörü markdown ile yazılmış örnek belgeleme dosyaları içerir.website/pages
klasörü site için örnek üst seviye sayfalar içerir.website/static
klasörü örnek siteye göre statik değerler içerir.website/siteConfig.js
dosyası Docusaurus tarafından kullanılan ana yapılandırma dosyasıdır.
website/siteConfig.js
ve website/core/Footer.js
dosyalarını sürdürmeniz gerekecek fakat onları istediğiniz gibi düzenleyebilirsiniz.
website/pages
ve website/static
klasörlerini sürdürmelisiniz fakat içlerindeki içeriği istediğiniz gibi değiştirebilirsiniz. website/pages
içerisinde en azından en/index.js
yada en/index.html
dosyasına ve website/static
içerisinde başlık simgeniz olarak kullanılacak bir resme sahip olmalısınız.