Create new docs directories
[!NOTE] Create new docs directories only when the content does not fit into an existing content bucket. If you are unsure, please ask in the AsyncAPI Community Slack #docs channel first.
- Open the
asyncapi/communityrepository locally in your code editor of choice and navigate to thedocsfolder. - Under the
docsfolder, create a new content bucket (folder) for your new content, respecting the following naming convention:<numeric-prefix>-<content-bucket-name>, where:- numeric-prefix is a 3-digit number that represents the order in which the content bucket should appear in the website's navigation. Consider adding new content buckets at the end of the navigation to avoid breaking existing links. If you need to insert a new content bucket in the middle of the navigation, use adjacent numbers and leave gaps for future additions. For example, to insert a new content bucket between
000-onboardingand010-contribution-guidelines, you could name it001-new-content-bucket. - content-bucket-name is a descriptive name for the content bucket written in kebab-case (lowercase letters with hyphens separating words).
- numeric-prefix is a 3-digit number that represents the order in which the content bucket should appear in the website's navigation. Consider adding new content buckets at the end of the navigation to avoid breaking existing links. If you need to insert a new content bucket in the middle of the navigation, use adjacent numbers and leave gaps for future additions. For example, to insert a new content bucket between
- Only direct children of the
docsfolder are allowed as the current website's implementation doesn't support nested folders. All content must be organized within the first level of folders underdocs. - Give an appropriate name to the new content bucket.
- Add the following two files to the new content bucket:
index.md: Used as the main content for a website's directory or specific webpage. It's named index because many web servers are configured to automatically look for an index file when accessing a directory. When you access a directory on a web server, if anindex.mdfile is present, it will be displayed as the default page for that directory._section.md: Contains section metadata. Thetitledefines the section name in the website sidebar. Theweightcontrols the section's order relative to other sections.
- You can edit the index page after successfully creating these pages.