-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support multiple versions build #477
Conversation
👍 |
Seems that we need to rebase this PR together as there're too many conflicts 😂 |
exclude | The files to be excluded, `glob` pattern is supported. | ||
~~cwd~~ | **Obsoleted**, please use `src`. | ||
src | Specifies the source directory. If omitted, the directory of the config file will be used. Use this option when you want to refer to files in relative folders while want to keep folder structure. e.g. set `src` to `..`. | ||
dest | The folder name for the generated files. | ||
version | Version name for the current file mapping. If not set, treat the current file-mapping item as in global version. Mappings with the same version name will be built together. Cross reference doesn't support cross different versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
global version -> default version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
}; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These three code pieces are similar, is it possible to refactor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored. Change FileMappingParameters to a dictionary, so the property can be converted to a key as a parameter.
using (new PerformanceScope("building documents", LogLevel.Info)) | ||
{ | ||
builder.Build(parameters); | ||
foreach (var parameters in ConfigToParameter(config, templateManager, baseDirectory, outputDirectory)) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: seems build per version, so currently we still couldn't handle cross version reference case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 |
Please is there a way to build just a particular version to prevent other API versions from rebuilding? @superyyrrzz |
#396
@chenkennt @vwxyzh @ansyral @qinezh @hellosnow
sample docfx.json: