Replies: 2 comments 2 replies
-
any workaround on this? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I fully understood your need, correct me if something is wrong. But I think my experience will help you - at my work i develop internal engine library and produce docs for it through CI pipeline using Docfx.App package. That docs contains one writed section and two generated API sections (so navbar have two separated links for API). Repo structure looks like: - ...
- docs
- api
- my-project
- ...
- my-project-additional
- ...
- articles
- ...
- toc.yml
- MyDocsProject.csproj
- docfx.json
- index.md
- toc.yml
- source
- my-project
- MyProject.csproj
- ...
- my-project-additional
- MyProject.Additional.csproj
- ...
- MyProject.sln
- ...
{
"metadata": [
{
"src": [
{
"files": [
"source/my-project/MyProject.csproj"
],
"src": "../"
}
],
"dest": "api/my-project"
},
{
"src": [
{
"files": [
"source/my-project-additional/MyProject.Additional.csproj"
],
"src": "../"
}
],
"dest": "api/my-project-additional"
}
],
"build": {
"content": [
{
"files": [
"api/my-project/**.yml",
"api/my-project/index.md",
"api/my-project-additional/**.yml",
"api/my-project-additional/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"toc.yml",
"*.md"
]
}
],
...
}
} and root - name: Some Stuff
href: articles/
- name: MyProject API
href: api/my-project/
homepage: api/my-project/index.md
- name: My Project Additional API
href: api/my-project-additional/
homepage: api/my-project-additional/index.md So,
I think you can solve the problem simply by creating a repository in which you accumulate everything you need via submodules and generate documentation. Of course, setting up paths will be more difficult, but it is possible. |
Beta Was this translation helpful? Give feedback.
-
I need your guidance...
Given that an organization may have multiple products in various repositories, and probably many documentation repositories, how to integrate everything in one "docs.acme.com" site ? Documentation can come from many products (conceptual and api) and teams.
Example: 3 products and 1 team
productX.git
productY.git
productZ.core.git
productz.wpf.git
productz.web.git
Some Teams even have a conceptual docs repo.
TeamFoo.git
And the "parent" repo
docs.acme.git
The result (if we mimic docs.microsoft.com):
How is this possible ?
If each repo/docs have their own docfx.json, then each _site compiled will be treated as a "parent site" which is not true.
The closest I've been so far, is for each child docs to have a stub index.md and toc.yml and reproducing the "target folder structure", and have one "parent build" that includes as reference the child repos and copies their relative folders.
It works but I'm not sure this is recommended.
Requirements:
Note: this question was asked at StackOverflow but didn't get answers.
Beta Was this translation helpful? Give feedback.
All reactions