The Final Content Organization
A special file is used to ensure the desired final order of documentation.
_meta.ts
Every subdirectory in content as well as the main directory itself will include a _meta.ts file to maintain documentation section order.
The content level _meta.ts found in src/content is the top level organizer, responsible for altering the main sidebar order.
You may alter the order, give documentation sections titles different from their directory name, and much more .
export default {
overview: {
// Folder name
title: "How it works", // Sidebar appearance
},
users: "",
developers: "",
documentation: "",
about: "",
contact: {
title: "Contact us",
type: "page",
href: "https://github.com/idaholab/Deep-Lynx",
},
};contact {…} in this example will instead alter the navbar contact section via the ‘page’ type. These are features provided by Nextra.
If no order is given, the app will default to alphabetical order.
Subdirectory _meta.ts files
Finally, every documentation section itself may be organized in various ways depending on how you would like the user to flow through. Be sure to add a _meta.ts in any subdirectory in which you’d like to change the order of the pages, with examples in the repository.