goatcorp / dalamud-docs

Dalamud developer documentation site
https://dalamud.dev/
MIT License
6 stars 21 forks source link

[FIX] Add branch to docfx to let it generate proper source URLs #26

Closed haroldiedema closed 4 months ago

haroldiedema commented 4 months ago

Looking at https://github.com/dotnet/docfx/blob/cb7c9c82ca2bab664e22c6047e8147627ca27129/src/Docfx.Common/Git/GitUtility.cs#L20, it seems that docfx doesn't automatically infer the active git branch from its content directory, but rather from currently set environment variables.

This fix makes sure to set the DOCFX_SOURCE_BRANCH_NAME to the current branch in the iteration, so source URL's are generated properly in the output metadata.