An Azure DevOps pipeline task to turn your Azure DevOps wiki into an DocFX website. This allows to to create a public documentation website with the nice wiki editing tools of Azure DevOps. Supports
Does not support
TemplateThis project contains a modified version of the default DocFX template to get everything to work. To use your own docfx template, copy the template files in this repository to adirectory named ".docfx_template" in your wiki repository. Then modify the template to your needs. Targeting differerent audiencesA page or part a page can be made visible for certain audiences only. In the task configuration you can specify one or more 'target audiences'. To include a page only for Customers for example, specify "Customers" as target audience and put this line on top of the file.
To hide part of a page use:
Including content for multiple audiences is also possible. E.g.: If a target audience is specified in the task configuration, and a page has no audience specified on top, the file will not be included. UsageYou can use this task in build and release. BuildWith a azure-pipelines.yml build file below, an artifact with the website files will be created. This you can release to a webserver.
ReleaseWorks quite the same as in a build pipeline. |