From bd921ca0e4191d990b315edf80d909d076076af7 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 14 Sep 2020 17:54:40 -0300 Subject: [PATCH 01/43] Update with latest PHPDoc default template --- composer.json | 2 +- composer.lock | 191 ++++---- data/templates/woocommerce/base.html.twig | 79 +--- data/templates/woocommerce/class.html.twig | 146 +----- .../components/admonition.css.twig | 9 + .../components/back-to-top.css.twig | 13 + .../components/back-to-top.html.twig | 1 + .../components/breadcrumbs.css.twig | 22 + .../components/breadcrumbs.html.twig | 6 + .../components/class-graph.css.twig | 7 + .../components/class-title.html.twig | 38 ++ .../components/constant-signature.html.twig | 6 + .../woocommerce/components/constant.html.twig | 13 + .../components/constants.html.twig | 13 + .../components/description.css.twig | 3 + .../components/description.html.twig | 3 + .../components/element-found-in.css.twig | 7 + .../components/element-found-in.html.twig | 5 + .../components/element-header.html.twig | 5 + .../woocommerce/components/element.css.twig | 38 ++ .../components/file-title.html.twig | 1 + .../woocommerce/components/function.html.twig | 13 + .../components/functions.html.twig | 11 + .../components/header-title.css.twig | 40 ++ .../components/header-title.html.twig | 1 + .../woocommerce/components/header.css.twig | 9 + .../woocommerce/components/header.html.twig | 4 + .../components/interface-title.html.twig | 21 + .../components/method-arguments.html.twig | 15 + .../components/method-response.html.twig | 8 + .../components/method-signature.html.twig | 28 ++ .../woocommerce/components/method.html.twig | 22 + .../woocommerce/components/methods.html.twig | 12 + .../components/namespace-title.html.twig | 1 + .../components/properties.html.twig | 13 + .../components/property-signature.html.twig | 7 + .../woocommerce/components/property.html.twig | 25 + .../components/search-results.css.twig | 50 ++ .../components/search-results.html.twig | 6 + .../woocommerce/components/search.css.twig | 33 ++ .../woocommerce/components/search.html.twig | 7 + .../woocommerce/components/sidebar.css.twig | 57 +++ .../woocommerce/components/sidebar.html.twig | 57 +++ .../woocommerce/components/signature.css.twig | 9 + .../woocommerce/components/summary.css.twig | 3 + .../woocommerce/components/summary.html.twig | 3 + .../table-of-contents-entry.html.twig | 9 + .../components/table-of-contents.css.twig | 95 ++++ .../components/table-of-contents.html.twig | 75 +++ .../woocommerce/components/tag-list.css.twig | 7 + .../woocommerce/components/tags.html.twig | 32 ++ .../woocommerce/components/topnav.css.twig | 44 ++ .../woocommerce/components/topnav.html.twig | 16 + .../components/trait-title.html.twig | 11 + data/templates/woocommerce/css/base.css.twig | 37 ++ .../templates/woocommerce/css/custom.css.twig | 1 + .../woocommerce/css/normalize.css.twig | 427 ++++++++++++++++++ .../woocommerce/css/template.css.twig | 10 + .../woocommerce/css/utilities.css.twig | 4 + .../woocommerce/css/variables.css.twig | 72 +++ data/templates/woocommerce/file.html.twig | 66 +-- .../woocommerce/icons/constant.svg.twig | 1 + .../woocommerce/icons/method.svg.twig | 1 + .../woocommerce/icons/private.svg.twig | 1 + .../woocommerce/icons/protected.svg.twig | 1 + data/templates/woocommerce/index.html.twig | 89 +--- .../woocommerce/indices/files.html.twig | 18 + .../templates/woocommerce/interface.html.twig | 131 +----- data/templates/woocommerce/layout.html.twig | 42 ++ .../templates/woocommerce/namespace.html.twig | 78 +--- .../woocommerce/objects/blockquote.css.twig | 3 + .../woocommerce/objects/buttons.css.twig | 44 ++ .../woocommerce/objects/code.css.twig | 18 + .../woocommerce/objects/forms.css.twig | 54 +++ .../woocommerce/objects/grid.css.twig | 133 ++++++ .../woocommerce/objects/headings.css.twig | 77 ++++ .../woocommerce/objects/images.css.twig | 3 + .../woocommerce/objects/line.css.twig | 6 + .../woocommerce/objects/links.css.twig | 7 + .../woocommerce/objects/lists.css.twig | 33 ++ .../woocommerce/objects/paragraph.css.twig | 4 + .../woocommerce/objects/section.css.twig | 21 + .../woocommerce/objects/tables.css.twig | 20 + data/templates/woocommerce/package.html.twig | 78 +--- data/templates/woocommerce/template.xml | 15 +- data/templates/woocommerce/trait.html.twig | 103 +---- 86 files changed, 2139 insertions(+), 811 deletions(-) create mode 100644 data/templates/woocommerce/components/admonition.css.twig create mode 100644 data/templates/woocommerce/components/back-to-top.css.twig create mode 100644 data/templates/woocommerce/components/back-to-top.html.twig create mode 100644 data/templates/woocommerce/components/breadcrumbs.css.twig create mode 100644 data/templates/woocommerce/components/breadcrumbs.html.twig create mode 100644 data/templates/woocommerce/components/class-graph.css.twig create mode 100644 data/templates/woocommerce/components/class-title.html.twig create mode 100644 data/templates/woocommerce/components/constant-signature.html.twig create mode 100644 data/templates/woocommerce/components/constant.html.twig create mode 100644 data/templates/woocommerce/components/constants.html.twig create mode 100644 data/templates/woocommerce/components/description.css.twig create mode 100644 data/templates/woocommerce/components/description.html.twig create mode 100644 data/templates/woocommerce/components/element-found-in.css.twig create mode 100644 data/templates/woocommerce/components/element-found-in.html.twig create mode 100644 data/templates/woocommerce/components/element-header.html.twig create mode 100644 data/templates/woocommerce/components/element.css.twig create mode 100644 data/templates/woocommerce/components/file-title.html.twig create mode 100644 data/templates/woocommerce/components/function.html.twig create mode 100644 data/templates/woocommerce/components/functions.html.twig create mode 100644 data/templates/woocommerce/components/header-title.css.twig create mode 100644 data/templates/woocommerce/components/header-title.html.twig create mode 100644 data/templates/woocommerce/components/header.css.twig create mode 100644 data/templates/woocommerce/components/header.html.twig create mode 100644 data/templates/woocommerce/components/interface-title.html.twig create mode 100644 data/templates/woocommerce/components/method-arguments.html.twig create mode 100644 data/templates/woocommerce/components/method-response.html.twig create mode 100644 data/templates/woocommerce/components/method-signature.html.twig create mode 100644 data/templates/woocommerce/components/method.html.twig create mode 100644 data/templates/woocommerce/components/methods.html.twig create mode 100644 data/templates/woocommerce/components/namespace-title.html.twig create mode 100644 data/templates/woocommerce/components/properties.html.twig create mode 100644 data/templates/woocommerce/components/property-signature.html.twig create mode 100644 data/templates/woocommerce/components/property.html.twig create mode 100644 data/templates/woocommerce/components/search-results.css.twig create mode 100644 data/templates/woocommerce/components/search-results.html.twig create mode 100644 data/templates/woocommerce/components/search.css.twig create mode 100644 data/templates/woocommerce/components/search.html.twig create mode 100644 data/templates/woocommerce/components/sidebar.css.twig create mode 100644 data/templates/woocommerce/components/sidebar.html.twig create mode 100644 data/templates/woocommerce/components/signature.css.twig create mode 100644 data/templates/woocommerce/components/summary.css.twig create mode 100644 data/templates/woocommerce/components/summary.html.twig create mode 100644 data/templates/woocommerce/components/table-of-contents-entry.html.twig create mode 100644 data/templates/woocommerce/components/table-of-contents.css.twig create mode 100644 data/templates/woocommerce/components/table-of-contents.html.twig create mode 100644 data/templates/woocommerce/components/tag-list.css.twig create mode 100644 data/templates/woocommerce/components/tags.html.twig create mode 100644 data/templates/woocommerce/components/topnav.css.twig create mode 100644 data/templates/woocommerce/components/topnav.html.twig create mode 100644 data/templates/woocommerce/components/trait-title.html.twig create mode 100644 data/templates/woocommerce/css/base.css.twig create mode 100644 data/templates/woocommerce/css/custom.css.twig create mode 100644 data/templates/woocommerce/css/normalize.css.twig create mode 100644 data/templates/woocommerce/css/template.css.twig create mode 100644 data/templates/woocommerce/css/utilities.css.twig create mode 100644 data/templates/woocommerce/css/variables.css.twig create mode 100644 data/templates/woocommerce/icons/constant.svg.twig create mode 100644 data/templates/woocommerce/icons/method.svg.twig create mode 100644 data/templates/woocommerce/icons/private.svg.twig create mode 100644 data/templates/woocommerce/icons/protected.svg.twig create mode 100644 data/templates/woocommerce/indices/files.html.twig create mode 100644 data/templates/woocommerce/layout.html.twig create mode 100644 data/templates/woocommerce/objects/blockquote.css.twig create mode 100644 data/templates/woocommerce/objects/buttons.css.twig create mode 100644 data/templates/woocommerce/objects/code.css.twig create mode 100644 data/templates/woocommerce/objects/forms.css.twig create mode 100644 data/templates/woocommerce/objects/grid.css.twig create mode 100644 data/templates/woocommerce/objects/headings.css.twig create mode 100644 data/templates/woocommerce/objects/images.css.twig create mode 100644 data/templates/woocommerce/objects/line.css.twig create mode 100644 data/templates/woocommerce/objects/links.css.twig create mode 100644 data/templates/woocommerce/objects/lists.css.twig create mode 100644 data/templates/woocommerce/objects/paragraph.css.twig create mode 100644 data/templates/woocommerce/objects/section.css.twig create mode 100644 data/templates/woocommerce/objects/tables.css.twig diff --git a/composer.json b/composer.json index 8b1ffdaea7..75044b7d40 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,6 @@ "php": ">=7.2.5" }, "require-dev": { - "phpdocumentor/phpdocumentor": "v3.0.0-rc" + "phpdocumentor/phpdocumentor": "v3.0.x-dev" } } diff --git a/composer.lock b/composer.lock index 33ac3c96aa..bec2f40106 100644 --- a/composer.lock +++ b/composer.lock @@ -4,21 +4,21 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d933c06d350566d425d48f231097c053", + "content-hash": "22388e56adbf2bdaa549c182d1146ac0", "packages": [], "packages-dev": [ { "name": "composer/package-versions-deprecated", - "version": "1.10.99.1", + "version": "1.11.99", "source": { "type": "git", "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "68c9b502036e820c33445ff4d174327f6bb87486" + "reference": "c8c9aa8a14cc3d3bec86d0a8c3fa52ea79936855" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/68c9b502036e820c33445ff4d174327f6bb87486", - "reference": "68c9b502036e820c33445ff4d174327f6bb87486", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/c8c9aa8a14cc3d3bec86d0a8c3fa52ea79936855", + "reference": "c8c9aa8a14cc3d3bec86d0a8c3fa52ea79936855", "shasum": "" }, "require": { @@ -26,7 +26,7 @@ "php": "^7 || ^8" }, "replace": { - "ocramius/package-versions": "1.10.99" + "ocramius/package-versions": "1.11.99" }, "require-dev": { "composer/composer": "^1.9.3 || ^2.0@dev", @@ -74,7 +74,7 @@ "type": "tidelift" } ], - "time": "2020-08-13T12:55:41+00:00" + "time": "2020-08-25T05:50:16+00:00" }, { "name": "doctrine/event-manager", @@ -277,16 +277,16 @@ }, { "name": "jawira/plantuml", - "version": "v1.40.0", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/jawira/plantuml.git", - "reference": "6683bfdfbe2fe1115677734e9df877b4741c6d95" + "reference": "675911344d78b34f6138b80099716cb92bed41d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jawira/plantuml/zipball/6683bfdfbe2fe1115677734e9df877b4741c6d95", - "reference": "6683bfdfbe2fe1115677734e9df877b4741c6d95", + "url": "https://api.github.com/repos/jawira/plantuml/zipball/675911344d78b34f6138b80099716cb92bed41d2", + "reference": "675911344d78b34f6138b80099716cb92bed41d2", "shasum": "" }, "suggest": { @@ -313,28 +313,28 @@ "plantuml.jar", "uml" ], - "time": "2020-07-05T02:06:00+00:00" + "time": "2020-08-30T02:05:57+00:00" }, { "name": "jean85/pretty-package-versions", - "version": "1.5.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "e9f4324e88b8664be386d90cf60fbc202e1f7fc9" + "reference": "a917488320c20057da87f67d0d40543dd9427f7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/e9f4324e88b8664be386d90cf60fbc202e1f7fc9", - "reference": "e9f4324e88b8664be386d90cf60fbc202e1f7fc9", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/a917488320c20057da87f67d0d40543dd9427f7a", + "reference": "a917488320c20057da87f67d0d40543dd9427f7a", "shasum": "" }, "require": { "composer/package-versions-deprecated": "^1.8.0", - "php": "^7.0" + "php": "^7.0|^8.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^6.0|^8.5|^9.2" }, "type": "library", "extra": { @@ -364,20 +364,20 @@ "release", "versions" ], - "time": "2020-06-23T06:23:06+00:00" + "time": "2020-09-14T08:43:34+00:00" }, { "name": "league/flysystem", - "version": "1.1.2", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "63cd8c14708b9544d3f61d3c15b747fda1c95c6e" + "reference": "9be3b16c877d477357c015cec057548cf9b2a14a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/63cd8c14708b9544d3f61d3c15b747fda1c95c6e", - "reference": "63cd8c14708b9544d3f61d3c15b747fda1c95c6e", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/9be3b16c877d477357c015cec057548cf9b2a14a", + "reference": "9be3b16c877d477357c015cec057548cf9b2a14a", "shasum": "" }, "require": { @@ -455,7 +455,7 @@ "type": "other" } ], - "time": "2020-08-18T10:57:55+00:00" + "time": "2020-08-23T07:39:11+00:00" }, { "name": "league/mime-type-detection", @@ -799,16 +799,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.9.0", + "version": "v4.9.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "aaee038b912e567780949787d5fe1977be11a778" + "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/aaee038b912e567780949787d5fe1977be11a778", - "reference": "aaee038b912e567780949787d5fe1977be11a778", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/88e519766fc58bd46b8265561fb79b54e2e00b28", + "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28", "shasum": "" }, "require": { @@ -847,7 +847,7 @@ "parser", "php" ], - "time": "2020-08-18T19:48:01+00:00" + "time": "2020-08-30T16:15:20+00:00" }, { "name": "phpdocumentor/flyfinder", @@ -946,16 +946,16 @@ }, { "name": "phpdocumentor/phpdocumentor", - "version": "v3.0.0-rc", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/phpDocumentor/phpDocumentor.git", - "reference": "49350fa5978084c61fad2d72a4ab5049b7576e7e" + "reference": "2fbc87c2abd859126dbc295f87f3263880eb1e2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/phpDocumentor/zipball/49350fa5978084c61fad2d72a4ab5049b7576e7e", - "reference": "49350fa5978084c61fad2d72a4ab5049b7576e7e", + "url": "https://api.github.com/repos/phpDocumentor/phpDocumentor/zipball/2fbc87c2abd859126dbc295f87f3263880eb1e2a", + "reference": "2fbc87c2abd859126dbc295f87f3263880eb1e2a", "shasum": "" }, "require": { @@ -977,7 +977,7 @@ "league/uri-interfaces": "^2.0", "ocramius/package-versions": "^1.4", "php": ">=7.2.5", - "phpdocumentor/flyfinder": "^1.0@beta", + "phpdocumentor/flyfinder": "^1.0", "phpdocumentor/graphviz": "^2.0@dev", "phpdocumentor/reflection": "^4.0", "phpdocumentor/reflection-common": "^2.0", @@ -999,7 +999,8 @@ "symfony/finder": "5.0.*", "symfony/flex": "^1.3.1", "symfony/framework-bundle": "^5.0", - "symfony/http-kernel": "^5.0", + "symfony/http-foundation": "^5.0.7", + "symfony/http-kernel": "^5.0.8", "symfony/monolog-bundle": "^3.0", "symfony/process": "5.0.*", "symfony/routing": "^5.0", @@ -1025,10 +1026,6 @@ "mikey179/vfsstream": "^1.2", "mockery/mockery": "^1.0" }, - "suggest": { - "ext-ctype": "For best performance", - "ext-twig": "Enabling the twig extension improves the generation of twig based templates." - }, "bin": [ "bin/phpdoc.php", "bin/phpdoc" @@ -1056,7 +1053,7 @@ "MIT" ], "description": "Documentation Generator for PHP", - "homepage": "http://www.phpdoc.org", + "homepage": "https://www.phpdoc.org", "keywords": [ "api", "application", @@ -1064,7 +1061,7 @@ "documentation", "phpdoc" ], - "time": "2020-02-09T10:44:03+00:00" + "time": "2020-09-14T16:52:30+00:00" }, { "name": "phpdocumentor/reflection", @@ -1504,16 +1501,16 @@ }, { "name": "scrivo/highlight.php", - "version": "v9.18.1.1", + "version": "v9.18.1.2", "source": { "type": "git", "url": "https://github.com/scrivo/highlight.php.git", - "reference": "52fc21c99fd888e33aed4879e55a3646f8d40558" + "reference": "efb6e445494a9458aa59b0af5edfa4bdcc6809d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/52fc21c99fd888e33aed4879e55a3646f8d40558", - "reference": "52fc21c99fd888e33aed4879e55a3646f8d40558", + "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/efb6e445494a9458aa59b0af5edfa4bdcc6809d9", + "reference": "efb6e445494a9458aa59b0af5edfa4bdcc6809d9", "shasum": "" }, "require": { @@ -1575,20 +1572,20 @@ "type": "github" } ], - "time": "2020-03-02T05:59:21+00:00" + "time": "2020-08-27T03:24:44+00:00" }, { "name": "symfony/cache", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "a9ac09a5e9786b734a4baa98158c2cd3251f1e4c" + "reference": "c31bdd71f30435baff03693e684469c7ecb3ca1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/a9ac09a5e9786b734a4baa98158c2cd3251f1e4c", - "reference": "a9ac09a5e9786b734a4baa98158c2cd3251f1e4c", + "url": "https://api.github.com/repos/symfony/cache/zipball/c31bdd71f30435baff03693e684469c7ecb3ca1a", + "reference": "c31bdd71f30435baff03693e684469c7ecb3ca1a", "shasum": "" }, "require": { @@ -1669,20 +1666,20 @@ "type": "tidelift" } ], - "time": "2020-07-23T17:22:30+00:00" + "time": "2020-09-01T05:52:18+00:00" }, { "name": "symfony/config", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "cf63f0613a6c6918e96db39c07a43b01e19a0773" + "reference": "22f961ddffdc81389670b2ca74a1cc0213761ec0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/cf63f0613a6c6918e96db39c07a43b01e19a0773", - "reference": "cf63f0613a6c6918e96db39c07a43b01e19a0773", + "url": "https://api.github.com/repos/symfony/config/zipball/22f961ddffdc81389670b2ca74a1cc0213761ec0", + "reference": "22f961ddffdc81389670b2ca74a1cc0213761ec0", "shasum": "" }, "require": { @@ -1749,7 +1746,7 @@ "type": "tidelift" } ], - "time": "2020-07-15T10:53:22+00:00" + "time": "2020-08-17T07:48:54+00:00" }, { "name": "symfony/console", @@ -1939,16 +1936,16 @@ }, { "name": "symfony/dependency-injection", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "c45c3f26d2ae7c5239e5ad420b0c2717dbbc0bcb" + "reference": "48d6890e12ce9cd8e68aaa4fb72010139312fd73" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/c45c3f26d2ae7c5239e5ad420b0c2717dbbc0bcb", - "reference": "c45c3f26d2ae7c5239e5ad420b0c2717dbbc0bcb", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/48d6890e12ce9cd8e68aaa4fb72010139312fd73", + "reference": "48d6890e12ce9cd8e68aaa4fb72010139312fd73", "shasum": "" }, "require": { @@ -2024,7 +2021,7 @@ "type": "tidelift" } ], - "time": "2020-07-23T08:36:24+00:00" + "time": "2020-09-01T18:07:16+00:00" }, { "name": "symfony/dom-crawler", @@ -2103,7 +2100,7 @@ }, { "name": "symfony/dotenv", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/dotenv.git", @@ -2332,7 +2329,7 @@ }, { "name": "symfony/expression-language", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/expression-language.git", @@ -2398,16 +2395,16 @@ }, { "name": "symfony/filesystem", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "6e4320f06d5f2cce0d96530162491f4465179157" + "reference": "f7b9ed6142a34252d219801d9767dedbd711da1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/6e4320f06d5f2cce0d96530162491f4465179157", - "reference": "6e4320f06d5f2cce0d96530162491f4465179157", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/f7b9ed6142a34252d219801d9767dedbd711da1a", + "reference": "f7b9ed6142a34252d219801d9767dedbd711da1a", "shasum": "" }, "require": { @@ -2458,7 +2455,7 @@ "type": "tidelift" } ], - "time": "2020-05-30T20:35:19+00:00" + "time": "2020-08-21T17:19:47+00:00" }, { "name": "symfony/finder", @@ -2525,16 +2522,16 @@ }, { "name": "symfony/flex", - "version": "v1.9.1", + "version": "v1.9.4", "source": { "type": "git", "url": "https://github.com/symfony/flex.git", - "reference": "0e752e47d8382361ca2d7ef016f549828185ddb6" + "reference": "115e67f76ba95d70946a6e0b15d4578bf04927c3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/flex/zipball/0e752e47d8382361ca2d7ef016f549828185ddb6", - "reference": "0e752e47d8382361ca2d7ef016f549828185ddb6", + "url": "https://api.github.com/repos/symfony/flex/zipball/115e67f76ba95d70946a6e0b15d4578bf04927c3", + "reference": "115e67f76ba95d70946a6e0b15d4578bf04927c3", "shasum": "" }, "require": { @@ -2584,20 +2581,20 @@ "type": "tidelift" } ], - "time": "2020-07-14T15:18:33+00:00" + "time": "2020-09-14T14:58:36+00:00" }, { "name": "symfony/framework-bundle", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "f9be9af9092f165b9b809d870289b57330301dc6" + "reference": "0607ca3cb7b79461a2e6a7c5d05e5cd6d2c14015" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/f9be9af9092f165b9b809d870289b57330301dc6", - "reference": "f9be9af9092f165b9b809d870289b57330301dc6", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/0607ca3cb7b79461a2e6a7c5d05e5cd6d2c14015", + "reference": "0607ca3cb7b79461a2e6a7c5d05e5cd6d2c14015", "shasum": "" }, "require": { @@ -2731,7 +2728,7 @@ "type": "tidelift" } ], - "time": "2020-07-23T08:36:24+00:00" + "time": "2020-08-30T09:59:07+00:00" }, { "name": "symfony/http-foundation", @@ -2923,16 +2920,16 @@ }, { "name": "symfony/monolog-bridge", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/monolog-bridge.git", - "reference": "81e8c7692b78161a06f779c741ef21d80f217175" + "reference": "c312bf3de53a5e2b784224045d6e7d5c0abfe1c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/81e8c7692b78161a06f779c741ef21d80f217175", - "reference": "81e8c7692b78161a06f779c741ef21d80f217175", + "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/c312bf3de53a5e2b784224045d6e7d5c0abfe1c0", + "reference": "c312bf3de53a5e2b784224045d6e7d5c0abfe1c0", "shasum": "" }, "require": { @@ -3002,7 +2999,7 @@ "type": "tidelift" } ], - "time": "2020-06-18T18:24:02+00:00" + "time": "2020-08-17T07:42:30+00:00" }, { "name": "symfony/monolog-bundle", @@ -3600,16 +3597,16 @@ }, { "name": "symfony/routing", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "08c9a82f09d12ee048f85e76e0d783f82844eb5d" + "reference": "47b0218344cb6af25c93ca8ee1137fafbee5005d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/08c9a82f09d12ee048f85e76e0d783f82844eb5d", - "reference": "08c9a82f09d12ee048f85e76e0d783f82844eb5d", + "url": "https://api.github.com/repos/symfony/routing/zipball/47b0218344cb6af25c93ca8ee1137fafbee5005d", + "reference": "47b0218344cb6af25c93ca8ee1137fafbee5005d", "shasum": "" }, "require": { @@ -3688,11 +3685,11 @@ "type": "tidelift" } ], - "time": "2020-06-18T18:24:02+00:00" + "time": "2020-08-10T08:03:57+00:00" }, { "name": "symfony/stopwatch", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", @@ -3924,7 +3921,7 @@ }, { "name": "symfony/var-exporter", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", @@ -3999,16 +3996,16 @@ }, { "name": "symfony/yaml", - "version": "v5.1.3", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "ea342353a3ef4f453809acc4ebc55382231d4d23" + "reference": "a44bd3a91bfbf8db12367fa6ffac9c3eb1a8804a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/ea342353a3ef4f453809acc4ebc55382231d4d23", - "reference": "ea342353a3ef4f453809acc4ebc55382231d4d23", + "url": "https://api.github.com/repos/symfony/yaml/zipball/a44bd3a91bfbf8db12367fa6ffac9c3eb1a8804a", + "reference": "a44bd3a91bfbf8db12367fa6ffac9c3eb1a8804a", "shasum": "" }, "require": { @@ -4072,7 +4069,7 @@ "type": "tidelift" } ], - "time": "2020-05-20T17:43:50+00:00" + "time": "2020-08-26T08:30:57+00:00" }, { "name": "twig/twig", @@ -4201,7 +4198,9 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": { + "phpdocumentor/phpdocumentor": 20 + }, "prefer-stable": true, "prefer-lowest": false, "platform": { diff --git a/data/templates/woocommerce/base.html.twig b/data/templates/woocommerce/base.html.twig index cebf9c8631..7ef28b98ee 100644 --- a/data/templates/woocommerce/base.html.twig +++ b/data/templates/woocommerce/base.html.twig @@ -1,78 +1 @@ - - - - - WooCommerce Code Reference - - - - - - - - - - - {% block stylesheets %}{% endblock %} - - - - - {% block javascripts %}{% endblock %} - - -
-
-
- -
- -
-
-
-
-

WooCommerce Code Reference

-
- -
- -
- -

Search results

-
    - -
-
-
-
-
-
- {% include 'sidebar.html.twig' %} - -
- {% block content %}{% endblock %} -
-
-
-Back to the top - - - +{% extends 'layout.html.twig' %} diff --git a/data/templates/woocommerce/class.html.twig b/data/templates/woocommerce/class.html.twig index cc34692308..9e28db5c3d 100644 --- a/data/templates/woocommerce/class.html.twig +++ b/data/templates/woocommerce/class.html.twig @@ -1,145 +1,15 @@ {% extends 'base.html.twig' %} {% block content %} - {% include 'breadcrumbs.html.twig' %} + {% include 'components/breadcrumbs.html.twig' %} -
-

- {{ node.name }} - {% if node.parent %} - - extends {{ node.parent|route('class:short') }} - - {% endif %} - {% if usesPackages %} -
- in - -
- {% endif %} - {% if node.interfaces is not empty %} - - implements - {% for interface in node.interfaces %} - {{ interface|route('class:short') }}{% if not loop.last %}, {% endif %} - {% endfor %} - - {% endif %} - {% if node.usedTraits is not empty %} - - Uses - {% for trait in node.usedTraits %} - {{ trait|route('class:short') }}{% if not loop.last %}, {% endif %} - {% endfor %} - - {% endif %} -

- +
+ {{ include('components/class-title.html.twig') }} + {{ include('components/element-found-in.html.twig') }} + {{ include('components/element-header.html.twig') }} -

{{ node.summary }}

-
{{ node.description|markdown }}
- -

Table of Contents

- - {% for constant in node.constants %} - - - - - - {% endfor %} - {% for property in node.properties %} - - - - - - {% endfor %} - {% for property in node.magicProperties %} - - - - - - {% endfor %} - {% for property in node.inheritedProperties %} - - - - - - {% endfor %} - {% for method in node.methods %} - - - - - - {% endfor %} - {% for method in node.magicMethods %} - - - - - - {% endfor %} - {% for method in node.inheritedMethods %} - - - - - - {% endfor %} -
{{ constant.name }}{{ constant.summary }}{{ constant.value }}
${{ property.name }}{{ property.summary }}{{ property.type|route('class:short')|join('|')|raw }}
${{ property.name }}{{ property.summary }}{{ property.type|route('class:short')|join('|')|raw }}
${{ property.name }}{{ property.summary }}{{ property.type|route('class:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('class:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('class:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('class:short')|join('|')|raw }}
- - {% if node.constants is not empty %} -
-

Constants

- {% for constant in node.constants %} - {% include 'constant.html.twig' %} - {% endfor %} - {% for constant in node.inheritedConstants %} - {% include 'constant.html.twig' %} - {% endfor %} -
- {% endif %} - - {% if node.properties is not empty or node.magicProperties is not empty or node.inheritedProperties is not empty %} -
-

Properties

- {% for property in node.properties %} - {% include 'property.html.twig' %} - {% endfor %} - {% for property in node.magicProperties %} - {% include 'property.html.twig' %} - {% endfor %} - {% for property in node.inheritedProperties %} - {% include 'property.html.twig' %} - {% endfor %} -
- {% endif %} - - {% if node.methods is not empty or node.magicMethods is not empty or node.inheritedMethods is not empty %} -
-

Methods

- {% for method in node.methods %} - {% include 'method.html.twig' %} - {% endfor %} - {% for method in node.magicMethods %} - {% include 'method.html.twig' %} - {% endfor %} - {% for method in node.inheritedMethods %} - {% include 'method.html.twig' %} - {% endfor %} -
- {% endif %} + {{ include('components/constants.html.twig') }} + {{ include('components/properties.html.twig') }} + {{ include('components/methods.html.twig') }}
{% endblock %} diff --git a/data/templates/woocommerce/components/admonition.css.twig b/data/templates/woocommerce/components/admonition.css.twig new file mode 100644 index 0000000000..80db0a7232 --- /dev/null +++ b/data/templates/woocommerce/components/admonition.css.twig @@ -0,0 +1,9 @@ +.phpdocumentor-admonition { + border: 1px solid var(--admonition-border-color); + border-radius: var(--border-radius-base-size); + padding: var(--spacing-sm) var(--spacing-md); +} + +.phpdocumentor-admonition--success { + border-color: var(--admonition-success-color); +} diff --git a/data/templates/woocommerce/components/back-to-top.css.twig b/data/templates/woocommerce/components/back-to-top.css.twig new file mode 100644 index 0000000000..8556ac050e --- /dev/null +++ b/data/templates/woocommerce/components/back-to-top.css.twig @@ -0,0 +1,13 @@ +.phpdocumentor .phpdocumentor-back-to-top { + position: fixed; + bottom: 2rem; + font-size: 2.5rem; + opacity: .25; + transition: all .3s ease-in-out; + right: 2rem; +} + +.phpdocumentor .phpdocumentor-back-to-top:hover { + color: var(--link-color-primary); + opacity: 1; +} diff --git a/data/templates/woocommerce/components/back-to-top.html.twig b/data/templates/woocommerce/components/back-to-top.html.twig new file mode 100644 index 0000000000..93b7647cec --- /dev/null +++ b/data/templates/woocommerce/components/back-to-top.html.twig @@ -0,0 +1 @@ + diff --git a/data/templates/woocommerce/components/breadcrumbs.css.twig b/data/templates/woocommerce/components/breadcrumbs.css.twig new file mode 100644 index 0000000000..75645a0fcc --- /dev/null +++ b/data/templates/woocommerce/components/breadcrumbs.css.twig @@ -0,0 +1,22 @@ +.phpdocumentor ul.phpdocumentor-breadcrumbs { + font-size: var(--text-md); + list-style: none; + margin: 0; + padding: 0; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs a { + color: var(--text-color); + text-decoration: none; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs > li { + display: inline-block; + margin: 0; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs > li + li:before { + color: var(--dark-gray); + content: "\\\A0"; + padding: 0; +} diff --git a/data/templates/woocommerce/components/breadcrumbs.html.twig b/data/templates/woocommerce/components/breadcrumbs.html.twig new file mode 100644 index 0000000000..1bc3b63467 --- /dev/null +++ b/data/templates/woocommerce/components/breadcrumbs.html.twig @@ -0,0 +1,6 @@ +{% set breadcrumbs = usesNamespaces ? breadcrumbs(node) : packages(node) %} + diff --git a/data/templates/woocommerce/components/class-graph.css.twig b/data/templates/woocommerce/components/class-graph.css.twig new file mode 100644 index 0000000000..b727497598 --- /dev/null +++ b/data/templates/woocommerce/components/class-graph.css.twig @@ -0,0 +1,7 @@ +.phpdocumentor-class-graph { + width: 100%; height: 600px; border:1px solid black; overflow: hidden +} + +.phpdocumentor-class-graph__graph { + width: 100%; +} diff --git a/data/templates/woocommerce/components/class-title.html.twig b/data/templates/woocommerce/components/class-title.html.twig new file mode 100644 index 0000000000..3e7ab791ab --- /dev/null +++ b/data/templates/woocommerce/components/class-title.html.twig @@ -0,0 +1,38 @@ +

+ {{ node.name }} + + {% if node.parent %} + + extends {{ node.parent|route('class:short') }} + + {% endif %} + + {% if usesPackages %} +
+ in package + +
+ {% endif %} + + {% if node.interfaces is not empty %} + + implements + {% for interface in node.interfaces %} + {{ interface|route('class:short') }}{% if not loop.last %}, {% endif %} + {% endfor %} + + {% endif %} + + {% if node.usedTraits is not empty %} + + Uses + {% for trait in node.usedTraits %} + {{ trait|route('class:short') }}{% if not loop.last %}, {% endif %} + {% endfor %} + + {% endif %} +

diff --git a/data/templates/woocommerce/components/constant-signature.html.twig b/data/templates/woocommerce/components/constant-signature.html.twig new file mode 100644 index 0000000000..c72466b249 --- /dev/null +++ b/data/templates/woocommerce/components/constant-signature.html.twig @@ -0,0 +1,6 @@ + + {{ node.visibility }} + {{ not node.type ? "mixed" : node.type|route('class:short')|join('|')|raw }} + {{ node.name }} + = {{ node.value ?: '""' }} + diff --git a/data/templates/woocommerce/components/constant.html.twig b/data/templates/woocommerce/components/constant.html.twig new file mode 100644 index 0000000000..5110da769f --- /dev/null +++ b/data/templates/woocommerce/components/constant.html.twig @@ -0,0 +1,13 @@ +
+

+ {{ constant.name }} + +

+ + {{ include('components/element-found-in.html.twig', {'node': constant}) }} + {{ include('components/summary.html.twig', {'node': constant}) }} + {{ include('components/constant-signature.html.twig', {'node': constant}) }} + + {{ include('components/description.html.twig', {'node': constant}) }} + {{ include ('components/tags.html.twig', {tags: constant.tags}) }} +
diff --git a/data/templates/woocommerce/components/constants.html.twig b/data/templates/woocommerce/components/constants.html.twig new file mode 100644 index 0000000000..c54c8d4935 --- /dev/null +++ b/data/templates/woocommerce/components/constants.html.twig @@ -0,0 +1,13 @@ +{% set constants = constants(node)|sortByVisibility %} + +{% if constants is not empty %} +
+

+ Constants + +

+ {% for constant in constants %} + {% include 'components/constant.html.twig' %} + {% endfor %} +
+{% endif %} diff --git a/data/templates/woocommerce/components/description.css.twig b/data/templates/woocommerce/components/description.css.twig new file mode 100644 index 0000000000..8d0e3be9be --- /dev/null +++ b/data/templates/woocommerce/components/description.css.twig @@ -0,0 +1,3 @@ +.phpdocumentor-description { + margin-bottom: var(--spacing-md); +} diff --git a/data/templates/woocommerce/components/description.html.twig b/data/templates/woocommerce/components/description.html.twig new file mode 100644 index 0000000000..2512033666 --- /dev/null +++ b/data/templates/woocommerce/components/description.html.twig @@ -0,0 +1,3 @@ +{% if node.description %} +
{{ node.description|markdown }}
+{% endif %} diff --git a/data/templates/woocommerce/components/element-found-in.css.twig b/data/templates/woocommerce/components/element-found-in.css.twig new file mode 100644 index 0000000000..01f4adedfd --- /dev/null +++ b/data/templates/woocommerce/components/element-found-in.css.twig @@ -0,0 +1,7 @@ +.phpdocumentor-element-found-in { + position: absolute; + top: 0; + right: 0; + font-size: var(--text-sm); + color: gray; +} diff --git a/data/templates/woocommerce/components/element-found-in.html.twig b/data/templates/woocommerce/components/element-found-in.html.twig new file mode 100644 index 0000000000..3fd60b6858 --- /dev/null +++ b/data/templates/woocommerce/components/element-found-in.html.twig @@ -0,0 +1,5 @@ + diff --git a/data/templates/woocommerce/components/element-header.html.twig b/data/templates/woocommerce/components/element-header.html.twig new file mode 100644 index 0000000000..46ba4723e9 --- /dev/null +++ b/data/templates/woocommerce/components/element-header.html.twig @@ -0,0 +1,5 @@ +{{ include('components/summary.html.twig') }} +{{ include('components/description.html.twig') }} +{{ include('components/tags.html.twig', {tags: node.tags}) }} + +{{ include ('components/table-of-contents.html.twig') }} diff --git a/data/templates/woocommerce/components/element.css.twig b/data/templates/woocommerce/components/element.css.twig new file mode 100644 index 0000000000..c16119e9fc --- /dev/null +++ b/data/templates/woocommerce/components/element.css.twig @@ -0,0 +1,38 @@ +.phpdocumentor-element { + position: relative; +} + +.phpdocumentor .phpdocumentor-element__name { + line-height: 1; +} + +.phpdocumentor-element__package, +.phpdocumentor-element__extends, +.phpdocumentor-element__implements { + display: block; + font-size: var(--text-xxs); + font-weight: normal; + opacity: .7; +} + +.phpdocumentor-element__package .phpdocumentor-breadcrumbs { + display: inline; +} + +.phpdocumentor-element:not(:last-child) { + border-bottom: 1px solid var(--primary-color-lighten); + padding-bottom: var(--spacing-lg); +} + +.phpdocumentor-element.-deprecated .phpdocumentor-element__name { + text-decoration: line-through; +} + +.phpdocumentor-element__modifier { + font-size: var(--text-xxs); + padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2); + color: var(--text-color); + background-color: var(--light-gray); + border-radius: 3px; + text-transform: uppercase; +} diff --git a/data/templates/woocommerce/components/file-title.html.twig b/data/templates/woocommerce/components/file-title.html.twig new file mode 100644 index 0000000000..4c9e43a92a --- /dev/null +++ b/data/templates/woocommerce/components/file-title.html.twig @@ -0,0 +1 @@ +

{{ node.name }}

diff --git a/data/templates/woocommerce/components/function.html.twig b/data/templates/woocommerce/components/function.html.twig new file mode 100644 index 0000000000..13be11792f --- /dev/null +++ b/data/templates/woocommerce/components/function.html.twig @@ -0,0 +1,13 @@ +
+

+ {{ function.name }}() + +

+ {{ include('components/element-found-in.html.twig', {'node': function}) }} + {{ include('components/summary.html.twig', {'node': function}) }} + {{ include('components/method-signature.html.twig', {'node': function}) }} + {{ include('components/description.html.twig', {'node': function}) }} + {{ include('components/method-arguments.html.twig', {'node': function}) }} + {{ include('components/tags.html.twig', {tags: function.tags}) }} + {{ include('components/method-response.html.twig', {'node': function}) }} +
diff --git a/data/templates/woocommerce/components/functions.html.twig b/data/templates/woocommerce/components/functions.html.twig new file mode 100644 index 0000000000..97cdb6c76b --- /dev/null +++ b/data/templates/woocommerce/components/functions.html.twig @@ -0,0 +1,11 @@ +{% if node.functions is not empty %} +
+

+ Functions + +

+ {% for function in node.functions %} + {% include 'components/function.html.twig' %} + {% endfor %} +
+{% endif %} diff --git a/data/templates/woocommerce/components/header-title.css.twig b/data/templates/woocommerce/components/header-title.css.twig new file mode 100644 index 0000000000..5306e45f3a --- /dev/null +++ b/data/templates/woocommerce/components/header-title.css.twig @@ -0,0 +1,40 @@ +.phpdocumentor-title { + box-sizing: border-box; + color: var(--title-text-color); + font-size: var(--text-xxl); + letter-spacing: .05rem; + font-weight: normal; + width: 30.6666666667%; + margin: 0; + border-right: var(--sidebar-border-color) solid 1px; + display: flex; + align-items: center; +} + +.phpdocumentor-title__link { + transition: all .3s ease-out; + display: block; + color: var(--title-text-color); + text-decoration: none; + font-weight: normal; + white-space: nowrap; + transform: scale(.75); + transform-origin: left; +} + +.phpdocumentor-title__link:hover { + transform: perspective(15rem) translateX(.5rem); + font-weight: 600; +} + +@media (min-width: {{ breakpoints['xl'] }}) { + .phpdocumentor-title__link { + transform: scale(.85); + } +} + +@media (min-width: {{ breakpoints['xxl'] }}) { + .phpdocumentor-title__link { + transform: scale(1); + } +} diff --git a/data/templates/woocommerce/components/header-title.html.twig b/data/templates/woocommerce/components/header-title.html.twig new file mode 100644 index 0000000000..f66ddb68aa --- /dev/null +++ b/data/templates/woocommerce/components/header-title.html.twig @@ -0,0 +1 @@ +

{{ project.name }}

diff --git a/data/templates/woocommerce/components/header.css.twig b/data/templates/woocommerce/components/header.css.twig new file mode 100644 index 0000000000..7aded34600 --- /dev/null +++ b/data/templates/woocommerce/components/header.css.twig @@ -0,0 +1,9 @@ +.phpdocumentor-header { + display: flex; + flex-direction: row; + align-items: center; +} + +.phpdocumentor-header > * { + height: var(--header-height); +} diff --git a/data/templates/woocommerce/components/header.html.twig b/data/templates/woocommerce/components/header.html.twig new file mode 100644 index 0000000000..0405e2075c --- /dev/null +++ b/data/templates/woocommerce/components/header.html.twig @@ -0,0 +1,4 @@ +
+ {% include 'components/header-title.html.twig' %} + {% include 'components/topnav.html.twig' %} +
diff --git a/data/templates/woocommerce/components/interface-title.html.twig b/data/templates/woocommerce/components/interface-title.html.twig new file mode 100644 index 0000000000..afb7d2810b --- /dev/null +++ b/data/templates/woocommerce/components/interface-title.html.twig @@ -0,0 +1,21 @@ +

+ {{ node.name }} + {% if node.parent is not empty %} + + extends + {% for interface in node.parent %} + {{ interface|route('class:short') }}{% if not loop.last %}, {% endif %} + {% endfor %} + + {% endif %} + {% if usesPackages %} +
+ in + +
+ {% endif %} +

diff --git a/data/templates/woocommerce/components/method-arguments.html.twig b/data/templates/woocommerce/components/method-arguments.html.twig new file mode 100644 index 0000000000..035d8dcd07 --- /dev/null +++ b/data/templates/woocommerce/components/method-arguments.html.twig @@ -0,0 +1,15 @@ +{% if node.arguments|length > 0 %} +
Parameters
+
+ {% for argument in node.arguments %} +
+ ${{ argument.name }} + : {{ argument.type|route('class:short')|join('|')|raw }} + {% if argument.default %} = {{ argument.default }}{% endif %} +
+
+ {{ include('components/description.html.twig', {'node': argument}) }} +
+ {% endfor %} +
+{% endif %} diff --git a/data/templates/woocommerce/components/method-response.html.twig b/data/templates/woocommerce/components/method-response.html.twig new file mode 100644 index 0000000000..7af9a59390 --- /dev/null +++ b/data/templates/woocommerce/components/method-response.html.twig @@ -0,0 +1,8 @@ +{% if (method.response.type and method.response.type != 'void') or method.response.description %} +
Return values
+ {{ method.response.type|route('class:short')|join('|')|raw }} + {% if method.response %} + — + {{ include('components/description.html.twig', {'node': method.response}) }} + {% endif %} +{% endif %} diff --git a/data/templates/woocommerce/components/method-signature.html.twig b/data/templates/woocommerce/components/method-signature.html.twig new file mode 100644 index 0000000000..19ccdbabe8 --- /dev/null +++ b/data/templates/woocommerce/components/method-signature.html.twig @@ -0,0 +1,28 @@ + + {{ node.visibility }} + {% if node.abstract %}abstract{% endif %} + {% if node.final %}final{% endif %} + {% if node.static %}static{% endif %} + {% apply spaceless %} + {{ node.name }} + ( + {% for argument in node.arguments %} + + {% if argument.default %}[{% endif %} + {% if not loop.first %}, {% endif %} + {{ argument.type|route('class:short')|join('|')|raw }}  + {% if argument.isVariadic %}...{% endif %} + {%- if argument.byReference -%}&{%- endif -%} + ${{ argument.name }} + {% if argument.default %} + = + {{ argument.default }} + ] + {% endif %} + + {% endfor %} + ) + : + {{ node.response.type|route('class:short')|join('|')|raw }} + {% endapply %} + diff --git a/data/templates/woocommerce/components/method.html.twig b/data/templates/woocommerce/components/method.html.twig new file mode 100644 index 0000000000..827481b0d0 --- /dev/null +++ b/data/templates/woocommerce/components/method.html.twig @@ -0,0 +1,22 @@ +
+

+ {{ method.name }}() + +

+ {{ include('components/element-found-in.html.twig', {'node': method}) }} + {{ include('components/summary.html.twig', {'node': method}) }} + {{ include('components/method-signature.html.twig', {'node': method}) }} + {{ include('components/description.html.twig', {'node': method}) }} + {{ include('components/method-arguments.html.twig', {'node': method}) }} + {{ include('components/tags.html.twig', {'tags': method.tags}) }} + {{ include('components/method-response.html.twig', {'node': method}) }} +
diff --git a/data/templates/woocommerce/components/methods.html.twig b/data/templates/woocommerce/components/methods.html.twig new file mode 100644 index 0000000000..cde9698a18 --- /dev/null +++ b/data/templates/woocommerce/components/methods.html.twig @@ -0,0 +1,12 @@ +{% set methods = methods(node)|sortByVisibility %} +{% if methods is not empty %} +
+

+ Methods + +

+ {% for method in methods %} + {% include 'components/method.html.twig' %} + {% endfor %} +
+{% endif %} diff --git a/data/templates/woocommerce/components/namespace-title.html.twig b/data/templates/woocommerce/components/namespace-title.html.twig new file mode 100644 index 0000000000..d9ecd0d905 --- /dev/null +++ b/data/templates/woocommerce/components/namespace-title.html.twig @@ -0,0 +1 @@ +

{{ node.name == '\\' ? 'API Documentation' : node.name }}

diff --git a/data/templates/woocommerce/components/properties.html.twig b/data/templates/woocommerce/components/properties.html.twig new file mode 100644 index 0000000000..1ba9f81ad7 --- /dev/null +++ b/data/templates/woocommerce/components/properties.html.twig @@ -0,0 +1,13 @@ +{% set properties = properties(node)|sortByVisibility %} + +{% if properties is not empty %} +
+

+ Properties + +

+ {% for property in properties %} + {% include 'components/property.html.twig' %} + {% endfor %} +
+{% endif %} diff --git a/data/templates/woocommerce/components/property-signature.html.twig b/data/templates/woocommerce/components/property-signature.html.twig new file mode 100644 index 0000000000..dfd3fdfcaf --- /dev/null +++ b/data/templates/woocommerce/components/property-signature.html.twig @@ -0,0 +1,7 @@ + + {{ node.visibility }} + {% if node.static %}static{% endif %} + {{ not node.type ? "mixed" : node.type|route('class:short')|join('|')|raw }} + ${{ node.name }} + {% if node.default is not null %} = {{ node.default is not null ? node.default : '""' }}{% endif %} + diff --git a/data/templates/woocommerce/components/property.html.twig b/data/templates/woocommerce/components/property.html.twig new file mode 100644 index 0000000000..78e7fb4607 --- /dev/null +++ b/data/templates/woocommerce/components/property.html.twig @@ -0,0 +1,25 @@ +
+

+ ${{ property.name }} + + + {% if property.writeOnly %}write-only{% endif %} + {% if property.readOnly %}read-only{% endif %} + +

+ {{ include('components/element-found-in.html.twig', {'node': property}) }} + {{ include('components/summary.html.twig', {'node': property}) }} + {{ include('components/property-signature.html.twig', {'node': property}) }} + {{ include('components/description.html.twig', {'node': property}) }} + {{ include ('components/tags.html.twig', {tags: property.tags}) }} +
diff --git a/data/templates/woocommerce/components/search-results.css.twig b/data/templates/woocommerce/components/search-results.css.twig new file mode 100644 index 0000000000..87ae5456b8 --- /dev/null +++ b/data/templates/woocommerce/components/search-results.css.twig @@ -0,0 +1,50 @@ +.phpdocumentor-content { + position: relative; +} + +.phpdocumentor-search-results { + backdrop-filter: blur(5px); + background: var(--popover-background-color); + min-height: 100%; + left: calc(var(--spacing-lg) * -1); + position: absolute; + right: calc(var(--spacing-lg) * -1); + top: 0; + padding: 0 var(--spacing-lg); + opacity: 1; + pointer-events: all; + + transition: opacity .3s, background .3s; +} + +.phpdocumentor-search-results--hidden { + background: transparent; + backdrop-filter: blur(0); + opacity: 0; + pointer-events: none; +} + +.phpdocumentor-search-results__entries { + list-style: none; + padding: 0; +} + +.phpdocumentor-search-results__entry { + border-bottom: 1px solid var(--table-separator-color); + padding: var(--spacing-sm) var(--spacing-md); + text-align: left; +} + +.phpdocumentor-search-results__entry a { + display: block; +} + +.phpdocumentor-search-results__entry small { + margin-top: var(--spacing-xs); + margin-bottom: var(--spacing-md); + color: var(--primary-color-darker); + display: block; +} +.phpdocumentor-search-results__entry h3 { + margin: 0; +} diff --git a/data/templates/woocommerce/components/search-results.html.twig b/data/templates/woocommerce/components/search-results.html.twig new file mode 100644 index 0000000000..fdc1d6aba0 --- /dev/null +++ b/data/templates/woocommerce/components/search-results.html.twig @@ -0,0 +1,6 @@ +
+ +

Search results

+
    +
+
diff --git a/data/templates/woocommerce/components/search.css.twig b/data/templates/woocommerce/components/search.css.twig new file mode 100644 index 0000000000..4fedadf40b --- /dev/null +++ b/data/templates/woocommerce/components/search.css.twig @@ -0,0 +1,33 @@ +.phpdocumentor-search { + position: relative; + display: none; /** disable by default for non-js flow */ + opacity: .3; /** white-out default for loading indication */ + transition: opacity .3s, background .3s; +} +.phpdocumentor-search:before { + content: ''; + background: transparent; + left: calc(-1 * var(--spacing-md)); + height: 100%; + position: absolute; + right: -15px; + z-index: -1; + opacity: 0; + transition: opacity .3s, background .3s; +} + +.phpdocumentor-search--enabled { + display: block; +} + +.phpdocumentor-search--active { + opacity: 1; +} +.phpdocumentor-search--has-results:before { + background: var(--popover-background-color); + opacity: 1; +} + +.phpdocumentor-search input:disabled { + background-color: lightgray; +} diff --git a/data/templates/woocommerce/components/search.html.twig b/data/templates/woocommerce/components/search.html.twig new file mode 100644 index 0000000000..3902a875a3 --- /dev/null +++ b/data/templates/woocommerce/components/search.html.twig @@ -0,0 +1,7 @@ + diff --git a/data/templates/woocommerce/components/sidebar.css.twig b/data/templates/woocommerce/components/sidebar.css.twig new file mode 100644 index 0000000000..6fd35db718 --- /dev/null +++ b/data/templates/woocommerce/components/sidebar.css.twig @@ -0,0 +1,57 @@ +.phpdocumentor-sidebar { + border-right: var(--sidebar-border-color) solid 1px; +} + +.phpdocumentor .phpdocumentor-sidebar .phpdocumentor-list { + padding-top: var(--spacing-xs); + padding-left: var(--spacing-md); + list-style: none; +} + +.phpdocumentor .phpdocumentor-sidebar li { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + padding: 0 0 var(--spacing-xxxs) var(--spacing-md); +} + +.phpdocumentor .phpdocumentor-sidebar abbr, +.phpdocumentor .phpdocumentor-sidebar a { + text-decoration: none; + border-bottom: none; + color: var(--text-color); + font-size: var(--text-md); + padding-left: 0; + transition: padding-left .4s ease-out; +} + +.phpdocumentor .phpdocumentor-sidebar a:hover { + padding-left: 5px; + font-weight: 600; +} + +.phpdocumentor .phpdocumentor-sidebar__category > * { + border-left: 1px solid var(--primary-color-lighten); +} + +.phpdocumentor .phpdocumentor-sidebar__category { + margin-bottom: var(--spacing-lg); +} + +.phpdocumentor .phpdocumentor-sidebar__category-header { + font-size: var(--text-md); + margin-bottom: var(--spacing-xs); + color: var(--link-color-primary); + font-weight: 600; + border-left: 0; +} + +.phpdocumentor .phpdocumentor-sidebar__root-package, +.phpdocumentor .phpdocumentor-sidebar__root-namespace { + font-size: var(--text-md); + margin: 0; + padding-top: var(--spacing-xs); + padding-left: var(--spacing-md); + color: var(--text-color); + font-weight: normal; +} diff --git a/data/templates/woocommerce/components/sidebar.html.twig b/data/templates/woocommerce/components/sidebar.html.twig new file mode 100644 index 0000000000..13db6f2c11 --- /dev/null +++ b/data/templates/woocommerce/components/sidebar.html.twig @@ -0,0 +1,57 @@ + diff --git a/data/templates/woocommerce/components/signature.css.twig b/data/templates/woocommerce/components/signature.css.twig new file mode 100644 index 0000000000..fdcab28dbc --- /dev/null +++ b/data/templates/woocommerce/components/signature.css.twig @@ -0,0 +1,9 @@ +.phpdocumentor-signature { + display: inline-block; + font-size: var(--text-sm); + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-signature.-deprecated .phpdocumentor-signature__name { + text-decoration: line-through; +} diff --git a/data/templates/woocommerce/components/summary.css.twig b/data/templates/woocommerce/components/summary.css.twig new file mode 100644 index 0000000000..27f21d59cf --- /dev/null +++ b/data/templates/woocommerce/components/summary.css.twig @@ -0,0 +1,3 @@ +.phpdocumentor-summary { + font-style: italic; +} diff --git a/data/templates/woocommerce/components/summary.html.twig b/data/templates/woocommerce/components/summary.html.twig new file mode 100644 index 0000000000..bb9ec94f88 --- /dev/null +++ b/data/templates/woocommerce/components/summary.html.twig @@ -0,0 +1,3 @@ +{% if node.summary %} +

{{ node.summary }}

+{% endif %} diff --git a/data/templates/woocommerce/components/table-of-contents-entry.html.twig b/data/templates/woocommerce/components/table-of-contents-entry.html.twig new file mode 100644 index 0000000000..b206e0d9c4 --- /dev/null +++ b/data/templates/woocommerce/components/table-of-contents-entry.html.twig @@ -0,0 +1,9 @@ +
+ {{ type == 'property' ? '$' }}{{ node.name }}{{ type == 'method' or type == 'function' ? '()' }} + + {% if type == 'constant' %} = {{ node.value }}{% endif %} + {% if type == 'property' %} : {{ node.type ? node.type|route('class:short')|join('|')|raw : 'mixed' }}{% endif %} + {% if type == 'method' or type == 'function' %} : {{ node.response.type|route('class:short')|join('|')|raw }}{% endif %} + +
+
{{ node.summary }}
diff --git a/data/templates/woocommerce/components/table-of-contents.css.twig b/data/templates/woocommerce/components/table-of-contents.css.twig new file mode 100644 index 0000000000..a6dbe6753e --- /dev/null +++ b/data/templates/woocommerce/components/table-of-contents.css.twig @@ -0,0 +1,95 @@ +.phpdocumentor-table-of-contents { +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry { + padding-top: var(--spacing-xs); + margin-left: 2rem; + display: flex; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > a { + flex: 0 1 auto; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > span { + flex: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:after { + content: ''; + height: 12px; + width: 12px; + left: 16px; + position: absolute; +} +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-private:after { + background: url('data:image/svg+xml;utf8,{{ include('icons/private.svg.twig')|trim|raw }}') no-repeat; +} +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-protected:after { + left: 13px; + background: url('data:image/svg+xml;utf8,{{ include('icons/protected.svg.twig')|trim|raw }}') no-repeat; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:before { + width: 1.25rem; + height: 1.25rem; + line-height: 1.25rem; + background: transparent url('data:image/svg+xml;utf8,{{ include('icons/method.svg.twig')|trim|raw }}') no-repeat center center; + content: ''; + position: absolute; + left: 0; + border-radius: 50%; + font-weight: 600; + color: white; + text-align: center; + font-size: .75rem; + margin-top: .2rem; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-method:before { + content: 'M'; + background-image: url('data:image/svg+xml;utf8,{{ include('icons/method.svg.twig')|trim|raw }}'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-function:before { + content: 'M'; + background-image: url('data:image/svg+xml;utf8,{{ include('icons/method.svg.twig')|trim|raw }}'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-property:before { + content: 'P' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-constant:before { + content: 'C'; + background-color: transparent; + background-image: url('data:image/svg+xml;utf8,{{ include('icons/constant.svg.twig')|trim|raw }}'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-class:before { + content: 'C' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-interface:before { + content: 'I' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-trait:before { + content: 'T' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-namespace:before { + content: 'N' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-package:before { + content: 'P' +} + +.phpdocumentor-table-of-contents dd { + font-style: italic; + margin-left: 2rem; +} diff --git a/data/templates/woocommerce/components/table-of-contents.html.twig b/data/templates/woocommerce/components/table-of-contents.html.twig new file mode 100644 index 0000000000..cdf1d6e96d --- /dev/null +++ b/data/templates/woocommerce/components/table-of-contents.html.twig @@ -0,0 +1,75 @@ +{% if packages|default([]) is not empty %} +

+ Packages + +

+ +
+ {% for package in packages %} +
{{ package|route('class:short') }}
+ {% endfor %} +
+{% endif %} + +{% if namespaces|default([]) is not empty %} +

+ Namespaces + +

+ +
+ {% for namespace in namespaces %} +
{{ namespace|route('class:short') }}
+ {% endfor %} +
+{% endif %} + +{% if node.interfaces is not empty or node.classes is not empty %} +

+ Interfaces, Classes and Traits + +

+ +
+ {% for interface in node.interfaces %} +
{{ interface|route('class:short') }}
+
{{ interface.summary }}
+ {% endfor %} + + {% for class in node.classes %} +
{{ class|route('class:short') }}
+
{{ class.summary }}
+ {% endfor %} + + {% for trait in node.traits %} +
{{ trait|route('class:short') }}
+
{{ trait.summary }}
+ {% endfor %} +
+{% endif %} + +{% set constants = constants(node) %} +{% set properties = properties(node) %} +{% set methods = methods(node) %} + +{% if constants is not empty or node.functions is not empty or methods is not empty or properties is not empty %} +

+ Table of Contents + +

+ +
+ {% for constant in constants(node)|sortByVisibility %} + {{ include('components/table-of-contents-entry.html.twig', {'type': 'constant', 'node': constant}) }} + {% endfor %} + {% for property in properties(node)|sortByVisibility %} + {{ include('components/table-of-contents-entry.html.twig', {'type': 'property', 'node': property}) }} + {% endfor %} + {% for method in methods(node)|sortByVisibility %} + {{ include('components/table-of-contents-entry.html.twig', {'type': 'method', 'node': method}) }} + {% endfor %} + {% for function in node.functions|default([]) %} + {{ include('components/table-of-contents-entry.html.twig', {'type': 'function', 'node': function}) }} + {% endfor %} +
+{% endif %} diff --git a/data/templates/woocommerce/components/tag-list.css.twig b/data/templates/woocommerce/components/tag-list.css.twig new file mode 100644 index 0000000000..3ea6d18867 --- /dev/null +++ b/data/templates/woocommerce/components/tag-list.css.twig @@ -0,0 +1,7 @@ +.phpdocumentor-tag-list__definition { + display: flex; +} + +.phpdocumentor-tag-link { + margin-right: var(--spacing-sm); +} diff --git a/data/templates/woocommerce/components/tags.html.twig b/data/templates/woocommerce/components/tags.html.twig new file mode 100644 index 0000000000..f83b65e5a0 --- /dev/null +++ b/data/templates/woocommerce/components/tags.html.twig @@ -0,0 +1,32 @@ +{% set tags = tags|filter((v,k) => k not in ['var', 'param', 'property', 'property-read', 'property-write', 'method', 'return', 'package', 'api']) %} + +{% if tags|length > 0 %} +
+ Tags + +
+
+ {% for name,seriesOfTag in tags %} + {% for tag in seriesOfTag %} +
+ {{ name }} +
+
+ {% if tag.version %} + {{ tag.version }} + {% endif %} + {% if tag.type %} + {{ tag.type|route('class:short')|join('|')|raw }} + {% endif %} + {% if tag.reference %} + {{ tag.reference|route('class:short')|join('|')|raw }} + {% endif %} + {% if tag.link %} + {{ tag.link }} + {% endif %} + {{ include('components/description.html.twig', {'node': tag}) }} +
+ {% endfor %} + {% endfor %} +
+{% endif %} diff --git a/data/templates/woocommerce/components/topnav.css.twig b/data/templates/woocommerce/components/topnav.css.twig new file mode 100644 index 0000000000..2eb2b8ffab --- /dev/null +++ b/data/templates/woocommerce/components/topnav.css.twig @@ -0,0 +1,44 @@ +.phpdocumentor-topnav { + display: flex; + flex: 1; + margin-left: 4%; + align-items: center; +} + +.phpdocumentor-topnav__menu { + display: inline-block; + list-style: none; + margin: 0; + padding: 0; + flex: 1; +} + +.phpdocumentor-topnav__menu.-social { + margin-left: auto; + flex: 0 auto; +} + +.phpdocumentor-topnav__menu-item { + display: inline; + margin: 0; + padding: 0 var(--spacing-lg) 0 0; +} + +.phpdocumentor-topnav__menu-item:last-of-type { + padding: 0; +} + +.phpdocumentor-topnav__menu-item a { + display: inline-block; + color: var(--text-color); + text-decoration: none; + font-size: var(--text-lg); + transition: all .3s ease-out; + border-bottom: 1px dotted transparent; + line-height: 1; +} + +.phpdocumentor-topnav__menu-item a:hover { + transform: perspective(15rem) translateY(.1rem); + border-bottom: 1px dotted var(--text-color); +} diff --git a/data/templates/woocommerce/components/topnav.html.twig b/data/templates/woocommerce/components/topnav.html.twig new file mode 100644 index 0000000000..f112f15676 --- /dev/null +++ b/data/templates/woocommerce/components/topnav.html.twig @@ -0,0 +1,16 @@ + diff --git a/data/templates/woocommerce/components/trait-title.html.twig b/data/templates/woocommerce/components/trait-title.html.twig new file mode 100644 index 0000000000..8ae29fbdc9 --- /dev/null +++ b/data/templates/woocommerce/components/trait-title.html.twig @@ -0,0 +1,11 @@ +

+ {{ node.name }} + {% if node.usedTraits is not empty %} + + Uses + {% for trait in node.usedTraits %} + {{ trait|route('trait:short') }}{% if not loop.last %}, {% endif %} + {% endfor %} + + {% endif %} +

diff --git a/data/templates/woocommerce/css/base.css.twig b/data/templates/woocommerce/css/base.css.twig new file mode 100644 index 0000000000..38b92b04c9 --- /dev/null +++ b/data/templates/woocommerce/css/base.css.twig @@ -0,0 +1,37 @@ +{% set breakpoints = {'sm': '400px', 'md': '550px', 'lg': '750px', 'xl': '1000px', 'xxl': '1200px'} %} + +{% include 'css/variables.css.twig' %} + +/* Base Styles +-------------------------------------------------- */ +body { + color: var(--text-color); + font-family: var(--font-primary); + font-size: var(--text-md); + letter-spacing: var(--letter-spacing--primary); + line-height: var(--line-height--primary); +} + +{% include 'objects/headings.css.twig' %} +{% include 'objects/paragraph.css.twig' %} +{% include 'objects/images.css.twig' %} +{% include 'objects/line.css.twig' %} +{% include 'objects/section.css.twig' %} +{% include 'objects/grid.css.twig' %} +{% include 'objects/links.css.twig' %} +{% include 'objects/buttons.css.twig' %} +{% include 'objects/forms.css.twig' %} +{% include 'objects/lists.css.twig' %} +{% include 'objects/code.css.twig' %} +{% include 'objects/tables.css.twig' %} + +{% include 'components/header.css.twig' %} +{% include 'components/header-title.css.twig' %} +{% include 'components/topnav.css.twig' %} +{% include 'components/sidebar.css.twig' %} +{% include 'components/admonition.css.twig' %} +{% include 'components/breadcrumbs.css.twig' %} +{% include 'components/back-to-top.css.twig' %} +{% include 'components/search.css.twig' %} + +{% include 'css/utilities.css.twig' %} diff --git a/data/templates/woocommerce/css/custom.css.twig b/data/templates/woocommerce/css/custom.css.twig new file mode 100644 index 0000000000..6b778ac61c --- /dev/null +++ b/data/templates/woocommerce/css/custom.css.twig @@ -0,0 +1 @@ +{# this file is meant as a catch-all location for consumers to provide overrides without having to override specific parts #} diff --git a/data/templates/woocommerce/css/normalize.css.twig b/data/templates/woocommerce/css/normalize.css.twig new file mode 100644 index 0000000000..46f646a5c0 --- /dev/null +++ b/data/templates/woocommerce/css/normalize.css.twig @@ -0,0 +1,427 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/data/templates/woocommerce/css/template.css.twig b/data/templates/woocommerce/css/template.css.twig new file mode 100644 index 0000000000..dea155ea94 --- /dev/null +++ b/data/templates/woocommerce/css/template.css.twig @@ -0,0 +1,10 @@ +{% include 'components/summary.css.twig' %} +{% include 'components/description.css.twig' %} +{% include 'components/element.css.twig' %} +{% include 'components/signature.css.twig' %} +{% include 'components/table-of-contents.css.twig' %} +{% include 'components/search-results.css.twig' %} +{% include 'components/element-found-in.css.twig' %} +{% include 'components/class-graph.css.twig' %} +{% include 'components/tag-list.css.twig' %} +{% include 'css/custom.css.twig' %} diff --git a/data/templates/woocommerce/css/utilities.css.twig b/data/templates/woocommerce/css/utilities.css.twig new file mode 100644 index 0000000000..08d7607aa4 --- /dev/null +++ b/data/templates/woocommerce/css/utilities.css.twig @@ -0,0 +1,4 @@ +/* Used for screen readers and such */ +.visually-hidden { + display: none; +} diff --git a/data/templates/woocommerce/css/variables.css.twig b/data/templates/woocommerce/css/variables.css.twig new file mode 100644 index 0000000000..caecd5384c --- /dev/null +++ b/data/templates/woocommerce/css/variables.css.twig @@ -0,0 +1,72 @@ +:root { + /* Typography */ + --font-primary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --font-secondary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --line-height--primary: 1.6; + --letter-spacing--primary: .05rem; + --text-base-size: 1em; + --text-scale-ratio: 1.2; + + --text-xxs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio) / var(--text-scale-ratio)); + --text-xs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio)); + --text-sm: calc(var(--text-base-size) / var(--text-scale-ratio)); + --text-md: var(--text-base-size); + --text-lg: calc(var(--text-base-size) * var(--text-scale-ratio)); + --text-xl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + + /* Colors */ + --primary-color: hsl(96, 57%, 60%); + --primary-color-darken: hsl(96, 57%, 40%); + --primary-color-darker: hsl(96, 57%, 20%); + --primary-color-lighten: hsl(96, 57%, 80%); + --primary-color-lighter: hsl(96, 57%, 97%); + --dark-gray: #d1d1d1; + --light-gray: #f0f0f0; + + --text-color: #4b3b40; + + --header-height: var(--spacing-xxxxl); + --header-bg-color: var(--primary-color); + --code-background-color: #f7faf5; + --code-border-color: #d6e7cb; + --button-border-color: var(--primary-color-darken); + --button-color: transparent; + --button-color-primary: var(--primary-color); + --button-text-color: #555; + --button-text-color-primary: white; + --popover-background-color: hsla(96, 57%, 95%, 0.9); + --link-color-primary: var(--primary-color-darken); + --link-hover-color-primary: var(--primary-color-darker); + --form-field-border-color: var(--dark-gray); + --form-field-color: #fff; + --admonition-success-color: var(--primary-color); + --admonition-border-color: silver; + --table-separator-color: var(--primary-color-lighten); + --title-text-color: var(--primary-color); + + --sidebar-border-color: var(--primary-color-lighten); + + /* Grid */ + --container-width: 1400px; + + /* Spacing */ + --spacing-base-size: 1rem; + --spacing-scale-ratio: 1.5; + + --spacing-xxxs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-xxs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-xs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-sm: calc(var(--spacing-base-size) / var(--spacing-scale-ratio)); + --spacing-md: var(--spacing-base-size); + --spacing-lg: calc(var(--spacing-base-size) * var(--spacing-scale-ratio)); + --spacing-xl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxxxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + + --border-radius-base-size: 3px; +} diff --git a/data/templates/woocommerce/file.html.twig b/data/templates/woocommerce/file.html.twig index ca475f879a..ff75f10daf 100644 --- a/data/templates/woocommerce/file.html.twig +++ b/data/templates/woocommerce/file.html.twig @@ -1,65 +1,13 @@ {% extends 'base.html.twig' %} {% block content %} - {% include 'breadcrumbs.html.twig' %} + {% include('components/breadcrumbs.html.twig') %} -

{{ node.name }}

+
+ {{ include('components/file-title.html.twig') }} + {{ include('components/table-of-contents.html.twig') }} - {% if node.interfaces is not empty or node.classes is not empty %} -

Interfaces, Classes and Traits

-
- {% for interface in node.interfaces %} -
{{ interface|route('class:short') }}
-
{{ interface.summary }}
- {% endfor %} - - {% for class in node.classes %} -
{{ class|route('class:short') }}
-
{{ class.summary }}
- {% endfor %} - - {% for trait in node.traits %} -
{{ trait|route('class:short') }}
-
{{ trait.summary }}
- {% endfor %} -
- {% endif %} - - {% if node.constants is not empty or node.functions is not empty %} -

Table of Contents

- - {% for constant in node.constants %} - - - - - - {% endfor %} - {% for function in node.functions %} - - - - - - {% endfor %} -
{{ constant|route('class:short') }}{{ constant.summary }}{{ constant.value }}
{{ function|route('class:short') }}{{ function.summary }}{{ function.type|route('class:short'|join('|')|raw) }}
- {% endif %} - - {% if node.constants is not empty %} -

Constants

- - {% endif %} - - {% if node.functions is not empty %} -
-

Functions

- {% for function in node.functions %} - {% include 'function.html.twig' %} - {% endfor %} -
- {% endif %} + {{ include('components/constants.html.twig') }} + {{ include('components/functions.html.twig') }} +
{% endblock %} diff --git a/data/templates/woocommerce/icons/constant.svg.twig b/data/templates/woocommerce/icons/constant.svg.twig new file mode 100644 index 0000000000..9f7621bad8 --- /dev/null +++ b/data/templates/woocommerce/icons/constant.svg.twig @@ -0,0 +1 @@ + diff --git a/data/templates/woocommerce/icons/method.svg.twig b/data/templates/woocommerce/icons/method.svg.twig new file mode 100644 index 0000000000..e164873544 --- /dev/null +++ b/data/templates/woocommerce/icons/method.svg.twig @@ -0,0 +1 @@ + diff --git a/data/templates/woocommerce/icons/private.svg.twig b/data/templates/woocommerce/icons/private.svg.twig new file mode 100644 index 0000000000..71a5306990 --- /dev/null +++ b/data/templates/woocommerce/icons/private.svg.twig @@ -0,0 +1 @@ + diff --git a/data/templates/woocommerce/icons/protected.svg.twig b/data/templates/woocommerce/icons/protected.svg.twig new file mode 100644 index 0000000000..74008148f9 --- /dev/null +++ b/data/templates/woocommerce/icons/protected.svg.twig @@ -0,0 +1 @@ + diff --git a/data/templates/woocommerce/index.html.twig b/data/templates/woocommerce/index.html.twig index a9359b6b8c..c7be5ef8e3 100644 --- a/data/templates/woocommerce/index.html.twig +++ b/data/templates/woocommerce/index.html.twig @@ -3,79 +3,18 @@ {% block content %}

Documentation

- {% if usesNamespaces or not usePackages %} -

Namespaces

-
- {% for namespace in project.namespace.children %} -
{{ namespace|route('class:short') }}
- {% endfor %} -
- {% endif %} - - {% if usesPackages %} -

Packages

-
- {% for package in project.package.children %} -
{{ package|route('class:short') }}
- {% endfor %} -
- {% endif %} - - {% if project.namespace.interfaces is not empty or project.namespace.classes is not empty %} -

Interfaces, Classes and Traits

-
- {% for interface in project.namespace.interfaces %} -
{{ interface|route('class:short') }}
-
{{ interface.summary }}
- {% endfor %} - - {% for class in project.namespace.classes %} -
{{ class|route('class:short') }}
-
{{ class.summary }}
- {% endfor %} - - {% for trait in project.namespace.traits %} -
{{ trait|route('class:short') }}
-
{{ trait.summary }}
- {% endfor %} -
- {% endif %} - - {% if project.namespace.constants is not empty or project.namespace.functions is not empty %} -

Table of Contents

- - {% for constant in project.namespace.constants %} - - - - - - {% endfor %} - {% for function in project.namespace.functions %} - - - - - - {% endfor %} -
{{ constant|route('class:short') }}{{ constant.summary }}{{ constant.value }}
{{ function|route('class:short') }}{{ function.summary }}{{ function.type|route('class:short'|join('|')|raw) }}
- {% endif %} - - {% if project.namespace.constants is not empty %} -

Constants

- - {% endif %} - - {% if project.namespace.functions is not empty %} -
-

Functions

- {% for function in project.namespace.functions %} - {% include 'function.html.twig' %} - {% endfor %} -
- {% endif %} + {% set node = project.namespace %} + + {{ + include( + 'components/table-of-contents.html.twig', + { + 'node': project.namespace, + 'namespaces': usesNamespaces or not usesPackages ? node.children : [], + 'packages': usesPackages ? project.package.children : [] + } + ) + }} + {{ include('components/constants.html.twig', {'node': project.namespace}) }} + {{ include('components/functions.html.twig', {'node': project.namespace}) }} {% endblock %} diff --git a/data/templates/woocommerce/indices/files.html.twig b/data/templates/woocommerce/indices/files.html.twig new file mode 100644 index 0000000000..af8bd6090d --- /dev/null +++ b/data/templates/woocommerce/indices/files.html.twig @@ -0,0 +1,18 @@ +{% extends 'base.html.twig' %} + +{% block content %} + {% set orderedFiles = project.files|sort((a,b) => a.name <=> b.name) %} + +

Files

+ {% for letter in range('a', 'z') %} + {% set filesStartingWith = orderedFiles|filter(v => v.name|first|lower == letter) %} + {% if filesStartingWith is not empty %} +

{{ letter|upper }}

+ + {% endif %} + {% endfor %} +{% endblock %} diff --git a/data/templates/woocommerce/interface.html.twig b/data/templates/woocommerce/interface.html.twig index 04062cdb57..ffa57ee23b 100644 --- a/data/templates/woocommerce/interface.html.twig +++ b/data/templates/woocommerce/interface.html.twig @@ -1,131 +1,14 @@ {% extends 'base.html.twig' %} {% block content %} - {% include 'breadcrumbs.html.twig' %} -
-

- {{ node.name }} - {% if node.parent is not empty %} - - extends - {% for interface in node.parent %} - {{ interface|route('class:short') }}{% if not loop.last %}, {% endif %} - {% endfor %} - - {% endif %} - {% if usesPackages %} -
- in - -
- {% endif %} -

- + {% include 'components/breadcrumbs.html.twig' %} -

{{ node.summary }}

-
{{ node.description|markdown }}
+
+ {{ include('components/interface-title.html.twig') }} + {{ include('components/element-found-in.html.twig') }} + {{ include('components/element-header.html.twig') }} -

Table of Contents

- - {% for constant in node.constants %} - - - - - - {% endfor %} - {% for property in node.properties %} - - - - - - {% endfor %} - {% for property in node.magicProperties %} - - - - - - {% endfor %} - {% for property in node.inheritedProperties %} - - - - - - {% endfor %} - {% for method in node.methods %} - - - - - - {% endfor %} - {% for method in node.magicMethods %} - - - - - - {% endfor %} - {% for method in node.inheritedMethods %} - - - - - - {% endfor %} -
{{ constant.name }}{{ constant.summary }}{{ constant.value }}
${{ property.name }}{{ property.summary }}{{ property.type|route('class:short')|join('|')|raw }}
${{ property.name }}{{ property.summary }}{{ property.type|route('class:short')|join('|')|raw }}
${{ property.name }}{{ property.summary }}{{ property.type|route('class:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('class:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('class:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('class:short')|join('|')|raw }}
- - {% if node.constants is not empty %} -
-

Constants

- {% for constant in node.constants %} - {% include 'constant.html.twig' %} - {% endfor %} - {% for constant in node.inheritedConstants %} - {% include 'constant.html.twig' %} - {% endfor %} -
- {% endif %} - - {% if node.properties is not empty or node.magicProperties is not empty or node.inheritedProperties is not empty %} -
-

Properties

- {% for property in node.properties %} - {% include 'property.html.twig' %} - {% endfor %} - {% for property in node.magicProperties %} - {% include 'property.html.twig' %} - {% endfor %} - {% for property in node.inheritedProperties %} - {% include 'property.html.twig' %} - {% endfor %} -
- {% endif %} - - {% if node.methods is not empty or node.magicMethods is not empty or node.inheritedMethods is not empty %} -
-

Methods

- {% for method in node.methods %} - {% include 'method.html.twig' %} - {% endfor %} - {% for method in node.magicMethods %} - {% include 'method.html.twig' %} - {% endfor %} - {% for method in node.inheritedMethods %} - {% include 'method.html.twig' %} - {% endfor %} -
- {% endif %} + {{ include('components/constants.html.twig') }} + {{ include('components/methods.html.twig') }}
{% endblock %} diff --git a/data/templates/woocommerce/layout.html.twig b/data/templates/woocommerce/layout.html.twig new file mode 100644 index 0000000000..d3f7b44eec --- /dev/null +++ b/data/templates/woocommerce/layout.html.twig @@ -0,0 +1,42 @@ + + + + + {% block title %}{{ project.name }}{% endblock %} + + + + + {% block stylesheets %} + + + + {% endblock %} + {% block javascripts %} + + + + + + {% endblock %} + + + {% include 'components/header.html.twig' %} + +
+
+ {% include 'components/sidebar.html.twig' %} + +
+ {% block content %}{% endblock %} + {% include 'components/search-results.html.twig' %} +
+
+ {{ include('components/back-to-top.html.twig') }} +
+ + + + diff --git a/data/templates/woocommerce/namespace.html.twig b/data/templates/woocommerce/namespace.html.twig index ef6f83e9ec..8f57944208 100644 --- a/data/templates/woocommerce/namespace.html.twig +++ b/data/templates/woocommerce/namespace.html.twig @@ -1,74 +1,12 @@ {% extends 'base.html.twig' %} {% block content %} - {% include 'breadcrumbs.html.twig' %} - -

{{ node.name == '\\' ? 'API Documentation' : node.name }}

- - {% if node.children is not empty %} -

Namespaces

-
- {% for namespace in node.children %} -
{{ namespace|route('class:short') }}
- {% endfor %} -
- {% endif %} - - {% if node.interfaces is not empty or node.classes is not empty %} -

Interfaces, Classes and Traits

-
- {% for interface in node.interfaces %} -
{{ interface|route('class:short') }}
-
{{ interface.summary }}
- {% endfor %} - - {% for class in node.classes %} -
{{ class|route('class:short') }}
-
{{ class.summary }}
- {% endfor %} - - {% for trait in node.traits %} -
{{ trait|route('class:short') }}
-
{{ trait.summary }}
- {% endfor %} -
- {% endif %} - - {% if node.constants is not empty or node.functions is not empty %} -

Table of Contents

- - {% for constant in node.constants %} - - - - - - {% endfor %} - {% for function in node.functions %} - - - - - - {% endfor %} -
{{ constant|route('class:short') }}{{ constant.summary }}{{ constant.value }}
{{ function|route('class:short') }}{{ function.summary }}{{ function.type|route('class:short'|join('|')|raw) }}
- {% endif %} - - {% if node.constants is not empty %} -

Constants

- - {% endif %} - - {% if node.functions is not empty %} -
-

Functions

- {% for function in node.functions %} - {% include 'function.html.twig' %} - {% endfor %} -
- {% endif %} + {% include 'components/breadcrumbs.html.twig' %} + +
+ {{ include('components/namespace-title.html.twig') }} + {{ include('components/table-of-contents.html.twig', {'namespaces': node.children}) }} + {{ include('components/constants.html.twig') }} + {{ include('components/functions.html.twig') }} +
{% endblock %} diff --git a/data/templates/woocommerce/objects/blockquote.css.twig b/data/templates/woocommerce/objects/blockquote.css.twig new file mode 100644 index 0000000000..23fa42742d --- /dev/null +++ b/data/templates/woocommerce/objects/blockquote.css.twig @@ -0,0 +1,3 @@ +.phpdocumentor blockquote { + margin-bottom: var(--spacing-md); +} diff --git a/data/templates/woocommerce/objects/buttons.css.twig b/data/templates/woocommerce/objects/buttons.css.twig new file mode 100644 index 0000000000..f40ab1c43e --- /dev/null +++ b/data/templates/woocommerce/objects/buttons.css.twig @@ -0,0 +1,44 @@ +.phpdocumentor-button { + background-color: var(--button-color); + border: 1px solid var(--button-border-color); + border-radius: var(--border-radius-base-size); + box-sizing: border-box; + color: var(--button-text-color); + cursor: pointer; + display: inline-block; + font-size: var(--text-sm); + font-weight: 600; + height: 38px; + letter-spacing: .1rem; + line-height: 38px; + padding: 0 var(--spacing-xxl); + text-align: center; + text-decoration: none; + text-transform: uppercase; + white-space: nowrap; + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-button .-wide { + width: 100%; +} + +.phpdocumentor-button:hover, +.phpdocumentor-button:focus { + border-color: #888; + color: #333; + outline: 0; +} + +.phpdocumentor-button.-primary { + background-color: var(--button-color-primary); + border-color: var(--button-color-primary); + color: var(--button-text-color-primary); +} + +.phpdocumentor-button.-primary:hover, +.phpdocumentor-button.-primary:focus { + background-color: var(--link-color-primary); + border-color: var(--link-color-primary); + color: var(--button-text-color-primary); +} diff --git a/data/templates/woocommerce/objects/code.css.twig b/data/templates/woocommerce/objects/code.css.twig new file mode 100644 index 0000000000..9a7cdb26bc --- /dev/null +++ b/data/templates/woocommerce/objects/code.css.twig @@ -0,0 +1,18 @@ +.phpdocumentor pre { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-code { + background: var(--code-background-color); + border: 1px solid var(--code-border-color); + border-radius: var(--border-radius-base-size); + font-size: var(--text-sm); + padding: var(--spacing-sm) var(--spacing-md); + width: 100%; + box-sizing: border-box; +} + +pre > .phpdocumentor-code { + display: block; + white-space: pre; +} diff --git a/data/templates/woocommerce/objects/forms.css.twig b/data/templates/woocommerce/objects/forms.css.twig new file mode 100644 index 0000000000..c013777d9a --- /dev/null +++ b/data/templates/woocommerce/objects/forms.css.twig @@ -0,0 +1,54 @@ +.phpdocumentor form { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-field { + background-color: var(--form-field-color); + border: 1px solid var(--form-field-border-color); + border-radius: var(--border-radius-base-size); + box-shadow: none; + box-sizing: border-box; + height: 38px; + padding: var(--spacing-xxxs) var(--spacing-xxs); /* The 6px vertically centers text on FF, ignored by Webkit */ + margin-bottom: var(--spacing-md); +} + +/* Removes awkward default styles on some inputs for iOS */ +input[type="email"], +input[type="number"], +input[type="search"], +input[type="text"], +input[type="tel"], +input[type="url"], +input[type="password"], +textarea { + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; +} + +.phpdocumentor-textarea { + min-height: 65px; + padding-bottom: var(--spacing-xxxs); + padding-top: var(--spacing-xxxs); +} + +.phpdocumentor-field:focus { + border: 1px solid var(--button-color-primary); + outline: 0; +} + +.phpdocumentor-label { + display: block; + margin-bottom: var(--spacing-xs); +} + +.phpdocumentor-fieldset { + border-width: 0; + padding: 0; +} + +input[type="checkbox"].phpdocumentor-field, +input[type="radio"].phpdocumentor-field { + display: inline; +} diff --git a/data/templates/woocommerce/objects/grid.css.twig b/data/templates/woocommerce/objects/grid.css.twig new file mode 100644 index 0000000000..a101166a58 --- /dev/null +++ b/data/templates/woocommerce/objects/grid.css.twig @@ -0,0 +1,133 @@ +.phpdocumentor-column { + box-sizing: border-box; + float: left; + width: 100%; +} + +@media (min-width: {{ breakpoints['md'] }}) { + .phpdocumentor-column { + margin-left: 4%; + } + + .phpdocumentor-column:first-child { + margin-left: 0; + } + + .-one.phpdocumentor-column { + width: 4.66666666667%; + } + + .-two.phpdocumentor-column { + width: 13.3333333333%; + } + + .-three.phpdocumentor-column { + width: 22%; + } + + .-four.phpdocumentor-column { + width: 30.6666666667%; + } + + .-five.phpdocumentor-column { + width: 39.3333333333%; + } + + .-six.phpdocumentor-column { + width: 48%; + } + + .-seven.phpdocumentor-column { + width: 56.6666666667%; + } + + .-eight.phpdocumentor-column { + width: 65.3333333333%; + } + + .-nine.phpdocumentor-column { + width: 74.0%; + } + + .-ten.phpdocumentor-column { + width: 82.6666666667%; + } + + .-eleven.phpdocumentor-column { + width: 91.3333333333%; + } + + .-twelve.phpdocumentor-column { + margin-left: 0; + width: 100%; + } + + .-one-third.phpdocumentor-column { + width: 30.6666666667%; + } + + .-two-thirds.phpdocumentor-column { + width: 65.3333333333%; + } + + .-one-half.phpdocumentor-column { + width: 48%; + } + + /* Offsets */ + .-offset-by-one.phpdocumentor-column { + margin-left: 8.66666666667%; + } + + .-offset-by-two.phpdocumentor-column { + margin-left: 17.3333333333%; + } + + .-offset-by-three.phpdocumentor-column { + margin-left: 26%; + } + + .-offset-by-four.phpdocumentor-column { + margin-left: 34.6666666667%; + } + + .-offset-by-five.phpdocumentor-column { + margin-left: 43.3333333333%; + } + + .-offset-by-six.phpdocumentor-column { + margin-left: 52%; + } + + .-offset-by-seven.phpdocumentor-column { + margin-left: 60.6666666667%; + } + + .-offset-by-eight.phpdocumentor-column { + margin-left: 69.3333333333%; + } + + .-offset-by-nine.phpdocumentor-column { + margin-left: 78.0%; + } + + .-offset-by-ten.phpdocumentor-column { + margin-left: 86.6666666667%; + } + + .-offset-by-eleven.phpdocumentor-column { + margin-left: 95.3333333333%; + } + + .-offset-by-one-third.phpdocumentor-column { + margin-left: 34.6666666667%; + } + + .-offset-by-two-thirds.phpdocumentor-column { + margin-left: 69.3333333333%; + } + + .-offset-by-one-half.phpdocumentor-column { + margin-left: 52%; + } +} diff --git a/data/templates/woocommerce/objects/headings.css.twig b/data/templates/woocommerce/objects/headings.css.twig new file mode 100644 index 0000000000..263500669b --- /dev/null +++ b/data/templates/woocommerce/objects/headings.css.twig @@ -0,0 +1,77 @@ +.phpdocumentor h1, +.phpdocumentor h2, +.phpdocumentor h3, +.phpdocumentor h4, +.phpdocumentor h5, +.phpdocumentor h6 { + margin-bottom: var(--spacing-lg); + margin-top: var(--spacing-lg); + font-weight: 600; +} + +.phpdocumentor h1 { + font-size: var(--text-xxxxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.2; + margin-top: 0; +} + +.phpdocumentor h2 { + font-size: var(--text-xxxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.25; + margin-top: 0; +} + +.phpdocumentor h3 { + font-size: var(--text-xxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.3; +} + +.phpdocumentor h4 { + font-size: var(--text-xl); + letter-spacing: calc(var(--letter-spacing--primary) / 2); + line-height: 1.35; + margin-bottom: var(--spacing-md); +} + +.phpdocumentor h5 { + font-size: var(--text-lg); + letter-spacing: calc(var(--letter-spacing--primary) / 4); + line-height: 1.5; + margin-bottom: var(--spacing-md); + margin-top: var(--spacing-md); +} + +.phpdocumentor h6 { + font-size: var(--text-md); + letter-spacing: 0; + line-height: var(--line-height--primary); + margin-bottom: var(--spacing-md); + margin-top: var(--spacing-md); +} + +.phpdocumentor h1 .headerlink, +.phpdocumentor h2 .headerlink, +.phpdocumentor h3 .headerlink, +.phpdocumentor h4 .headerlink, +.phpdocumentor h5 .headerlink, +.phpdocumentor h6 .headerlink +{ + transition: all .3s ease-in-out; + opacity: 0; + text-decoration: none; + color: silver; + font-size: 80%; +} + +.phpdocumentor h1:hover .headerlink, +.phpdocumentor h2:hover .headerlink, +.phpdocumentor h3:hover .headerlink, +.phpdocumentor h4:hover .headerlink, +.phpdocumentor h5:hover .headerlink, +.phpdocumentor h6:hover .headerlink +{ + opacity: 1; +} diff --git a/data/templates/woocommerce/objects/images.css.twig b/data/templates/woocommerce/objects/images.css.twig new file mode 100644 index 0000000000..d60887da9b --- /dev/null +++ b/data/templates/woocommerce/objects/images.css.twig @@ -0,0 +1,3 @@ +.phpdocumentor figure { + margin-bottom: var(--spacing-md); +} diff --git a/data/templates/woocommerce/objects/line.css.twig b/data/templates/woocommerce/objects/line.css.twig new file mode 100644 index 0000000000..3f44e231e5 --- /dev/null +++ b/data/templates/woocommerce/objects/line.css.twig @@ -0,0 +1,6 @@ +.phpdocumentor-line { + border-top: 1px solid #E1E1E1; + border-width: 0; + margin-bottom: var(--spacing-xxl); + margin-top: var(--spacing-xxl); +} diff --git a/data/templates/woocommerce/objects/links.css.twig b/data/templates/woocommerce/objects/links.css.twig new file mode 100644 index 0000000000..ff85d6c91f --- /dev/null +++ b/data/templates/woocommerce/objects/links.css.twig @@ -0,0 +1,7 @@ +.phpdocumentor a { + color: var(--link-color-primary); +} + +.phpdocumentor a:hover { + color: var(--link-hover-color-primary); +} diff --git a/data/templates/woocommerce/objects/lists.css.twig b/data/templates/woocommerce/objects/lists.css.twig new file mode 100644 index 0000000000..3f74e934bd --- /dev/null +++ b/data/templates/woocommerce/objects/lists.css.twig @@ -0,0 +1,33 @@ +div.phpdocumentor-list > ul, +ul.phpdocumentor-list { + list-style: circle inside; +} + +ol.phpdocumentor-list { + list-style: decimal inside; +} + +div.phpdocumentor-list > ul, +ol.phpdocumentor-list, +ul.phpdocumentor-list { + margin-top: 0; + padding-left: 0; + margin-bottom: var(--spacing-md); +} + +dl { + margin-bottom: var(--spacing-md); +} + +div.phpdocumentor-list > ul ul, +ul.phpdocumentor-list ul.phpdocumentor-list, +ul.phpdocumentor-list ol.phpdocumentor-list, +ol.phpdocumentor-list ol.phpdocumentor-list, +ol.phpdocumentor-list ul.phpdocumentor-list { + font-size: var(--text-sm); + margin: var(--spacing-xs) 0 var(--spacing-xs) calc(var(--spacing-xs) * 2); +} + +li.phpdocumentor-list { + margin-bottom: var(--spacing-md); +} diff --git a/data/templates/woocommerce/objects/paragraph.css.twig b/data/templates/woocommerce/objects/paragraph.css.twig new file mode 100644 index 0000000000..5b6695604a --- /dev/null +++ b/data/templates/woocommerce/objects/paragraph.css.twig @@ -0,0 +1,4 @@ +.phpdocumentor p { + margin-top: 0; + margin-bottom: var(--spacing-md); +} diff --git a/data/templates/woocommerce/objects/section.css.twig b/data/templates/woocommerce/objects/section.css.twig new file mode 100644 index 0000000000..34dd372a09 --- /dev/null +++ b/data/templates/woocommerce/objects/section.css.twig @@ -0,0 +1,21 @@ +.phpdocumentor-section { + box-sizing: border-box; + margin: 0 auto; + max-width: var(--container-width); + padding: 0 var(--spacing-lg); + position: relative; + width: 100%; +} + +@media (min-width: {{ breakpoints['xxl'] }}) { + .phpdocumentor-section { + padding: 0; + width: 95%; + } +} + +@media (min-width: {{ breakpoints['xl'] }}) { + .phpdocumentor-section { + width: 85%; + } +} diff --git a/data/templates/woocommerce/objects/tables.css.twig b/data/templates/woocommerce/objects/tables.css.twig new file mode 100644 index 0000000000..ddf8c0b745 --- /dev/null +++ b/data/templates/woocommerce/objects/tables.css.twig @@ -0,0 +1,20 @@ +.phpdocumentor table { + margin-bottom: var(--spacing-md); +} + +th.phpdocumentor-heading, +td.phpdocumentor-cell { + border-bottom: 1px solid var(--table-separator-color); + padding: var(--spacing-sm) var(--spacing-md); + text-align: left; +} + +th.phpdocumentor-heading:first-child, +td.phpdocumentor-cell:first-child { + padding-left: 0; +} + +th.phpdocumentor-heading:last-child, +td.phpdocumentor-cell:last-child { + padding-right: 0; +} diff --git a/data/templates/woocommerce/package.html.twig b/data/templates/woocommerce/package.html.twig index 8c9e1140a0..2b021f1e85 100644 --- a/data/templates/woocommerce/package.html.twig +++ b/data/templates/woocommerce/package.html.twig @@ -1,74 +1,12 @@ {% extends 'base.html.twig' %} {% block content %} - {% include 'breadcrumbs.html.twig' %} - -

{{ node.name == '\\' ? 'API Documentation' : node.name }}

- - {% if node.children is not empty %} -

Packages

-
- {% for package in node.children %} -
{{ package|route('class:short') }}
- {% endfor %} -
- {% endif %} - - {% if node.interfaces is not empty or node.classes is not empty %} -

Interfaces, Classes and Traits

-
- {% for interface in node.interfaces %} -
{{ interface|route('class:short') }}
-
{{ interface.summary }}
- {% endfor %} - - {% for class in node.classes %} -
{{ class|route('class:short') }}
-
{{ class.summary }}
- {% endfor %} - - {% for trait in node.traits %} -
{{ trait|route('class:short') }}
-
{{ trait.summary }}
- {% endfor %} -
- {% endif %} - - {% if node.constants is not empty or node.functions is not empty %} -

Table of Contents

- - {% for constant in node.constants %} - - - - - - {% endfor %} - {% for function in node.functions %} - - - - - - {% endfor %} -
{{ constant|route('class:short') }}{{ constant.summary }}{{ constant.value }}
{{ function|route('class:short') }}{{ function.summary }}{{ function.type|route('class:short'|join('|')|raw) }}
- {% endif %} - - {% if node.constants is not empty %} -

Constants

- - {% endif %} - - {% if node.functions is not empty %} -
-

Functions

- {% for function in node.functions %} - {% include 'function.html.twig' %} - {% endfor %} -
- {% endif %} + {% include 'components/breadcrumbs.html.twig' %} + +
+ {{ include('components/namespace-title.html.twig') }} + {{ include('components/table-of-contents.html.twig', {'packages': node.children}) }} + {{ include('components/constants.html.twig') }} + {{ include('components/functions.html.twig') }} +
{% endblock %} diff --git a/data/templates/woocommerce/template.xml b/data/templates/woocommerce/template.xml index 7a46e24199..a49aea8f74 100644 --- a/data/templates/woocommerce/template.xml +++ b/data/templates/woocommerce/template.xml @@ -1,11 +1,10 @@ diff --git a/data/templates/woocommerce/trait.html.twig b/data/templates/woocommerce/trait.html.twig index 713b97ed18..faa2c15483 100644 --- a/data/templates/woocommerce/trait.html.twig +++ b/data/templates/woocommerce/trait.html.twig @@ -1,101 +1,14 @@ {% extends 'base.html.twig' %} {% block content %} - {% include 'breadcrumbs.html.twig' %} + {% include 'components/breadcrumbs.html.twig' %} -

- {{ node.name }} - {% if node.usedTraits is not empty %} - - Uses - {% for trait in node.usedTraits %} - {{ trait|route('trait:short') }}{% if not loop.last %}, {% endif %} - {% endfor %} - - {% endif %} -

- +
+ {{ include('components/trait-title.html.twig') }} + {{ include('components/element-found-in.html.twig') }} + {{ include('components/element-header.html.twig') }} -

{{ node.summary }}

-
{{ node.description|markdown }}
- -

Table of Contents

- - {% for property in node.properties %} - - - - - - {% endfor %} - {% for property in node.magicProperties %} - - - - - - {% endfor %} - {% for property in node.inheritedProperties %} - - - - - - {% endfor %} - {% for method in node.methods %} - - - - - - {% endfor %} - {% for method in node.magicMethods %} - - - - - - {% endfor %} - {% for method in node.inheritedMethods %} - - - - - - {% endfor %} -
${{ property.name }}{{ property.summary }}{{ property.type|route('trait:short')|join('|')|raw }}
${{ property.name }}{{ property.summary }}{{ property.type|route('trait:short')|join('|')|raw }}
${{ property.name }}{{ property.summary }}{{ property.type|route('trait:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('trait:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('trait:short')|join('|')|raw }}
{{ method.name }}(){{ method.summary }}{{ method.response.type|route('trait:short')|join('|')|raw }}
- - {% if node.properties|length > 0 or node.magicProperties|length > 0 or node.inheritedProperties|length > 0 %} -
-

Properties

- {% for property in node.properties %} - {% include 'property.html.twig' %} - {% endfor %} - {% for property in node.magicProperties %} - {% include 'property.html.twig' %} - {% endfor %} - {% for property in node.inheritedProperties %} - {% include 'property.html.twig' %} - {% endfor %} -
- {% endif %} - - {% if node.methods|length > 0 or node.magicMethods|length > 0 or node.inheritedMethods|length > 0 %} -
-

Methods

- {% for method in node.methods %} - {% include 'method.html.twig' %} - {% endfor %} - {% for method in node.magicMethods %} - {% include 'method.html.twig' %} - {% endfor %} - {% for method in node.inheritedMethods %} - {% include 'method.html.twig' %} - {% endfor %} -
- {% endif %} + {{ include('components/properties.html.twig') }} + {{ include('components/methods.html.twig') }} +
{% endblock %} From da12d72c6f6f5e410d4dee043eb6a1e3e16522e3 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 15 Sep 2020 12:53:21 -0300 Subject: [PATCH 02/43] Removed old templates --- .../woocommerce/breadcrumbs.html.twig | 12 --- .../components/header-title.css.twig | 40 --------- .../components/header-title.html.twig | 1 - data/templates/woocommerce/constant.html.twig | 28 ------- data/templates/woocommerce/function.html.twig | 82 ------------------- data/templates/woocommerce/method.html.twig | 82 ------------------- data/templates/woocommerce/property.html.twig | 29 ------- data/templates/woocommerce/sidebar.html.twig | 35 -------- 8 files changed, 309 deletions(-) delete mode 100644 data/templates/woocommerce/breadcrumbs.html.twig delete mode 100644 data/templates/woocommerce/components/header-title.css.twig delete mode 100644 data/templates/woocommerce/components/header-title.html.twig delete mode 100644 data/templates/woocommerce/constant.html.twig delete mode 100644 data/templates/woocommerce/function.html.twig delete mode 100644 data/templates/woocommerce/method.html.twig delete mode 100644 data/templates/woocommerce/property.html.twig delete mode 100644 data/templates/woocommerce/sidebar.html.twig diff --git a/data/templates/woocommerce/breadcrumbs.html.twig b/data/templates/woocommerce/breadcrumbs.html.twig deleted file mode 100644 index 9be13193a1..0000000000 --- a/data/templates/woocommerce/breadcrumbs.html.twig +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/data/templates/woocommerce/components/header-title.css.twig b/data/templates/woocommerce/components/header-title.css.twig deleted file mode 100644 index 5306e45f3a..0000000000 --- a/data/templates/woocommerce/components/header-title.css.twig +++ /dev/null @@ -1,40 +0,0 @@ -.phpdocumentor-title { - box-sizing: border-box; - color: var(--title-text-color); - font-size: var(--text-xxl); - letter-spacing: .05rem; - font-weight: normal; - width: 30.6666666667%; - margin: 0; - border-right: var(--sidebar-border-color) solid 1px; - display: flex; - align-items: center; -} - -.phpdocumentor-title__link { - transition: all .3s ease-out; - display: block; - color: var(--title-text-color); - text-decoration: none; - font-weight: normal; - white-space: nowrap; - transform: scale(.75); - transform-origin: left; -} - -.phpdocumentor-title__link:hover { - transform: perspective(15rem) translateX(.5rem); - font-weight: 600; -} - -@media (min-width: {{ breakpoints['xl'] }}) { - .phpdocumentor-title__link { - transform: scale(.85); - } -} - -@media (min-width: {{ breakpoints['xxl'] }}) { - .phpdocumentor-title__link { - transform: scale(1); - } -} diff --git a/data/templates/woocommerce/components/header-title.html.twig b/data/templates/woocommerce/components/header-title.html.twig deleted file mode 100644 index f66ddb68aa..0000000000 --- a/data/templates/woocommerce/components/header-title.html.twig +++ /dev/null @@ -1 +0,0 @@ -

{{ project.name }}

diff --git a/data/templates/woocommerce/constant.html.twig b/data/templates/woocommerce/constant.html.twig deleted file mode 100644 index 8350b442f6..0000000000 --- a/data/templates/woocommerce/constant.html.twig +++ /dev/null @@ -1,28 +0,0 @@ - -
-

{{ constant.name }}

- - {% if constant.summary %} -

{{ constant.summary }}

- {% endif %} - - {{ constant.visibility }} - {{ not constant.type ? "mixed" : constant.type|route('class:short')|join('|')|raw }} - ${{ constant.name }} - = {{ constant.value ?: '""' }} - - {% if constant.description %} -
{{ constant.description }}
- {% endif %} -
diff --git a/data/templates/woocommerce/function.html.twig b/data/templates/woocommerce/function.html.twig deleted file mode 100644 index d390f9c754..0000000000 --- a/data/templates/woocommerce/function.html.twig +++ /dev/null @@ -1,82 +0,0 @@ - -
-

{{ function.name }}()

- - - - {% if function.summary %} -

{{ function.summary }}

- {% endif %} - - {{ function.visibility }} - {% if function.abstract %}abstract{% endif %} - {% if function.final %}final{% endif %} - {% if function.static %}static{% endif %} - {{ function.name }}( - {% for argument in function.arguments %} - - {% if argument.default %}[{% endif %}{% if not loop.first %}, {% endif %} - {% if argument.isVariadic %}...{% endif %} - {%- if argument.byReference -%}&{%- endif -%} - ${{ argument.name }} : - {{ argument.type|route('class:short')|join('|')|raw }} - {% if argument.default %} = {{ argument.default }} ]{% endif %} - - {% endfor %} - ) - : {{ function.response.type|route('class:short')|join('|')|raw }} - - - {% if function.description %} -
{{ function.description|markdown }}
- {% endif %} - - {% if function.arguments|length > 0 %} -
Parameters
-
- {% for argument in function.arguments %} -
- ${{ argument.name }} - : {{ argument.type|route('class:short')|join('|')|raw }} - {% if argument.default %} = {{ argument.default }}{% endif %} -
-
{{ argument.description|default('')|markdown }}
- {% endfor %} -
- {% endif %} - - {% set visibleTags = function.tags|filter((v,k) => k not in ['param', 'return', 'package']) %} - {% if visibleTags|length > 0 %} -
Tags
-
- {% for name,seriesOfTag in visibleTags %} - {% for tag in seriesOfTag %} -
- {{ name }} -
-
{{ tag.description|default('')|markdown }}
- {% endfor %} - {% endfor %} -
- {% endif %} - - {% if (function.response.type and function.response.type != 'void') or function.response.description %} -
Return values
- {{ function.response.type|route('class:short')|join('|')|raw }} - {% if function.response.description %} - — {{ function.response.description|markdown }} - {% endif %} - {% endif %} - -
diff --git a/data/templates/woocommerce/method.html.twig b/data/templates/woocommerce/method.html.twig deleted file mode 100644 index c85ae01469..0000000000 --- a/data/templates/woocommerce/method.html.twig +++ /dev/null @@ -1,82 +0,0 @@ - -
-

{{ method.name }}()

- - {% if method.summary %} -

{{ method.summary }}

- {% endif %} - - {{ method.visibility }} - {% if method.abstract %}abstract{% endif %} - {% if method.final %}final{% endif %} - {% if method.static %}static{% endif %} - {{ method.name }}( - {% for argument in method.arguments %} - - {% if argument.default %}[{% endif %}{% if not loop.first %}, {% endif %} - {% if argument.isVariadic %}...{% endif %} - {%- if argument.byReference -%}&{%- endif -%} - ${{ argument.name }} : - {{ argument.type|route('class:short')|join('|')|raw }} - {% if argument.default %} = {{ argument.default }} ]{% endif %} - - {% endfor %} - ) - : {{ method.response.type|route('class:short')|join('|')|raw }} - - - {% if method.description %} -
{{ method.description|markdown }}
- {% endif %} - - {% if method.arguments|length > 0 %} -
Parameters
-
- {% for argument in method.arguments %} -
- ${{ argument.name }} - : {{ argument.type|route('class:short')|join('|')|raw }} - {% if argument.default %} = {{ argument.default }}{% endif %} -
-
{{ argument.description|default('')|markdown }}
- {% endfor %} -
- {% endif %} - - {% set visibleTags = method.tags|filter((v,k) => k not in ['param', 'return']) %} - {% if visibleTags|length > 0 %} -
Tags
-
- {% for name,seriesOfTag in visibleTags %} - {% for tag in seriesOfTag %} -
- {{ name }} -
-
{{ tag.description|default('')|markdown }}
- {% endfor %} - {% endfor %} -
- {% endif %} - - {% if (method.response.type and method.response.type != 'void') or method.response.description %} -
Return values
- {{ method.response.type|route('class:short')|join('|')|raw }} - {% if method.response.description %} - — {{ method.response.description|markdown }} - {% endif %} - {% endif %} - -
diff --git a/data/templates/woocommerce/property.html.twig b/data/templates/woocommerce/property.html.twig deleted file mode 100644 index 8de6086b77..0000000000 --- a/data/templates/woocommerce/property.html.twig +++ /dev/null @@ -1,29 +0,0 @@ - -
-

${{ property.name }}

- - {% if property.summary %} -

{{ property.summary }}

- {% endif %} - - {{ property.visibility }} - {% if property.static %}static{% endif %} - {{ not property.type ? "mixed" : property.type|route('class:short')|join('|')|raw }} - ${{ property.name }} - {% if property.default is not null %} = {{ property.default ?: '""' }}{% endif %} - - {% if property.description %} -
{{ property.description }}
- {% endif %} -
diff --git a/data/templates/woocommerce/sidebar.html.twig b/data/templates/woocommerce/sidebar.html.twig deleted file mode 100644 index 0fd835629b..0000000000 --- a/data/templates/woocommerce/sidebar.html.twig +++ /dev/null @@ -1,35 +0,0 @@ - From e1eed1b01b07c76a75ca97a00dd7dee44e017880 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 15 Sep 2020 12:53:45 -0300 Subject: [PATCH 03/43] Custom header and footer + styles --- .../woocommerce/components/footer.html.twig | 5 + .../woocommerce/components/header.html.twig | 33 +- .../woocommerce/components/sidebar.html.twig | 2 - .../components/table-of-contents.html.twig | 23 +- data/templates/woocommerce/css/base.css.twig | 1 - .../templates/woocommerce/css/custom.css.twig | 354 +++++++++++++++++- .../woocommerce/icons/constant.svg.twig | 2 +- .../woocommerce/icons/method.svg.twig | 2 +- .../woocommerce/icons/private.svg.twig | 2 +- .../woocommerce/icons/protected.svg.twig | 2 +- data/templates/woocommerce/layout.html.twig | 2 + data/templates/woocommerce/search.js.twig | 2 +- 12 files changed, 407 insertions(+), 23 deletions(-) create mode 100644 data/templates/woocommerce/components/footer.html.twig diff --git a/data/templates/woocommerce/components/footer.html.twig b/data/templates/woocommerce/components/footer.html.twig new file mode 100644 index 0000000000..ee3b65ba6a --- /dev/null +++ b/data/templates/woocommerce/components/footer.html.twig @@ -0,0 +1,5 @@ +
+
+ WooCommerce Code Reference API documentation generated by phpDocumentor on {{ "now"|date('F jS, Y \\a\\t h:i a') }}. +
+
diff --git a/data/templates/woocommerce/components/header.html.twig b/data/templates/woocommerce/components/header.html.twig index 0405e2075c..e851ec6e98 100644 --- a/data/templates/woocommerce/components/header.html.twig +++ b/data/templates/woocommerce/components/header.html.twig @@ -1,4 +1,31 @@ -
- {% include 'components/header-title.html.twig' %} - {% include 'components/topnav.html.twig' %} +
+
+
+ +
+ +
+
+ +
+
+

{{ project.name }}

+ + + {{ include('components/search.html.twig') }} +
diff --git a/data/templates/woocommerce/components/sidebar.html.twig b/data/templates/woocommerce/components/sidebar.html.twig index 13db6f2c11..cf09a682a5 100644 --- a/data/templates/woocommerce/components/sidebar.html.twig +++ b/data/templates/woocommerce/components/sidebar.html.twig @@ -1,6 +1,4 @@