@:dox(hide) works only if applied to every platform

Open
#249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
documentation

Research direction

Start by tracing how dox handles the @:dox(hide) metadata and platform-specific compilation conditions. Compare the current all-platform behavior with the proposed "Available for all platforms" and "Available on cpp,neko" examples. Done means the documentation generator can represent the intended logical availability without requiring metadata on every platform.

Written by the indexing model from the issue text.

Description

enhancement

Currently, using the @:dox(hide) field works only if every platform is compiled with this meta-data.

It would be great if @:dox(hide) or another meta-field allowed support for logically flagging a field as unavailable.

For example, the following would compile as "Available for all platforms":

public static function encode( s : String ) : String {
    throw "Not implemented";
}

The goal is to be able to support something such as:

#if (!cpp && !neko) @:dox(hide) #end
public static function encode( s : String ) : String {
    throw "Not implemented";
}

To get "Available on cpp,neko"

Dominant language
Haxe
Stars
158
Forks
38
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/dox

All issues in HaxeFoundation/dox

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.