mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
docs
This commit is contained in:
parent
7f8565c10a
commit
11f3122939
4 changed files with 79 additions and 816 deletions
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 22 KiB |
|
@ -19,7 +19,6 @@
|
|||
|
||||
|
||||
import pkg_resources
|
||||
|
||||
import sphinx_rtd_theme
|
||||
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
|
@ -72,3 +71,7 @@ html_static_path = ["_static"]
|
|||
intersphinx_mapping = {"python": ("http://docs.python.org/3", None)}
|
||||
|
||||
autodoc_typehints = "description"
|
||||
|
||||
html_css_files = [
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/fira_code.min.css"
|
||||
]
|
||||
|
|
|
@ -278,7 +278,7 @@ You can customize the theme used during SVG export by importing the desired them
|
|||
console = Console(record=True)
|
||||
console.save_svg("example.svg", theme=MONOKAI)
|
||||
|
||||
Alternatively, you can create a them of your own by constructing a :class:`rich.terminal_theme.TerminalTheme` instance yourself and passing that in.
|
||||
Alternatively, you can create a theme of your own by constructing a :class:`rich.terminal_theme.TerminalTheme` instance yourself and passing that in.
|
||||
|
||||
Error console
|
||||
-------------
|
||||
|
|
|
@ -987,6 +987,7 @@ if __name__ == "__main__": # pragma: no cover
|
|||
header("leading=1, row_styles=['dim', 'none']")
|
||||
console.print(table, justify="center")
|
||||
|
||||
console = Console(record=True)
|
||||
table.width = None
|
||||
table.expand = False
|
||||
table.row_styles = ["dim", "none"]
|
||||
|
@ -994,3 +995,4 @@ if __name__ == "__main__": # pragma: no cover
|
|||
table.leading = 0
|
||||
header("show_lines=True, row_styles=['dim', 'none']")
|
||||
console.print(table, justify="center")
|
||||
console.save_svg("table.svg")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue