dotnet / dotnet/docfx

Ability to supply base path (cwd) while using json config

Open
#651 0 comments 0 reactions 0 assignees View on GitHub
dotnet
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

I have two repositories: the first one - with main source code, the second one - with docfx project. I have a CI build which fetches both repos besides and run docfx. So in my docfx.json pathes lead to outside of the current project and depends on folder name of the main repo. I don't want to hard-code it in docfx.json. Instead I want to specify it CLI-argument.

```
{
"metadata": [{
"src": [{
"cwd": "../MainProject/Server.Net", <- this I don't like
"files": [
"WebServer/*.csproj",
],
}],
"dest": "../.tmp/apiserver"
}]
}
```

I run `docfx metadata ./docfx.json`
I want to supply a path to my main repo, i.e. '../MainProject', like
`docfx metadata ./docfx.json --cwd=../MainProject`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.