Skip to content

Load tmuxp's example catalog so the docs show the preset picker #146

Open

Description

@tony

Summary

libtmux.org shows a preset picker with a live preview on a port's Workspace Manager pages only when the port's repository loads more than one workspace file in a test. This port has none: no workspace configuration reaches the showcase yet, so its pages show a single example and no picker. Rust and TypeScript load tmuxp's 22-file example catalog and show all 22 (https://libtmux.org/en/rs/latest/?product=workspace). Tracked across ports in libtmux/docs#282.

Proposal

  • Add tmuxp's example catalog as test fixtures, with tmuxp's license, as Rust keeps them in crates/tmux-workspace/tests/fixtures/tmuxp/.
  • Add a test that loads every file through this port's own workspace loader, as Rust's every_tmuxp_example_parses does; a file the loader cannot read yet is reported as a finding here, not dropped.
  • First make the port's workspace configurations reach the docs showcase (site/src/data/workspace-showcase.json in libtmux/docs lists none for this port), then the catalog.
  • The docs pick the files up from the pinned revision; no docs change per port.

References

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions