mkdocs-techdocs-core icon indicating copy to clipboard operation
mkdocs-techdocs-core copied to clipboard

Manage multiple techdocs in the same repository.

Open 4geru opened this issue 1 year ago • 2 comments

We develop in a mono-repository. Some teams, such as the frontend, backend, and QA teams, work together. We expect to manage two documents in the same repository.

I read those documents. However, I couldn't find the solution.


It would be nice to have a hierarchical structure like this.

$ tree .
.
├── README.md
├── backend-team
│   ├── README.md
│   ├── docs
│   └── mkdocs.yaml
├── backstage-promotion
│   ├── README.md
│   ├── docs
│   └── mkdocs.yaml
├── catalog-info.yaml
└── frontend-team
    ├── README.md
    ├── docs
    └── mkdocs.yaml

4geru avatar Apr 08 '24 08:04 4geru

Set the backstage.io/techdocs-ref annotation on your catalog component to the directory where your mkdocs.yaml is. So rather than the default, dir:., you want something like dir:backstage-team for one component and dir:frontend-team for another.

bforbis avatar Apr 08 '24 17:04 bforbis

Thank you!! I can create the multiple document in the one place 👍 👍

4geru avatar Apr 18 '24 02:04 4geru

Closing as this looks resolved 👍

awanlin avatar Jun 27 '24 18:06 awanlin