Overview

Last updated Jun 25, 2020

Flexibility

This feature can be used for publishing content such as:

  • Online courses
  • Project or software documentation
  • Tutorials

Thecoursesfolder may be renamed. For example, we can rename it todocsfor software/project documentation ortutorialsfor creating an online course.

Delete tutorials

To remove these pages, delete thecoursesfolder and see below to delete the associated menu link.

Update site menu

After renaming or deleting thecoursesfolder, you may wish to update any[[main]]menu links to it by editing your menu configuration atconfig/_default/menus.toml.

For example, if you delete this folder, you can remove the following from your menu configuration:

[[main]]
  name = "Courses"
  url = "courses/"
  weight = 50

Or, if you are creating a software documentation site, you can rename thecoursesfolder todocsand update the associatedCoursesmenu configuration to:

[[main]]
  name = "Docs"
  url = "docs/"
  weight = 50

Update the docs menu

If you use thedocslayout, note that the name of the menu in the front matter should be in the form[menu.X]whereXis the folder name. Hence, if you rename thecourses/example/folder, you should also rename the menu definitions in the front matter of files withincourses/example/from[menu.example]to[menu.<NewFolderName>].