diff --git a/_data/locales/side-by-side.yml b/_data/locales/side-by-side.yml index b522482..458fd58 100644 --- a/_data/locales/side-by-side.yml +++ b/_data/locales/side-by-side.yml @@ -45,4 +45,7 @@ contains: fr: Contient css-info: en: CSS computed info - fr: Informations calculées CSS \ No newline at end of file + fr: Informations calculées CSS +zenhub-tickets: + en: ZenHub issue + fr: Ticket ZenHub diff --git a/_data/button-signin.json b/_data/signin.json similarity index 82% rename from _data/button-signin.json rename to _data/signin.json index 2015f19..bcbd8d2 100644 --- a/_data/button-signin.json +++ b/_data/signin.json @@ -30,19 +30,6 @@ ":focus": {} }, "children": [ - { - "nodeType": 3, - "nodeName": "#text", - "textContent": "\n ", - "attributes": {}, - "computedStyles": {}, - "pseudoStyles": {}, - "children": [], - "parent": { - "nodeName": "DIV", - "nodeType": 1 - } - }, { "nodeType": 1, "nodeName": "SECTION", @@ -67,19 +54,6 @@ ":focus": {} }, "children": [ - { - "nodeType": 3, - "nodeName": "#text", - "textContent": "\n ", - "attributes": {}, - "computedStyles": {}, - "pseudoStyles": {}, - "children": [], - "parent": { - "nodeName": "SECTION", - "nodeType": 1 - } - }, { "nodeType": 1, "nodeName": "H2", @@ -141,19 +115,6 @@ "nodeType": 1 } }, - { - "nodeType": 3, - "nodeName": "#text", - "textContent": "\n ", - "attributes": {}, - "computedStyles": {}, - "pseudoStyles": {}, - "children": [], - "parent": { - "nodeName": "SECTION", - "nodeType": 1 - } - }, { "nodeType": 1, "nodeName": "A", @@ -251,38 +212,12 @@ "nodeName": "SECTION", "nodeType": 1 } - }, - { - "nodeType": 3, - "nodeName": "#text", - "textContent": "\n ", - "attributes": {}, - "computedStyles": {}, - "pseudoStyles": {}, - "children": [], - "parent": { - "nodeName": "SECTION", - "nodeType": 1 - } } ], "parent": { "nodeName": "DIV", "nodeType": 1 } - }, - { - "nodeType": 3, - "nodeName": "#text", - "textContent": "\n", - "attributes": {}, - "computedStyles": {}, - "pseudoStyles": {}, - "children": [], - "parent": { - "nodeName": "DIV", - "nodeType": 1 - } } ], "parent": null, diff --git a/_includes/recursive_list.liquid b/_includes/recursive_list.liquid new file mode 100644 index 0000000..ceb7405 --- /dev/null +++ b/_includes/recursive_list.liquid @@ -0,0 +1,31 @@ +{% for item in include.items %} +
  • + {% case item.nodeType %} + {% when 1 %} + <{{ item.nodeName | downcase }}> + + {% when 2 %} + {{ item.nodeName }} + {% when 3 %} + {{ item.nodeName | remove_first: '#' }} + {% else %} + {{ item.nodeName }} + {% endcase %} + + {% if item.children %} + + {% endif %} +
  • +{% endfor %} \ No newline at end of file diff --git a/_layouts/side-by-side.html b/_layouts/side-by-side.html index f4ec6cf..6b9c735 100644 --- a/_layouts/side-by-side.html +++ b/_layouts/side-by-side.html @@ -17,6 +17,8 @@
    {{ page.status }}
    {{ side-by-side.dependencies[ page.lang ] }}
    {{ page.dependency }}
    +
    {{ side-by-side.zenhub-ticket[ page.lang ] }}
    +
    #{{ page.zenhub-issue }}
    @@ -92,33 +94,19 @@

    {{ side-by-side.node-relationship[ page.lang ] }}

    {% else %} {{ side-by-side.contains[ page.lang ] }} {{ component.gcweb.children | size }} {{ side-by-side.child-node[ page.lang ] | downcase }} {% endif %} + +
    diff --git a/en/index.md b/en/index.md index 4d0e013..25d18eb 100644 --- a/en/index.md +++ b/en/index.md @@ -5,25 +5,10 @@ title: Mandatory elements

    List of Canada.ca GC mandatory elements: differences between Canada.ca DS and GC Design System. Their rationale should be explained in the documentation of each pattern.

    - -

    Todo

    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -

    Link to the parser

    Table of mandatory elements

    {% for collection in site.collections %} {%- unless collection.label contains "posts" -%} - +
    @@ -45,4 +30,6 @@ title: Mandatory elements {%- endunless -%} {% endfor %} - \ No newline at end of file + + +

    Link to the parser

    \ No newline at end of file diff --git a/en/parser.md b/en/parser.md index a5d11c4..68b2ddc 100644 --- a/en/parser.md +++ b/en/parser.md @@ -8,7 +8,7 @@ title: Export Detailed DOM Info to JSON ---
    -

    Some description

    +

    This tool allows you to analyze a DOM node by providing detailed information about its CSS and HTML relationships. It helps you understand how different elements are styled and structured within the node.

    @@ -28,8 +28,9 @@ title: Export Detailed DOM Info to JSON
    +

    JSON Preview

    
    -    
    +    
       
    {{ collection.label }}