Method GenerateRedirect
GenerateRedirect(string, string, string, string)
Generate the a site which will redirect to the latest version for a package.
By default, the documentation folders will be generated in /Users/USER_NAME/Library/Application Support/Unity/Editor/documentation/packages on Mac C:\Users\USER_NAME\AppData\Local\Unity\Editor\documentation\packages on Windows
Declaration
public void GenerateRedirect(string packageName, string latestVersionId, string outputFolder = null, string absoluteLatestShortVersionId = "")
Parameters
| Type | Name | Description |
|---|---|---|
| string | packageName | eg: com.unity.package-manager-ui |
| string | latestVersionId | Version in Semantic version format that the site will redirect to -- eg: 1.2.0 |
| string | outputFolder | (Optional) Output folder where the doc site should be created. |
| string | absoluteLatestShortVersionId | Short version id of the latest available package, including preview. Used to link to latest preview version of a package. eg: 1.4.0-preview |