If you want to store your documentation in a separate repository or share documentation between projects you can use submodules. Use the following steps to set up a submodule.
- Create a new repository for you module.
- Create a
config.ymlfile and add the followingmodule: mounts: - source: content target: content - Create a
contentdirectory and add your markdown files. E.g.├── config.yml └── content └── glossary ├── _index.md └── link.md - Commit and push your changes
- To use your submodule, add it to the
importssection of your project’sconfig.ymlfile. E.g.module: imports: - path: <REPO_URL_OF_SUBMODULE> mounts: - source: content target: content
