Skip to content

Commit

Permalink
wiki: Get rid of SoC dictionary support
Browse files Browse the repository at this point in the history
Change-Id: If20f398e905537cab1ddffd6ded59997c4aee5fc
  • Loading branch information
luk1337 committed Nov 2, 2023
1 parent eb5b71d commit 15de425
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 42 deletions.
23 changes: 1 addition & 22 deletions _includes/deviceinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,10 @@
<tr>
<th scope="row" colspan="2">Specifications</th>
</tr>
{%- if device.soc != "None" %}
<tr>
<th scope="row">SoC</th>
<td>
{%- if device.soc.first -%}
{%- for soc in device.soc -%}
{%- if soc.first -%}
{{ soc.first[0] }}: {{ soc.first[1] }}
{%- else %}
{{ soc }}
{%- endif %}
{%- unless forloop.last -%}
{%- if soc.first -%}
<br/>
{%- else %}
/
{%- endif %}
{% endunless %}
{%- endfor %}
{%- else %}
{{ device.soc }}
{%- endif %}
</td>
<td>{{ device.soc }}</td>
</tr>
{%- endif %}
<tr>
<th scope="row">RAM</th>
<td>{{ device.ram }}</td>
Expand Down
23 changes: 3 additions & 20 deletions test/schema-06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -828,26 +828,9 @@ properties:
"$ref": "#/definitions/sdcard_data"
soc:
"$id": "/properties/soc"
oneOf:
- "$ref": "#/definitions/soc_data"
- items:
"$id": "/properties/soc/items"
"$ref": "#/definitions/soc_data"
minItems: 2
type: array
uniqueItems: True
- description: Array of maps of model numbers to SoC data
examples:
- SM-9000A: Qualcomm SM8150 Snapdragon 855
- SM-9000B: Qualcomm SM8150-AC Snapdragon 855+
items:
additionalProperties:
"$ref": "#/definitions/soc_data"
description: Map of model number to soc_data
type: object
type: array
- enum:
- None
items:
"$id": "/properties/soc/items"
"$ref": "#/definitions/soc_data"
tree:
"$id": "/properties/tree"
pattern: ^android_device_(.*)$
Expand Down

0 comments on commit 15de425

Please sign in to comment.