Skip to content

Wrap code snippets in fences and adjust homepage mascot style - #212

Merged
krypton-byte merged 1 commit into
masterfrom
dev
Aug 26, 2026
Merged

Wrap code snippets in fences and adjust homepage mascot style#212
krypton-byte merged 1 commit into
masterfrom
dev

Conversation

@krypton-byte

Copy link
Copy Markdown
Owner

This pull request updates the documentation to improve code example embedding and enhance the visual presentation of the project homepage. The most notable changes include embedding example source code directly into the documentation and updating the main page's mascot image for better alignment and sizing.

Documentation improvements:

  • Embedded example source code files directly into their respective documentation pages using the --8<-- directive, making it easier for users to view and reference the actual code. This change affects docs/examples/basic-bot.md, docs/examples/async-bot.md, docs/examples/interactive-async.md, and docs/examples/multi-session.md. [1] [2] [3] [4]

Homepage visual update:

  • Centered the mascot image and set its width to 15% on the main documentation page (docs/index.md) for improved appearance and consistency.The --8<-- pymdownx.snippets directive on four example pages was placed as raw markdown without a surrounding fenced code block, causing the included Python source to render as plain text instead of a highlighted code block. Wrap each include inside ```python fences so the examples display correctly with syntax highlighting.

Also resize and center the homepage mascot to match the tryx docs style.

The `--8<--` pymdownx.snippets directive on four example pages was placed
as raw markdown without a surrounding fenced code block, causing the
included Python source to render as plain text instead of a highlighted
code block. Wrap each include inside ```python fences so the examples
display correctly with syntax highlighting.

Also resize and center the homepage mascot to match the tryx docs style.
@krypton-byte
krypton-byte merged commit 9d59944 into master Aug 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant