Skip to content

Unity package layout is incompatible #20

Closed

Description

@CaseyHofland

EDIT: This is my old comment but after some testing I have already found the answer. For the real issue, read my next comment.

Right now it's more of a question than an issue, depending on the answer this might be an issue.

I am writing a Unity package and was hoping to generate documentation for it, however I understood from this issue that the .csproj file is needed for this to work (but I might be misreading it). Unity packages work with .asmdef files, but not .csproj files. Can it still be done?

If it IS compatible, then it might just be something in my configuration, but if it is I can't find out what.
All I have modified so far is:

  • .github/workflows/documentation.yml to use "Documentation~" directory instead of "Documentation" directory.
  • Documentation~/filterConfig.yml for my main namespace.
  • Documentation~/docfx.json src, globalMetaData and sitemap.

UIWitches.

Activity

  1. changed the title [-]Is this Unity package compatible?[/-] [+]Not Unity package compatible[/+] on May 24, 2021
  2. changed the title [-]Not Unity package compatible[/-] [+]Unity package compatibility[/+] on May 24, 2021
  3. CaseyHofland commented on May 24, 2021

    @CaseyHofland
    Author

    DocFX works great for me if my github is structured like a Unity project. However, I want to generate documentation for Unity packages, whose (preferred) layout can be found here.

    Notably, this layout does not contain a .csproj or .sln file, only .asmdef files.

    Ideally, I would like a solution. Regardless, I am interested in why DocFX doesn't work for Unity packages. Are the .csproj files the culprit, and if so can documentation be generated without them?

  4. changed the title [-]Unity package compatibility[/-] [+]Unity package layout is incompatible[/+] on May 24, 2021
  5. thehen commented on Oct 23, 2022

    @thehen

    I'm also interested in this

  6. bohyunjung commented on Feb 20, 2024

    @bohyunjung

    For anyone who has gotten here, @CaseyHofland has made a GitHub action for the docfx documentation for Unity packages, and the workflow worked for me. Kudos to @CaseyHofland! 🙌

    https://github.com/CaseyHofland/docfx-unitypackage

  7. NormandErwan commented on Oct 18, 2026

    @NormandErwan
    Owner

    #44 adds a "Unity package layout" section to the README: Documentation~/ at the package root, with the sources and namespace pages pointed at Runtime/. Tested with DocFX 2.81.0.


    Generated by Claude Code

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions