Files and folders
Contributors to GitLab documentation should follow specific rules for files and folders.
Work with directories and files
When working with directories and files:
- When you create a new directory, always start with an
_index.mdfile. Do not use another filename and do not createREADME.mdfiles. - Do not use special characters and spaces, or capital letters in file names, directory names, branch names, and anything that generates a path.
- When creating or renaming a file or directory and its name is more than one word,
use dashes (
-) instead of spaces or underscores. For example, proper naming would beimport-project/import-from-github.md. This naming also applies to both image files and Markdown files. - Do not upload video files to the product repositories. Link or embed videos instead.
- In the
doc/user/directory:doc/user/project/should contain all project-related documentation.doc/user/group/should contain all group-related documentation.doc/user/profile/should contain all profile-related documentation. Every page you would navigate under/profileshould have its own document, for example,account.md,applications.md, oremails.md.
- In the
doc/administration/directory: all administrator-related documentation, including administrator tasks in both the UI and on the backend servers.
If you’re not sure about where to create a document or add information, use your best judgment, then ask the reviewer of your merge request to confirm your decision. You can also involve a Technical Writer at any stage in the process. The Technical Writing team reviews all documentation changes and can advise on content placement or move content if needed.
To find which top-level folder to use for a topic, see folder structure for documentation.
References across documents
- Give each folder an
_index.mdpage that introduces the topic. This page should also introduce and link to any child pages, including to any index pages of those child pages. - For better discoverability, ensure each new or renamed document is linked from its
parent
_index.mdpage and other related pages. - When making reference to other GitLab products and features, link to their respective documentation, at least on first mention.
- When making reference to third-party products or technologies, link out to their external sites, documentation, and resources.
Was this page helpful?