forked from syn54x/mkdocs-typer2
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: termynal output mode for the directive #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
37e614f
feat: add termynal output mode for the directive
FBumann 4fa4f87
feat: add :scheme: and :dark_bg: options for termynal output
FBumann bb05ba7
fix: use module-level termynal.escape in contract test
FBumann bbbf410
fix: space stacked termynal blocks apart
FBumann 9771c12
refactor: share Click-app resolution between native and termynal modes
FBumann 52a2f50
refactor: namespace termynal plugin options as termynal_*
FBumann c7807bf
docs: add termynal output mode page to the site
FBumann 663f0bf
refactor: bundle termynal options into a TermynalOptions dataclass
FBumann 8c06717
feat: add termynal buttons/prompt/timing options
FBumann 0703552
docs: document termynal buttons/prompt/timing options
FBumann 0b92ff0
docs: add CHANGELOG entry for termynal output mode
FBumann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # CLI (Termynal) | ||
|
|
||
| This page renders the CLI's `--help` as an animated, colored | ||
| [termynal](https://github.com/termynal/termynal.py) terminal instead of Markdown | ||
| tables. The root command is rendered first, followed by one block per direct | ||
| subcommand. | ||
|
|
||
| Enable it per block with `:termynal: true` (or globally via the plugin's | ||
| `termynal: true`). The optional `:width:`, `:scheme:`, and `:dark_bg:` options | ||
| control the captured terminal width and color palette. | ||
|
|
||
| ::: mkdocs-typer2 | ||
| :module: mkdocs_typer2.cli.cli | ||
| :name: mkdocs-typer2 | ||
| :termynal: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fail fast when explicit
namecannot be resolved.Line 46–49 currently falls back to module-level
appeven whennamewas explicitly provided. That masks typos/misconfiguration and can render docs for the wrong command. Only use fallback whennameis empty; otherwise raise.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents