Skip to main content

Example scripts and texts

1. Example scripts​

If the project is cloned, use can find the examples in the ./examples folder. Use the following command to run an example script:

pythom -m examples.markdown_to_bbcode

where markdown_to_bbcode is the example script name. It can be replaced by other scripts offered in the following list:

Example
Description
markdown_to_bbcodeA minimal example converting Markdown to BBCode.
bbcode_table_to_listAn example of loading a BBCode file, and convert the tables inside it to lists.
bbcode_achievementsDownload achievement information of a game and save it as a BBCode list.
save_description_of_a_gameSave the "about the game" section of a Steam app as an HTML file.
download_screenshotsDownload all official screenshots of a game and create thumbnails of them.
download_a_guideFetch a Steam guide and save it as a BBCode file.
create_a_title_figureCustomize a figure-based title. Such title images can be inserted into the Steam guide.
create_logoRender the title bar of this readme file.
render_latex_equationsRender a LaTeX equation as an image.
search_fontSearch the font by name, and use the searched font to render an image.
composer_listGenerate examples for each image composer, and gather the results as an image.
effect_listShow the performance of all image layer effects in an image.

2. Example texts​

The following two guides are written with the help of this tool. Check them for viewing the details:

ReviewsLink
女装百合岚 (in new style)
Slay the Spire (in old style)
GuideLink
此后,勇者学会了后验概率
《海猫鸣泣之时·出题篇》解(伪)

The following article is also rendered by this package:

ArticleLink
Steam Editor Tools: Help You Write Guides and Reviews
Steam Editor Tools: 帮助你撰写评测和指南