diff --git a/_layouts/soc.markdown b/_layouts/soc.markdown
index 3bad013..f35dce0 100644
--- a/_layouts/soc.markdown
+++ b/_layouts/soc.markdown
@@ -4,6 +4,14 @@ layout: default
+{%- if page.skus %}
+
SKUs
+
+{%- for sku in page.skus %}
+- {{sku}}
+{%- endfor %}
+
+{%- endif %}
{{ content }}
diff --git a/full.markdown b/full.markdown
index ff0e74d..9afeed7 100644
--- a/full.markdown
+++ b/full.markdown
@@ -14,9 +14,25 @@ layout: home
{% for d in site.soc %}
-| {{d.name}} |
+{{d.name}}
+{%- if d.skus %}
+ (*)
+ {%- for sku in d.skus -%}
+ {{sku}}{% unless forloop.last %}, {% endunless %}
+ {%- endfor -%}
+
+{%- endif -%}
+ |
{% include full_soc_status.liquid %}
-{{d.name}} |
+{{d.name}}
+{%- if d.skus %}
+ (*)
+ {%- for sku in d.skus -%}
+ {{sku}}{% unless forloop.last %}, {% endunless %}
+ {%- endfor -%}
+
+{%- endif -%}
+ |
{% endfor %}
diff --git a/index.markdown b/index.markdown
index cfeec7d..bc0bdeb 100644
--- a/index.markdown
+++ b/index.markdown
@@ -15,9 +15,25 @@ layout: home
{% for d in site.soc %}
-| {{d.name}} |
+{{d.name}}
+{%- if d.skus %}
+ (*)
+ {%- for sku in d.skus -%}
+ {{sku}}{% unless forloop.last %}, {% endunless %}
+ {%- endfor -%}
+
+{%- endif -%}
+ |
{% include index_soc_status.liquid %}
-{{d.name}} |
+{{d.name}}
+{%- if d.skus %}
+ (*)
+ {%- for sku in d.skus -%}
+ {{sku}}{% unless forloop.last %}, {% endunless %}
+ {%- endfor -%}
+
+{%- endif -%}
+ |
{% endfor %}
diff --git a/regen.py b/regen.py
index cb1ec92..eeeef8b 100755
--- a/regen.py
+++ b/regen.py
@@ -93,7 +93,7 @@ def generate_template(data, prefix, check_fn):
if 'items' in v:
yield from generate_template(v['items'], prefix + '-' + k, check_fn)
-def handle_soc_pmic(data, kind, prefix):
+def handle_soc_pmic(data, kind, prefix, is_soc):
has_nested = False
for (k, v) in data.items():
if 'items' in v:
@@ -136,6 +136,8 @@ def handle_soc_pmic(data, kind, prefix):
with open('_%s.template' % kind, 'w') as out:
out.write('---\n')
out.write('name: ???\n')
+ if is_soc:
+ out.write('skus: [??, ??]\n')
out.write('layout: %s\n' % kind)
out.write(': N/A\n'.join(sorted(generate_template(data, prefix, is_intop))))
out.write(': N/A\n')
@@ -143,9 +145,9 @@ def handle_soc_pmic(data, kind, prefix):
with open('soc.yaml', "r") as file:
data = load(file, Loader=Loader)
- handle_soc_pmic(data, 'soc', 'status')
+ handle_soc_pmic(data, 'soc', 'status', True)
with open('pmic.yaml', "r") as file:
data = load(file, Loader=Loader)
- handle_soc_pmic(data, 'pmic', 'pmic')
+ handle_soc_pmic(data, 'pmic', 'pmic', False)