summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Fix specified encoding for .rst filesKai Köhne2024-04-111-1/+1
| | | | | Change-Id: I854803f7a17972dad747121d22d4ff951461bcf9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* flake8: fix a couple of detailsCristián Maureira-Fredes2024-01-081-1/+3
| | | | | Change-Id: I4ea1d2063a666803cfb6f43a4e68a24b7d7f9e2c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* remove glob because it's not usedCristián Maureira-Fredes2024-01-081-1/+0
| | | | | Change-Id: I6c3606df8d977e2c0d908f6bfc1ee42b46befea3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add simple template optionCristián Maureira-Fredes2023-02-131-1/+1
| | | | | | | | | | | | | | This includes a new minimal HTML template to be used to render the QUIPs, motivated by the inclusion of the generated HTML files into the qt-project.org website. A new make variable is used QUIP_TEMPLATE, so one can select a different HTML base file, skipping the current default approach of patching the PlanetQt theme. Change-Id: Iefbc7024d2fccc66241d541c53e46a9b4fdf9cff Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* fix utf-8 typo and stdout.reconfigure callCristián Maureira-Fredes2023-02-061-1/+1
| | | | | Change-Id: I913df84cf30ed8a3c421864c0ef60bd01dc52255 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Remove broken twitter URL from the templateEdward Welbourne2023-01-261-5/+8
| | | | | Change-Id: I2153c3124cf27fdd2a4e641302e5c8b59df2a1c8 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix QUIP-0000 generator scriptJoerg Bornemann2023-01-101-1/+2
| | | | | | | | - stdout needs to be imported from sys - fix 'tf-8' encoding typo Change-Id: I3765e2089ab811f79744f9c4e912fac483515221 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Fix encoding problems on WindowsKai Köhne2022-12-202-2/+6
| | | | | | | Enforce all input/output to be in UTF-8. Change-Id: I5e908ff5ec95e05d9cc95d2fbd92b88040bed4b1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Remove broken link to dead cloudfront resource from template.htmlEdward Welbourne2022-10-211-6/+8
| | | | | | | | | The cloudfront URL is on a non-existent host, so does not work; better to not link to it, in case that DNS entry ever resurfaces with some content on it that we'd rather not include in our pages. Change-Id: I029d5ce7324fa43bdbe9d5abc6a39f84349adb3f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Change feed-back mail subject to be QUIP-specificEdward Welbourne2022-10-201-1/+1
| | | | | | | | | | Since the QUIPs are apt to be published on qt-project.org in any case, make sure that the feedback is clear that it's about QUIPs, at least, so that the good folk at feedback@ have a clue how to reroute any feedback they get from this link. Change-Id: I3a0ae35fd9ff2e848da02fa9c912f2e7cee37ea4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Adapt each QUIP's self-link to use the right URLEdward Welbourne2022-10-132-6/+8
| | | | | | | | | | | | | Originally QUIPs were to be simply numbered. At some point we realized we could include some mention of the subject matter in the rst-file name. However, the quip2html script was still assuming quip-0012.html (for example) would be the URL of QUIP 12, without its subject matter suffix. Amend the script, and the template's token used to build the URL, to include the full filename stem (without .rst suffix) in the URL (with a .html suffix). Change-Id: I04d09c3ae80620d13f62a2f8cd2b3dcce3d159b8 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add a style-hack to work around PlanetQt's broken en and strongEdward Welbourne2022-10-071-6/+12
| | | | | | | | | Until PlanetQt merges my proposed fix, or comes up with a better one, we can kludge it in via the template diff for QUIPs. Task-number: QTWEBSITE-1071 Change-Id: I74a59ad4f6d029fb7f4e506f28e4d99f9f9ca3e7 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Update Planet Qt submodule to latest versionEdward Welbourne2022-09-141-15/+14
| | | | | | | | | As at planetqt commit 3e350aefca147b9c06361a25947fe5cd931da0c9 (last template.qt update 2019) and update scripts/template.diff to match. Change-Id: I6c03176e31e175d627d7446cafda53013858a9ac Reviewed-by: Olli Puurunen <olli.puurunen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix an out-of-date URL in QUIP 0Edward Welbourne2022-09-141-1/+1
| | | | | Change-Id: I6d3e37c250f2a2d222e35d142491bf76899db0d3 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Remove the qmake config now that we no longer need itEdward Welbourne2022-09-141-21/+0
| | | | | | | | | At least on Unix, with GNU make installed, we can just use the Makefile. This makes quips.pro and scripts/setup.mk redundant. Task-number: QTWEBSITE-1041 Change-Id: I2c6f5126e5ad6f393f22af893cba692cb2207eed Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Upgrade quip-generation scripts to use python3Edward Welbourne2021-06-072-7/+6
| | | | | | | | | | | | | | Scripts use docutils; Debian/testing has dropped python2 support for docutils, forcing the upgrade. Ran 2to3 and did as it told me. One print needed parentheses. Changed #! lines and quips.pro to use python3 explicitly. The docutils.core.publish_string() call was returning a bytes object, where output.write() needed a string; so set output encoding. Change-Id: I910548c7402b4bb8a22559793278dc9b5461b94d Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* QUIP 0: Add a tail-piece about our update processEdward Welbourne2020-07-091-1/+13
| | | | | | | | | The front page should say where (and what) the authoritative sources are and how to contribute changes. Change-Id: I98e17f7391531fcb214cb641bdef7cf16b7e2188 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Include newline before end-table tagEdward Welbourne2020-05-061-1/+1
| | | | | | | It makes the HTML nicer to read as source. Change-Id: Ibe8e0cb56fb12d8ee7b63f1b6ba6d00ff892c492 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Allow informative suffixes in QUIP file namesFrederik Gladhorn2018-01-101-2/+3
| | | | | | | | This makes it easier to find the right txt/html file over time. Change-Id: Ic89b1d2434b594560b17711873dd5f78c914913a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Fix running make in the source dirFrederik Gladhorn2018-01-081-1/+2
| | | | | | | | We need a path of the files to process, otherwise the script fails. Making sure the path is absolute works reliably. Change-Id: If63ac69d076f0186a29f4abc59274cda2d0afa62 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add site generation scriptsEdward Welbourne2017-05-044-0/+432
Things left for future work: * Sort out a suitable host on which to publish this (QTQAINFRA-1211) * Set up a routine site-publishing cron job (QTQAINFRA-1211) * Make links of entries in some headers (QTQAINFRA-1212) Task-number: QTQAINFRA-1173 Started-by: Louai Al-Khanji <louai.al-khanji@qt.io> Change-Id: I7ee0c37e38cf30de52684ac80cb7848ec8712a0e Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>