Commit Graph

23 Commits

Author SHA1 Message Date
ApsisRS contributors f2810a5c52 chore: resolve the pedantic clippy lints across the workspace 2026-10-02 13:06:16 +08:00
ApsisRS contributors f48c4d9bd7 docs: render formulas as math with a vendored MathJax
The rustdoc in this toolchain does not parse math (its pulldown-cmark options
omit ENABLE_MATH, `--mathjax` and `html_mathjax` are gone, and a `$$...$$`
paragraph is emitted verbatim). Display formulas were therefore written as
```text code blocks, which the request asked to replace with math syntax.

MathJax 3.2.2 (tex-svg-full, Apache-2.0) is vendored under
docs/vendor/mathjax so the rendered pages need no network access.
docs/mathjax.html loads it from the documentation root computed from rustdoc's
own static file prefix; crates/apsis-rs/build.rs copies it into that root, and
scripts/build-docs.sh makes the copy reliable. Each formula is wrapped in a
raw HTML `<div>` so the markdown layer leaves the LaTeX untouched, because
markdown would otherwise consume the backslashes in `\\\\`, `\,`, `\!` and
`\_`.

All 54 formula blocks (27 formulas, English and Chinese) become `$$...$$`;
the 22 command, 2 diagram and 2 scenario-format blocks stay as ```text.
2026-10-02 12:28:20 +08:00
ApsisRS contributors 655e214a5e docs: repair partial translations, sentence splits and duplicated blocks
The bilingual sweep had left some blocks with only their last paragraph
translated, a few with the Chinese inserted inside an English sentence,
and some with a repeated paragraph from a re-applied table. A rewrite of
the coverage checks found them; this fixes every block and restores the
comment separators that a cleanup pass had emptied.
2026-10-02 02:18:15 +08:00
ApsisRS contributors 1ffba97a14 docs: bilingual comments for the foundation and physics tests 2026-10-02 01:55:40 +08:00
ApsisRS contributors c407739763 docs: bilingual module docs for the physics layer 2026-10-02 01:46:35 +08:00
ApsisRS contributors 82a5a418a8 docs: bilingual comments for the validation tools
Also makes the table generators emit the bilingual module docs, so a
regenerated table matches the committed one.
2026-10-02 01:44:36 +08:00
ApsisRS contributors 26a21a23bd docs: bilingual comments for the IAU 2000 frames and Earth rotation
The Delaunay and planetary arguments, the precession, nutation, polar
motion and Earth rotation angles, and the TEME and terrestrial matrices.
This completes the bilingual sweep: every comment block in the workspace
now carries its Chinese counterpart.
2026-10-02 01:35:40 +08:00
ApsisRS contributors e9d4690858 docs: bilingual comments for the Delaunay arguments 2026-10-02 01:32:09 +08:00
ApsisRS contributors e41e2c77bb docs: extend the bilingual sweep into routing, topology, access and rf
A translation table for the sentences that recur across the error types
and the simple accessors let the same wording be applied everywhere at
once, which both keeps the Chinese consistent and covers a hundred and
twenty-nine sites in a single pass. Routing, topology, access and the radio
frequency crates are now part of the sweep.
2026-10-02 01:10:40 +08:00
ApsisRS contributors 64114251fa docs: bilingual comments for time, leap, coord and geodesy
Four of the five physics crates are done, 104 of 239 blocks in the layer.
The remaining one is apsis-frames, which holds the IAU 2000 Earth
orientation models and carries the largest number of formulas.
2026-10-02 00:37:03 +08:00
ApsisRS contributors fac3732f08 docs: fix the broken intra doc links and check them in CI
Running rustdoc with -D warnings found nine broken links: a misspelt
WGS84, links to methods and constants that are private or in a crate that
is not a dependency, and three redundant explicit targets. Fix each and add
a documentation step to CI so a doc comment cannot drift away from the code
it describes without the build noticing.
2026-09-26 23:37:48 +08:00
ApsisRS contributors 4d45d4cf41 workspace: remove dependencies that are declared but never used
Thirty four crates listed apsis-core or apsis-math without referencing it,
and apsis-kepler listed apsis-time and apsis-tle as well. Each was verified
removable by compiling with it taken out. An unused dependency still costs
build time and makes the dependency graph and the layer check report
relations that do not exist. The layer check now reports 104 edges, down
from 141.
2026-09-26 23:36:38 +08:00
ApsisRS contributors 9d8773d6ab physics: add the TEME to Earth-fixed transformation 2026-09-26 16:54:09 +08:00
ApsisRS contributors 841b586e2d physics: add IAU 2000A nutation and IAU 2006 precession 2026-09-26 16:48:57 +08:00
ApsisRS contributors 9fd8c9b2fc physics: add frame carrying position types 2026-09-26 13:27:05 +08:00
ApsisRS contributors bdbaa20a5a physics: keep frames limited to rotations 2026-09-26 13:27:05 +08:00
ApsisRS contributors efb69c77bf physics: return plain vectors from geodetic conversions 2026-09-26 13:27:05 +08:00
ApsisRS contributors 3320491456 physics: add frame markers and Earth rotation angle 2026-09-26 13:25:12 +08:00
ApsisRS contributors 7e822d7ce4 physics: add WGS84 ellipsoid and geodetic ECEF conversion 2026-09-26 13:22:56 +08:00
ApsisRS contributors f38e8a6097 physics: add time scales, epochs, and calendar conversions 2026-09-26 13:19:51 +08:00
ApsisRS contributors ce0f341cbd physics: make leap second lookup reject instants inside a leap second 2026-09-26 13:19:51 +08:00
ApsisRS contributors 8b5213747a physics: add leap second table and UTC TAI conversion 2026-09-26 13:15:52 +08:00
ApsisRS contributors d3afe86dfc workspace: initialize workspace with all layer crates 2026-09-26 12:53:13 +08:00