{"categories":[{"label":"Sphinx","url":"https://skillfed.io/packages/category/documentation-sphinx"}],"enrichment":{"capability":"Adds a button to Python code blocks in Sphinx documentation that toggles >>> prompts and removes output lines for cleaner code display.","skillfed_tags":["sphinx-extension","documentation-tools"],"use_cases":["Tutorial documentation where showing both REPL interactions and clean code snippets adds clarity.","API documentation with Python examples that benefit from toggling between interactive and copyable formats.","Educational materials that teach Python by showing both the prompt and the resulting output.","Mixed documentation where some readers want to copy code directly and others want to see execution context.","Projects using sphinx-copybutton that want complementary prompt-hiding functionality."],"what_it_does":"sphinx-toggleprompt is a Sphinx extension that enhances Python code examples in documentation by adding an interactive button to toggle the >>> prompts and output lines. This allows readers to view the same code in two forms: with prompts and output (as it appears in a Python REPL), or as clean, copyable code without prompts. The extension depends only on sphinx and integrates directly into your Sphinx conf.py configuration.\n\nIt's designed for documentation projects that include Python code examples and want to give readers control over how they view those examples. The extension works alongside other Sphinx tools like sphinx-copybutton to provide a complete code-viewing experience. Since it's copied from the official Python docs theme, it follows established patterns for documentation code presentation.","worth_installing":"Yes, if you maintain Sphinx documentation with Python code examples and want readers to toggle between REPL-style and clean code views. The low install friction, permissive license, and lack of known vulnerabilities make it a safe addition. The aging maintenance status (553 days since release) is a minor concern, but the repository remains active and the extension is simple enough to be stable. Install it if prompt toggling improves your documentation's usability."},"id":"sphinx-toggleprompt","links":{"html":"https://skillfed.io/packages/sphinx-toggleprompt","md":"https://skillfed.io/packages/sphinx-toggleprompt.md","pypi":"https://pypi.org/project/sphinx-toggleprompt/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-02-07","license_spdx":null,"license_treatment":"permissive","name":"sphinx-toggleprompt","python_support":"supports_current","summary":"Add a python prompt toggle to each code cell."},"popularity":{"monthly_downloads":192450,"position":9865,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.0"}
