| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
List widget/graphs/quickcontrols gallery examples first.
Pick-to: 6.6
Task-number: PYSIDE-2207
Change-Id: I94aad562a4085c2695bb3d0f592bb7034e6eae26
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Sort by name instead of target documentation file,
which may contain additional subdirectory components.
Pick-to: 6.6
Task-number: PYSIDE-2207
Change-Id: Ic5eacb4cf92614f5a4fd1c9cf489ccf8100a8ce4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Add a description data structure for modules specifying type
(essentials/addons) and a sort key. Bring QML/Quick/Widgets to the
front.
Fixes: PYSIDE-2207
Change-Id: I491f28bf72b5be30c94d51323a423cf9f2ddd73c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
build_rst_docs can sometimes result in the directory being
present and deletion can fail (particularly on Windows).
Pick-to: 6.6
Change-Id: Ib0a4f7db9e5010b6150cbfef8a30f443ce0165ee
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an option to be able to include examples found in the Qt / qtdoc
repository.
The build_rst_docs target also uses it if --qt-src-dir is given.
It is then possible to include pure QML C++ examples
from the qtdoc and other repositories.
Task-number: PYSIDE-2206
Change-Id: I1b28d5ba5a134101a21fa936f87264a68bada71e
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I64c9862696e9fcb281436aff417d41b96211435e
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I2c6157671e9618b77dd6d4f0c54d986ed819481a
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I7d1c2ebe23cbbad54de4fdda5bd281217e32f2b7
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
It is a copy of the QtDataVisualization graph gallery example
adapted to Qt Graphs.
Task-number: PYSIDE-2206
Change-Id: I908312b15324dd030f5610508f13299921fafc26
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Initial-patch-by: Dennis Oberst <dennis.oberst@qt.io>
Task-number: PYSIDE-1106
Change-Id: Ia8e1dbe33b859ef235db7612f36f2c225ff89902
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Retrieve headline and use it instead of the standard
"found in dir" text where possible.
Pick-to: 6.5
Task-number: PYSIDE-1106
Change-Id: I869e28f14fe1d6b7f477a1e01284f3fff45f4eae
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Initial-patch-by: Dennis Oberst <dennis.oberst@qt.io>
Task-number: PYSIDE-1106
Change-Id: I76466254b455ac07f8b537e2e758d6720885c128
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sort the example lists by rst file key.
As a drive-by, also shorten dir names with "advanced".
Pick-to: 6.5
Task-number: PYSIDE-1106
Change-Id: I61a4759b5ed41a3f99e7a2a9955c47f8b3fb3ed2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Factor out a function writing one example and a string constant from main.
Pick-to: 6.5
Task-number: PYSIDE-1106
Change-Id: I5a1e7626d327c2424b8ec26f9618225d8bf8521e
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make it possible to reference code snippets from the example
by relative file names. This makes it possible to write tutorial
examples.
Pick-to: 6.5
Task-number: PYSIDE-1106
Change-Id: Ie95d69c3f98be239e210c9c32b8fc9fb484639f4
Reviewed-by: Keith Kyzivat <keith.kyzivat@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Fixing extra indentation, syntax issues, and formatting.
Adapting too some snippet line highlights, and many other
details.
Pick-to: 6.5
Change-Id: Ife4eb5cec03577b2902d409b4007ae6d12141747
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Make it possible to specify a .rstinc per source file in the doc
directory with explanations.
Task-number: PYSIDE-1106
Pick-to: 6.5
Change-Id: I7b4fc3faf06e5233b619d036799b19f56f4ef6a7
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
As a drive-by, streamline the code.
Task-number: PYSIDE-1106
Pick-to: 6.5
Change-Id: If996cb6f813a641fb4dd51cad2e41be3b26dcc07
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-1106
Pick-to: 6.5
Change-Id: I9760fc8ab7fac12cce059455811f906ec33dad49
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sphinx-panels is deprecated, and sphinx-design is the better
replacement.
This patch migrates everything we had in pyside and shiboken,
which was useful to remove many CSS related hacks for things
we were forcing before.
The example gallery was also adapted to generate sphinx-design
valid code. Additional adaptation to some examples and files were
included as well, which improved the overall example experience.
We used this to change to update sphinx as well, which before
was not possible to update due to sphinx-panels.
Fixes: PYSIDE-2244
Change-Id: Ia3f57f536591ea299bf87302e930203b64fafd7e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
As a drive-by, streamline the code.
Task-number: PYSIDE-1106
Task-number: PYSIDE-2206
Change-Id: I8a3ac67aea073479a924d73dd34725c350982686
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new functionality to the example gallery tool
to create a ZIP file containing all the example files, and including
a button to download it on each example page.
Change-Id: I703c1d73bf690f2eaafca1012ccce3947e13a245
Task-number: PYSIDE-2246
Pick-to: 6.4 6.2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
The files in the pyproject could be missing in
some cases, so a check is required before appending
to the files list.
Pick-to: 6.4
Change-Id: Ifc70eebacb35b72d8a9713a8bf75b321284906ff
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Switch the encoding when reading example-related files (code, rst,
pyproject etc.) to UTF-8 to enable special characters and 😊.
Pick-to: 6.3
Change-Id: I6737875bc9b64d069b8adc478912f4ab4567e28e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
| |
Add further exclusions.
Amends 322975d2262a5f31bfa5940451458702e82ee010.
Change-Id: I22d68a3835969909fbc0518f327c563c0212dc11
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, auto-generated titles show up as:
/tmp/snapshot-pyside-6.3-rel/pyside-setup/examples/widgets/graphicsview/elasticnodes
Use a path relative to the repository instead
(examples/widgets/graphicsview/elasticnodes).
Task-number: PYSIDE-2056
Pick-to: 6.3 6.2
Change-Id: Idbd301d4e2050517185d67c21ed2befb9e2b8506
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix paths in chapter6-plugins.pyproject.
Amends 5fbdfa3ec1df74368316ab0f3ab2ec03781e0df0.
As a drive-by, improve error reporting in the tool.
Task-number: PYSIDE-1878
Change-Id: Ib692946ebc4168785bba7f6dd39268fd9ea4e30d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Replace the current license disclaimer in files by a
SPDX-License-Identifier. Files that have to be modified by hand are
modified. License files are organized under LICENSES directory.
Task-number: QTBUG-67283
Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Change-Id: I8cbf5d521900df4f55abf8f68997f8a71437f722
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.2
Change-Id: If395979b5a1efa869b3c1c7cb12b53bd1e8f1f7c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make it possible to have a dummy pyproject file with entries
pointing to the parent directory in the doc directory as not
to clash with a CMakeLists.txt in the examples directory.
Separate the code paths for the pyproject_file and the actual
examples directory for this purpose.
Pick-to: 6.2
Change-Id: I0a1e583bff8cbb8243ba7526b8b2908f6a3e6e9c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.2
Change-Id: I5ed9a304d061b234fb081ca552d6b732fd370e8e
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It caused:
File "tools/example_gallery/main.py", line 298, in <module>
content_f += get_code_tabs(pyproject["files"], out_f)
KeyError: 'files'
Amends b9ec49942b3ad53343317e631320c58e59736c22.
As a drive-by, handle the error in the gallery tool.
Pick-to: 6.2
Change-Id: Ideca9ccb72021780cf8ae7b3f2204733cc2f5e4f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Print error messages about invalid JSON project files and decoding
errors caused by binary files. Treat .jpg files as binary files.
Pick-to: 6.2
Change-Id: I3d40789fc4680c7f2918a7a23c3d4fcc98ce9f81
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Creating screenshots for tutorials.
- Add gallery style for tutorials.
- Add corporate Icons to the frontpage.
- tools: Reduce example long names in the gallery.
- videos: new order using panels
- Add tutorial about "Why Qt for Python"
Change-Id: I3ba50f74998399a47b4a34c1de029f3b746aa1e2
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.1
Change-Id: Ic65ce24dc23f477b17e0550184960af37d1704a4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Adding a default image for examples that have
no screenshot yet, or are terminal based.
Task-number: PYSIDE-841
Pick-to: 6.1
Change-Id: I771173801218654a99f11d1062df12aa10a64eec
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
| |
- Using cards with buttons
- Fit images as a cover for each example
Task-number: PYSIDE-841
Change-Id: I1702fbad8fabc9d0f9e2a06d46afcf73b4075c8d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding the option to display a screenshot on the
example gallery.
First, the script will look for an image with the same name
as the example, otherwise it will just get the first
in alphabetical order.
Pick-to: 6.0
Fixes: PYSIDE-1490
Change-Id: Ia0328c84206a3d66854197abe5ecad8d1d28abc5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
For the examples gallery tool
Pick-to: 6.0
Change-Id: Ia77d2d22033ccb35df30fa8ed4c7f78de070dec1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There were two previous documented examples using the approach
based on qdoc: stardelegate, and classwizard.
This patch moves them into the 'doc/' directory for each example,
and partially revert the changes from
308157f01260c640e21f6972619d3b380c007acb
Additionally, an unrelated screenshot was moved to a new general
'images/' directory.
Task-number: PYSIDE-1112
Pick-to: 6.0
Change-Id: I239a24fa4e4f970540857ba8b33b9b13c18142b1
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This plugin replaces sphinx-tabs, so that's removed.
The panels plugin will add bootstrap responsive cards to the docs
allowing us to use them instead of the ad-hoc table we had.
Additionally, this changes the example gallery tool too,
since the main gallery was built using our own table implementation.
Since Panels also provides options to add content in tabs, with CSS
instead of JS (from sphinx-tabs), we update the generated examples
files.
Fixing warning messages related to files that didn't exist,
duplicated references, and redundant indexes.
Task-number: PYSIDE-1112
Pick-to: 6.0
Change-Id: Id19be92e72f0a18f63b76daf1898080f3e199626
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The initial patch that generates a gallery based on the examples in the
respository, was limited to only showing the content of the files
in each '.pyproject' file.
That approach didn't allow to describe each example, nor add
complementary images, like screenshots to each example page.
This patch introduces the option to consider everything inside a 'doc/'
directory on the example directory. The files that are copied over are
not directory, but only files, for images to be the main focus.
For example, currently the Tetrix case contained the following files:
$ ls examples/widgets/tetrix/
tetrix.py
tetrix.pyproject
On this patch you can see that now there is a doc directory with the
following content:
$ ls examples/widgets/tetrix/doc
tetrix-screenshot.png
tetrix.rst
The example page that will be generated for this case will contain the
content of the 'doc/tetrix.rst' file, plus the content of all the
project files at the end.
The 'doc/tetrix.rst' file contains a reference to the
'tetrix-screenshot.png' image, so that file will be copied over too.
Task-number: PYSIDE-1112
Pick-to: 6.0
Change-Id: I2d11833c461d8073d2d2888576d876d3f834103a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this patch, the auto-generated documentation page
had all the files from the .pyproject listed one after the other.
This uses a new sphinx extension called sphinx-tabs
https://github.com/executablebooks/sphinx-tabs
which allows us to easily add content in tabs.
Task-number: PYSIDE-1112
Pick-to: 6.0
Change-Id: Ibd66a8c911f05be13ae2700be6d3e95a2b98b775
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Add a --quiet option and use that for quiet builds.
Pick-to: 6.0
Task-number: PYSIDE-1490
Change-Id: I6b8a3fa159acb85dee5fbc064991a09a9fa6ceda
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
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>
|