You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

directory-structure.md 1.6KB

7 years ago
7 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. +++
  2. title = "Directory structure"
  3. weight = 3
  4. +++
  5. After running `gutenberg init`, you should see the following structure in your folder:
  6. ```bash
  7. .
  8. ├── config.toml
  9. ├── content
  10. ├── sass
  11. ├── static
  12. ├── templates
  13. └── themes
  14. 5 directories, 1 file
  15. ```
  16. Here's a high level overview of each of these folders and `config.toml`.
  17. ## `config.toml`
  18. A mandatory configuration file of Gutenberg in TOML format.
  19. It is explained in details in the [Configuration page](./documentation/getting-started/configuration.md).
  20. ## `content`
  21. Where all your markup content lies: this will most likely be mostly `.md` files.
  22. Each folder in the `content` directory represents a [section](./documentation/content/section.md)
  23. that contains [pages](./documentation/content/page.md) : your `.md` files.
  24. To learn more, read [the content overview](./documentation/content/overview.md).
  25. ## `sass`
  26. Contains the [Sass](http://sass-lang.com) files to be compiled. Non-Sass files will be ignored.
  27. ## `static`
  28. Contains any kind of files. All the files/folders in the `static` folder will be copied as-is in the output directory.
  29. ## `templates`
  30. Contains all the [Tera](tera.netlify.com) templates that will be used to render this site.
  31. Have a look at the [Templates](./documentation/templates/_index.md) to learn more on the default templates
  32. and the variables available.
  33. ## `themes`
  34. Contains themes that can be used for that site. If you are not planning to use themes, you can safely ignore
  35. this folder and let it be. If you want to learn about themes, head to the [themes documentation](./documentation/themes/_index.md).