Skip to content

Embed the CalculusWithJuliaSquared API as a docs section - #5

Merged
AronT-TLV merged 1 commit into
mainfrom
docs/embed-cwjs-api
Jul 29, 2026
Merged

Embed the CalculusWithJuliaSquared API as a docs section#5
AronT-TLV merged 1 commit into
mainfrom
docs/embed-cwjs-api

Conversation

@AronT-TLV

Copy link
Copy Markdown
Member

Surfaces the CalculusWithJuliaSquared (CWJS) package's API as a native section of this site.

Why it works across separate repos

Calculus @reexports CWJS, so the package's module — and all its docstrings — are loaded in the docs build. Documenter builds API docs from docstrings of loaded modules, so no cross-repo HTML is involved; it reads docstrings out of the installed package.

Changes

  • docs/make.jl
    • using Calculus.CalculusWithJuliaSquared so the @autodocs block resolves the module name.
    • modules = [Calculus, CalculusWithJuliaSquared].
    • warnonly = Documenter.except(:autodocs_block) — keeps Calculus's own content strictly checked, relaxing only the embedded CWJS block (mirrors CWJS's own make.jl).
    • remotes pointing CWJS docstrings' "source" links at FourMInfo/CalculusWithJuliaSquared.jl on main — the installed package tree has no .git, so Documenter can't otherwise infer a remote (it hard-errors MissingRemoteError).
    • The page is a top-level entry, deliberately not a generic "API" section, so it doesn't read as Calculus's own API — CWJS is a separate package.
  • docs/src/API/CalculusWithJuliaSquared.md — separate-package + @reexport framing; links to the original notes (live), our fork's source (GitHub), and the rendered book (forthcoming at fourm.info/cwjsn); then @autodocs Modules = [CalculusWithJuliaSquared].
  • docs/src/index.md — an intro section on the port and the reexport, pointing readers at the API page.

Scope check

Only CWJS's own functions are pulled (lim, tangent, secant, D, riemann, , …) — not the reexported Symbolics/Plots. typos clean; docs/make.jl builds green.

Independent of the derivatives-chapter work on content/edit-derivatives.

🤖 Generated with Claude Code

`Calculus` @reexports `CalculusWithJuliaSquared`, so its docstrings are loaded in the docs
build. Surface them as a native reference section rather than sending readers to a separate
site.

- make.jl: add CWJS to `modules`; `using Calculus.CalculusWithJuliaSquared` so the autodocs
  block resolves; `warnonly = Documenter.except(:autodocs_block)` to keep Calculus's own
  content strict while tolerating the CWJS block; `remotes` pointing CWJS source links at the
  fork's main branch (its installed tree has no .git). The page is a top-level entry, not a
  generic "API" section, so it doesn't read as Calculus's own API.
- docs/src/API/CalculusWithJuliaSquared.md: separate-package + reexport framing, links to the
  original notes / our fork / the forthcoming rendered book, then `@autodocs`.
- index.md: an intro section on the port and the reexport pointing at the API page.

Only CWJS's own functions are pulled (`lim`, `tangent`, `D`, `riemann`, …), not the
reexported Symbolics/Plots. Builds clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AronT-TLV
AronT-TLV merged commit bce8a4f into main Jul 29, 2026
5 checks passed
@AronT-TLV
AronT-TLV deleted the docs/embed-cwjs-api branch July 29, 2026 13:08
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