8000 Docs: 46 public names have no documented home, and nothing notices · Issue #71 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

Docs: 46 public names have no documented home, and nothing notices #71

Closed

Description

@Lillecarl

Every name in nanopynix.__all__ should be reachable from
docs/nanopynix/api/. Forty-six are not, and no check reports it.

Evidence

Measured by resolving the autodoc directives in docs/nanopynix/api/*.md, not
by searching for the text:

__all__ = 120
no documented home = 46

Only five modules carry automodule ... :members::

nanopynix.exceptions  nanopynix.inproc  nanopynix.primops
nanopynix.protocols   nanopynix.stores

Thirty-six further names have an autoclass or autofunction of their own.
Everything else is undocumented.

A text search is the wrong check, and reports the wrong number. The docs
use Sphinx autodoc, so a name is documented without appearing in the Markdown.
A substring test reports 78 missing, and most of those are false. The test must
read the directives and resolve them.

The forty-six, by home

A directive is missing, and the module is already there (14). These cost
one line each:

module names
nanopynix.primops.yaml from_yaml, from_yaml11, from_yaml11_stream, from_yaml_stream, to_yaml, yaml_primops
nanopynix.namespace NamespaceSupport, OverlayNamespace, enter_overlay_namespace, probe_namespace_support
nanopynix.verbosity LogLevelInput, normalize_log_level
nanopynix.models DerivedPath
nanopynix.store_impl StoreImpl

nanopynix.primops is autodoc-ed with :members:, and the yaml submodule is
not covered by that.

The bindings (22). A separate issue covers these, because they need
reference text and not a directive.

Ten that raise a question of their own. Each of these is a public name, and
each has an answer to give before it gets a page:

  • set_manager_title lives in nanopynix._process_title, a private module. A
    public name with a private home.
  • strip_ansi is re-exported from a third-party package of the same name. Does
    __all__ promise a function this project does not own?
  • DISPATCHABLE_METHODS and rpc have no __module__.
  • LogLevel, ResultType, ValueHandle, GcAction, GcRoot come from
    nanopynix_proto, and init_libstore is defined on the package itself.

Those belong to #44, which owns the question of what is public.

Scope

Add the check, with a ledger of the names that have no home yet. The ledger can
only get shorter.

  1. A test that reads each automodule, autoclass and autofunction in
    docs/nanopynix/api/, resolves it, and reports each __all__ name that no
    directive reaches.
  2. A restated literal of the names that are known to have no home. The test
    fails when a name that is not in that list has no home, and it fails again
    when a name in the list becomes documented and the list is stale.
  3. Correct the fourteen one-line cases, and take them out of the ledger.

The ledger is what makes this landable now. Without it the test cannot go green
until every page is written, so it would not be added at all.

Depends on

Nothing. It is independent of #44, although #44 answers the question that ten
of the names raise.

Acceptance criteria

  • The test resolves directives, and does not search for text.
  • The fourteen one-line names are documented and out of the ledger.
  • A new entry in __all__ with no documented home fails the suite.
  • The ledger holds only the bindings and the ten open questions.

Tests

tests/meta/, beside the other self-checks. See #70.

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: nanopynix

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0