No local converter option

Offen
#36 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@k-deeley arbeitet bereits daran.

Seit 27.10.2026.

  • #37 von @k-deeley — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
matlab

Rechercherichtung

Read tbx/docmaker/docconvert.m around lines 319–328 and inspect the linked feature/local-cmark-converter branch in Nick’s fork to understand the proposed converter and LaTeX post-processing issue. Check how the existing GitHub and GitLab converters are selected and tested. Done means a local cmark-based converter works in CI without remote API tokens and custom MarkdownConverter subclasses pass LaTeX post-processing.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

The only two converters are GitHub and GitLab, both requiring a remote API call. For CI environments where tokens are hard to provision (e.g., CI_JOB_TOKEN doesn't have API scope for GitLab), a local cmark-based converter would be really useful. Also, docconvert.m line 319-328 hardcodes a switch on the converter class name, so custom subclasses of MarkdownConverter would fail at the LaTeX post-processing step.

I noticed Nick has a LocalCmark converter on the feature/local-cmark-converter branch in his fork that uses cmark-gfm locally, no network or tokens needed. That would solve the CI problem nicely. Any thoughts on if DocMaker could support this?

Reproduction Steps:
  1. Install DocMaker v0.8.0 (MATLAB_DocMaker.mltbx from the GitHub release) in MATLAB:
>> matlab.addons.install("MATLAB_DocMaker.mltbx")
  1. No converter option besides GitHub/GitLab:
>> setenv("DOCMAKER_CONVERTER", "cmark")
>> c = docmaker.converter()
Error using docmaker.converter (line 28)
Unknown converter "cmark".
Vorherrschende Sprache
MATLAB
Sterne
10
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus mathworks/docmaker

Alle Issues in mathworks/docmaker

Ähnliche Issues

Weitere Issues zu MATLAB

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.