From dc05ced3a387331d04da1c52224fa4a40b6f1bdc Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Mon, 24 Jun 2024 13:12:41 +0200 Subject: [PATCH 1/3] chore(macros): remove page macro the page macro has been deprecated and is broken anyway --- kumascript/macros/page.ejs | 27 -------- .../css_layout/introduction/flex/index.html | 22 ------ .../introduction/flex/stuff/index.html | 69 ------------------- .../css/css_layout/introduction/index.html | 5 -- testing/tests/headless.index.spec.ts | 55 --------------- 5 files changed, 178 deletions(-) delete mode 100644 kumascript/macros/page.ejs delete mode 100644 testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.html delete mode 100644 testing/content/files/en-us/learn/css/css_layout/introduction/flex/stuff/index.html diff --git a/kumascript/macros/page.ejs b/kumascript/macros/page.ejs deleted file mode 100644 index e88539a05a6c..000000000000 --- a/kumascript/macros/page.ejs +++ /dev/null @@ -1,27 +0,0 @@ -<% -// Inserts the contents of a page into the document. This process is often -// referred to as "transclusion." -// -// Parameters: -// -// $0 - URL of page to insert. Example: "/en-US/docs". Do not use https://etc. -// $1 - (optional) section name of a section to transclude (rather than the whole page) -// Can be a section title like "Quick Start", can also be an id attribute -// like this:
-// Example: {{Page("/en-US/docs/MyPage", "grabme")}} -// $2 - (optional) revision number to pull from. UNSUPPORTED. -// $3 - (optional) whether or not to show the first heading. Defaults to false. -// $4 - (optional) the heading level to use as the top heading level; others -// are adjusted to match. - -// Throw a MacroDeprecatedError flaw -// Can be removed when its usage translated-content is down to 0 -mdn.deprecated(); - -var url = web.spacesToUnderscores($0); - -if ($1) { - $1 = web.spacesToUnderscores($1).toLowerCase(); -} -%> -<%- await wiki.page(url, $1, $2, $3, $4) %> diff --git a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.html b/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.html deleted file mode 100644 index 1c9b765f63a6..000000000000 --- a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.html +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: A Test Introduction to CSS Flexbox Layout -slug: Learn/CSS/CSS_layout/Introduction/Flex -tags: - - Examples - - Beginner - - CSS - - Layout - - Learn - - flexbox ---- -

Flexbox

- -
{{ Page("Learn/CSS/CSS_layout/Introduction/Flex/Stuff", "Flex_1") }}
-

{{ EmbedLiveSample('Flex_1', '300', '200') }}

-
{{ Page("Learn/CSS/CSS_layout/Introduction/Flex/Stuff", "Flex_2") }}
> -

{{ EmbedLiveSample('Flex_2', '300', '200') }}

diff --git a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/stuff/index.html b/testing/content/files/en-us/learn/css/css_layout/introduction/flex/stuff/index.html deleted file mode 100644 index dd87b74c8c64..000000000000 --- a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/stuff/index.html +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: Stuff for CSS Flex layout -slug: Learn/CSS/CSS_layout/Introduction/Flex/Stuff -tags: - - Stuff - - Beginner - - CSS - - Introduction - - Layout - - Learn - - flexbox ---- -
- - -
.wrapper {
-  display: flex;
-}
-
- -
<div class="wrapper">
-  <div class="box1">One</div>
-  <div class="box2">Two</div>
-  <div class="box3">Three</div>
-</div>
-
-
- -
- - -
.wrapper {
-    display: flex;
-}
-
-.wrapper > div {
-    flex: 1;
-}
-
- -
<div class="wrapper">
-    <div class="box1">One</div>
-    <div class="box2">Two</div>
-    <div class="box3">Three</div>
-</div>
-
-
diff --git a/testing/content/files/en-us/learn/css/css_layout/introduction/index.html b/testing/content/files/en-us/learn/css/css_layout/introduction/index.html index cc189398374d..84f139c1a5d1 100644 --- a/testing/content/files/en-us/learn/css/css_layout/introduction/index.html +++ b/testing/content/files/en-us/learn/css/css_layout/introduction/index.html @@ -23,12 +23,7 @@ and some from other pages. --> -

Flexbox

-

{{ EmbedLiveSample('Flex_1', '300', '200', "", "Learn/CSS/CSS_layout/Introduction/Flex") }}

-

{{ EmbedLiveSample('Flex_2', '300', '200', "", "Learn/CSS/CSS_layout/Introduction/Flex") }}

-

Grid Layout

-

{{ EmbedLiveSample('Grid_1', '300', '330', "", "Learn/CSS/CSS_layout/Introduction/Grid") }}