Skip to content

Doc for --disableGitFeatures doesn't explain what the "git features" are #5732

Closed

Description

@jehumb-havok

Operation System: Windows

DocFX Version Used: 2.51.0 (NuGet)

Template used: default

Steps to Reproduce:

  1. Run docfx on a git repository

Expected Behavior:

Documentation explains what the "git features" are, so user can know whether having them enabled is of interest or not.

Actual Behavior:

Documentation simply says --disableGitFeatures is to "Disable fetching Git related information for articles", and user doesn't know what features they are losing by using that flag.

Incidentally, running with:

docfx.exe docfx.json --intermediateFolder ..\build\docs\obj -o ..\build\docs  --cleanupCacheHistory --debugOutput --debug  --disableGitFeatures

I still can hit some git error:

Skipping GetFileDetail. Exception found: Microsoft.DocAsCode.Common.Git.GitException, Message:
[...] can't find remote branch in this repo and fallback to use local branch [master]: fatal: no upstream configured for branch 'master'

Activity

  1. QFSW commented on Apr 7, 2020

    @QFSW

    My understanding was that git features allows you to jump to source code from API reference, but that may be incorrect/incomplete (so you're definitely right the documentation needs improving)

  2. KalleOlaviNiemitalo commented on Apr 8, 2020

    @KalleOlaviNiemitalo

    In DocFX v2.50, the disableGitFeatures flag is checked (as opposed to being propagated) only by GitUtility.TryGetFileDetail, which collects the remote repository URL and branch name. The template then generates the URL for the "Improve this Doc" link from those.

    In DocFX v3, there is instead code to get the GitHub login names of people who contributed to the documentation. Which can't work if the repository is hosted elsewhere.

  3. locked and limited conversation to collaborators on Dec 15, 2022
  4. converted this issue into a discussion #8275 on Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions