Skip to content

Platform API docs omit the "desktop" OS value and is_desktop #39

Closed

Description

@owenthcarey

Problem

The quick-reference table in docs/api/platform.md (around line 19) says Platform.OS is "ios", "android", or "test", and only lists is_ios / is_android / is_test. Since the desktop preview backend landed, the code also reports "desktop" and exposes Platform.is_desktop (see src/pythonnative/platform.py, lines 39, 77-78, 83, and 94).

Suggested fix

Update the quick-reference table to include "desktop" in the Platform.OS row and add Platform.is_desktop to the booleans row, with a short note that "desktop" means the pn preview Tkinter backend. Skim the rest of the page for other spots that enumerate the OS values.

Verification

Run mkdocs build --strict.

Suggested commit message

docs(platform): document the desktop OS value and is_desktop

Activity

  1. added
    documentation
    good first issue
    on Sep 1, 2026
  2. nigelseah24 commented on Sep 1, 2026

    @nigelseah24
    Contributor

    Hi there, I would like to work on this. My plan is to update the docs/api/platform.md to also include desktop for the Platform.OS attribute, add the Platform.is_desktop attribute, and the pn preview Tkinter backend note, following your suggested fix.

    After that, I will run the verification you recommended as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions