Implement real-time (on-load) updates to API docs live-environment
Maintainer antworten meist innerhalb von 3 Tagen
@avivkeller arbeitet bereits daran.
Seit 24.9.2026.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- javascript
- Bereich
- documentation, web-dev
Rechercherichtung
Es werden keine Quelldateien oder Tests genannt. Beginne damit, den Code für die Live-Umgebung der API-Dokumentation zu lokalisieren, und verfolge dann, wie Banner und das Release-Dropdown gerendert werden; vergleiche die verfügbaren Node.js-Release-Daten-Endpunkte. Als abgeschlossen gilt die Aufgabe, wenn das nicht blockierende Laden globale und versionsspezifische Banner sowie neuere Dokumentationsversionen unterstützt, ohne die statische Dokumentation zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Enter your suggestions in details:
One of the "flaws" (intentionally designed as-is) of our API docs is that once a release is done, docs cannot be udpated for said release or iterated over. This is due to the nature of our API docs release process and how its hosting is independent and completely static. There are advantages and disadvantages to this model.
For example, one of the disadvantages is, we cannot apply our global announcement banners over the course of time.
This proposal implements a static (resides on this repository or nodejs/node) api-docs.config.json that contains a map of entries for any given version of the Node.js API docs; Where the key is the current "major" the API doc was built and the value are the possible overrides such as:
- header banners (same mechanism from the website)
And then also global entries (not specific to version-specific changes):
- header banners (stays on top of the version-based banners)
And then the API Docs can also pool https://nodejs.org/dist/index.json or even https://nodejs.org/en/next-data/release-data to asynchronously completement the release dropdown with newer versions. So that people can navigate to newer versions of the docs.
All this data is loaded asynchronously and non-blocking.
Example structure of api-docs.config.json:
{
"global": {
"banner": {
"startDate": "2025-05-14T03:00:00.000Z",
"endDate": "2025-05-21T03:00:00.000Z",
"text": "May Security Release is available",
"link": "https://nodejs.org/en/blog/vulnerability/may-2025-security-releases",
"type": "warning"
}
}
"v24": {
"banner": {
"startDate": "2025-05-14T03:00:00.000Z",
"endDate": "2025-05-21T03:00:00.000Z",
"text": "May Security Release is available",
"link": "https://nodejs.org/en/blog/vulnerability/may-2025-security-releases",
"type": "warning"
}
}
}
- Vorherrschende Sprache
- JavaScript
- Sterne
- 65
- Forks
- 71
- Ø Merge
- 4 T. 55 Min.
- Gemergte PRs (30 T.)
- 31
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nodejs/doc-kit
-
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 68/100
nodejs/doc-kit#1085 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
nodejs/doc-kit#1054 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Can the links to previews in the comments generated by a PR include `doc-kit`?Evtl. vergeben @avivkeller hat das vor 13 Tagen übernommen. Offen
nodejs/doc-kit#1098 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
nodejs/doc-kit#1056 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
index page's ToC mark "stability index" as legacyEvtl. vergeben @avivkeller hat das vor 13 Tagen übernommen. Offen
nodejs/doc-kit#1053 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
solana-foundation/solana-com#2202 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
yegor256/copyrights-action#216 ·
-
[BUG] onScroll never refreshes the window container's height after a vertical-only viewport resizeOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
juliangarnier/anime#1192 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
PedestrianDynamics/pyFDS-Evac#226 ·
Maintainer antworten meist innerhalb von 1 Tag