Skip to content

Proposal: qt_doc macro #88

Open
Open
@ratijas

Description

@ratijas

This is a tracking issue for a macro that expands to a doc comment with links to Qt's documentation website.

  • Choose a name.
    Candidates are: qt_doc and qt_doc_comment.
    Less typing is usually better, but we shall not sacrifice readability.
  • Basic working PoC: ratijas@df56779
  • Implement different member types (e.g. cls, method, signal etc.)
  • Enum variants
  • Struct public members
  • The ultimate goal: #![deny(missing_docs)]
  • Implement custom doc-comment (add it after # Implementation details header)
  • Re-write all existing doc-comments of wrappers
  • Tracking bug in proc_macro ecosystem: Adding #[meta] to an item in a TokenStream dtolnay/quote#153
  • Extracting docstrings from real Qt docs web pages ❗
  • Integration with qch (see comment) ❗
  • Open-ended questions:
    • Qt6 links (when it is out)?

❗ Mutually exclusive quests

(I don't feel like managing stuff and writing contributing guidelines at the moment. So, I thought I'd better start with some straightforward implementations.)

I'm gonna do it step-by-step, pushing onto separate branch of its own. syn, quote and darling crates should do most of the job, but still this task is composed of several smaller ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: documentation for any part of the projectsC-tracking-issueCategory: A tracking issue for an RFC or an unstable feature.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions