Create content for drawers
In the GitLab UI, you can display help content in a drawer component. The component for Markdown is in the storybook.
The component points to a Markdown file. Any time you update the Markdown file, the contents of the drawer are updated.
Drawer content is displayed in drawers only, and not on docs.gitlab.com
.
The content is rendered in GitLab Flavored Markdown.
To create this content:
In the GitLab repository, go to the
/doc/drawers
folder.Create a Markdown file. Use a descriptive filename. Do not create subfolders.
Add the standard page metadata. Also, include:
type: drawer
Author the content.
If the page includes content that is also on a page on
docs.gitlab.com
, on the page’s metadata, include a path to the other file. For example:source: /doc/user/search/global_search/advanced_search_syntax.md
Work with the developer to view the content in the drawer and verify that the content appears correctly.
Drawer content guidelines
- The headings in the file are used as headings in the drawer.
The
H1
heading is the drawer title. - Do not include any characters other than plain text in the
H1
. - The drawer component is narrow and not resizable.
- If you include tables, the content in the table should be brief.
- While no technical limitation exists on the number of characters you can use, you should preview the drawer content to ensure it renders well.
- To link from the drawer to other content, use absolute URLs.
- Do not include Hugo shortcodes, such as Alert boxes or SVG icons.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support