Skip to content

generated docs: more doc type awareness #3404

Closed as not planned
Closed as not planned

Description

@andrewrk

Extracted from #21:

Here the semantic analysis dumper gives up:

zig/src/dump_analysis.cpp

Lines 921 to 924 in e0f0e2a

default:
jw_object_field(jw, "name");
jw_string(jw, buf_ptr(&ty->name));
break;

It should supply more type information to the docs, which can then be utilized here:

default:
if (wantHtml) {
return escapeHtml(typeObj.name);
} else {
return typeObj.name;
}

This will make more hyperlinks and syntax coloring work in the docs.

Activity

  1. added
    stage1
    on Oct 8, 2019
  2. added this to the 0.6.0 milestone on Oct 8, 2019
  3. added
    contributor friendly
    on Oct 8, 2019
  4. added a commit that references this issue on Oct 9, 2019
  5. modified the milestones: 0.6.0, 0.7.0 on Feb 18, 2020
  6. modified the milestones: 0.7.0, 0.8.0 on Oct 17, 2020
  7. 2 remaining items

  8. modified the milestones: 0.8.0, 0.9.0 on Nov 6, 2020
  9. modified the milestones: 0.9.0, 0.10.0 on May 19, 2021
  10. added
    autodoc
    and removed
    stage1
    on Dec 28, 2022
  11. andrewrk commented on May 26, 2023

    @andrewrk
    MemberAuthor

    Irrelevant with the new autodocs system.

  12. modified the milestones: 0.13.0, 0.11.0 on Jun 15, 2023
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

    autodoccontributor friendlydocs

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions