Skip to content

Replace CONTRIBUTING.md source layout table with docs.rs pointer (JOSS #99)#108

Merged
Axect merged 2 commits into
devfrom
features/joss-99-contributing
Jul 10, 2026
Merged

Replace CONTRIBUTING.md source layout table with docs.rs pointer (JOSS #99)#108
Axect merged 2 commits into
devfrom
features/joss-99-contributing

Conversation

@Axect

@Axect Axect commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Follow-up to the remaining question in #99.

The trimmed module table in CONTRIBUTING.md was still a hand-maintained mirror of the source structure, so it could only drift out of sync as modules change. But simply deleting it would have lost information: complex and traits had no module docs at all, and several module doc first lines ("Useful macros", "Statistical Modules", "Main structures for peroxide") were too vague to serve as an index.

So instead of keeping a curated copy, the descriptions now live where rustdoc picks them up:

  • each module's one-line purpose moved into its own mod.rs (//! docs), with new module docs for complex and traits
  • the CONTRIBUTING.md table is replaced by a two-sentence pointer: src/ directories map one-to-one to the public modules, so the docs.rs module index doubles as the source map
  • the only repo-only fact rustdoc cannot show stays in CONTRIBUTING.md: src/grave/ is retired code excluded from compilation

The module descriptions are now reviewed together with the code they describe, so there is no separate structure document left to fall out of sync.

Axect added 2 commits July 10, 2026 13:51
…x (JOSS jonaspleyer #99)

The hand-maintained module table duplicated the module index that rustdoc
generates on docs.rs and could only drift out of sync. What remains is the
repo-only fact rustdoc cannot show: src/grave/ is retired code excluded
from compilation.
The removed source layout table carried descriptions that existed nowhere
in rustdoc: complex and traits had no module docs at all, and several
first lines (Useful macros, Statistical Modules, Main structures) were too
vague to serve as an index. Each module now carries its one-line purpose
in its own mod.rs, so the docs.rs module index is the single source for
the source map and stays in sync with the code by construction.
@Axect Axect merged commit 382a32c into dev Jul 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant