Docs cleanup: merge duplicate namespace dirs (date/datetime, network/networking) #38
Labels
No labels
area:ci
area:docs
area:input
area:net
area:rendering
area:repo
area:stdlib
area:tooling
area:types
cleanup
dx
priority:high
priority:low
priority:medium
proposal
status:in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: workshopsoft/ludic#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The per-symbol documentation source under
docs/language/has overlapping /duplicated namespace directories that are confusing and error-prone:
docs/language/dateanddocs/language/datetimedocs/language/networkanddocs/language/networkingTwo dirs covering the same area invites drift: a symbol gets documented in one and
not the other, and the generated site ends up with near-duplicate or half-empty
sections. Since the docs pipeline treats
docs/language/**as the single sourceof truth, this ambiguity propagates straight to the published site.
Proposal
datevsdatetimeandnetworkvsnetworking; pick one canonicaldirectory per namespace and merge/redirect the other.
DateTime,Duration,Net/Network— whatever the language actually exposes).docgencheck (see the tools-in-Ludic issue) that fails if two dirs mapto the same namespace, so this can't reappear.
Acceptance criteria
docgenguards against duplicate-namespace dirs.Found during the repository-cleanup / DX pass.
Done in
3bab2d2.Audit changed the plan for one of the two flagged pairs:
Dateis calendar days since the epoch;DateTimeis instants (seconds since the epoch). They are distinct runtime namespaces with distinct readers, so both were kept.World.*,Screen.*, …), never the bare builtins it lowers to. Networking alone also documented the low-levelnet_*/builtin forms undernetworking/, duplicating theNetwork.*pages undernetwork/. Removednetworking/;network/(theNetworknamespace — the compiler lowersNetwork.send->net_sendand the LSP exposes it) is canonical. The@Sync/@Ownedframing from the old section was folded intonetwork/_section.mdso no context is lost. Dropped thenetworkingkey from docgen inventory.AC3 guard:
tools/docgen/check.pynow fails if anyns:is documented from more than one directory, or if two sections share an id or case-folded title — a duplicate-namespace split can't silently reappear. Verified it fires on a synthetic dup.gen.py + check.py green (34 sections, 365 symbols).