Skip to content

Refactor Makefile for OS detection and commands#19

Open
LancasterLiu wants to merge 1 commit into
duoan:masterfrom
LancasterLiu:master
Open

Refactor Makefile for OS detection and commands#19
LancasterLiu wants to merge 1 commit into
duoan:masterfrom
LancasterLiu:master

Conversation

@LancasterLiu
Copy link
Copy Markdown

No description provided.

alextfkd added a commit to alextfkd/TorchCode that referenced this pull request May 17, 2026
For each problem, insert a brief "どこで使う" memo (callout style) and
a "もっと詳しく" collapsible (HTML <details>) right after the formula.

Implementation:
- build.py render_intro: accept `memo` and `details` fields on PROBLEM.
  Splits intro_md at the first "### ..." subsection so memo+details land
  between the formula (in the top half) and any sub-sections like
  "### Example" / "### Algorithm" (in the bottom half).
- 16 specs in problem_specs/: add `memo` and `details` fields with
  practical context (where this op is used + history + gotchas + related
  problem cross-refs like duoan#19, #56, etc.).
- 13 existing templates in templates/: insert the memo + details block
  directly into the markdown cell using "### Signature" as the universal
  anchor (universal because all my Japanese translations follow that
  structure).

Result: each notebook now has practical context right under the formula,
without forcing the reader to expand the details upfront. <details> works
in GitHub / Jupyter / Colab markdown rendering.

Rebuilt 16 spec-driven templates+solutions, refreshed all 29 practice/
copies via build_weeks.py --reset.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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