diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-02-08 16:16:19 +0100 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-02-09 15:41:51 +0100 |
commit | e8eac85a5db8386689ffe174694f82c1e5dad854 (patch) | |
tree | 9823f6fea00feba24d379b4d4f75bdf82ea491dd /sources/pyside6/doc/_themes | |
parent | 2e43fc4cfd997de48eae352a8a42936f6e4b3785 (diff) |
doc: add tool to generate examples gallery
This script generates a gallery for all the example
currently in pyside-setup/examples.
Using this tool will overwrite the index rst file for the examples
located in 'sources/pyside6/doc/examples/index.rst
Additionally, to display the code of each example, this will generate
one extra .rst file for each example that contains a .pyproject file,
for example: 'sources/pysides6/doc/examples/example_widgets__tetrix.rst'
Currently, the usage of this tool is not incorporated in the
documentation building process.
Task-number: PYSIDE-1490
Pick-to: 6.0
Change-Id: I78546d4c7905fd8b521f4112457980b4d1d56860
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/_themes')
-rw-r--r-- | sources/pyside6/doc/_themes/pysidedocs/static/pyside.css | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css b/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css index a9e7a0b05..625a2d39b 100644 --- a/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css +++ b/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css @@ -2044,6 +2044,8 @@ table.special { border-collapse: separate; border-spacing: 20px; line-height: 1.5em; + table-layout: fixed; + width: 80%; } .special p { @@ -2079,12 +2081,14 @@ table.special td { -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; + overflow: hidden; } .special td:hover { - padding-top: 2px; - padding-bottom: 2px; + padding-top: 14px; + padding-bottom: 10px; border-bottom: 4px solid #41cd52; + overflow: hidden; } .command { |