Merge lp:~dholbach/snappy/even-more-markdown-fixes into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Daniel Holbach on 2015-04-22
Status: Merged
Approved by: John Lenton on 2015-04-22
Approved revision: 419
Merged at revision: 421
Proposed branch: lp:~dholbach/snappy/even-more-markdown-fixes
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 121 lines (+48/-44)
1 file modified
docs/oem.md (+48/-44)
To merge this branch: bzr merge lp:~dholbach/snappy/even-more-markdown-fixes
Reviewer Review Type Date Requested Status
John Lenton 2015-04-22 Approve on 2015-04-22
Review via email: mp+257112@code.launchpad.net

Commit Message

  - machanisms -> mechanisms
  - immmutable -> immutable
  - change <code> markdown (pandoc doesn't know about ```yaml)
  - re-flow comments to wrap nicely

To post a comment you must log in.
Daniel Holbach (dholbach) wrote :

Just to explain, here's how we got from oem.md to https://developer.ubuntu.com/en/snappy/guides/oem/ I basically ran:

    pandoc --from markdown --to html5 oem.md -o oem.html
    perl -ne 'BEGIN{print "<div class=\"row no-border\">\n<div class=\"eight-col\">\n"} print;END{print "</div>\n</div>"}' oem.html > oem.web-guidelines.html

419. By Daniel Holbach on 2015-04-22

fix wording

John Lenton (chipaca) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/oem.md'
2--- docs/oem.md 2015-04-22 13:33:45 +0000
3+++ docs/oem.md 2015-04-22 15:15:33 +0000
4@@ -6,7 +6,7 @@
5 It covers a broad range, such as the software stack with its configuration and
6 hardware enablement.
7
8-There can only be *one* snappy package of `type` `oem` and it can only be
9+There can only be *one* snappy package of `type: oem` and it can only be
10 installed during image provision.
11
12 ## Nomenclature
13@@ -88,7 +88,7 @@
14
15 While these assets are typically used during provisioning, they may also be
16 used against a running system. *Caution:* updating these assets on a running
17-system may lead to a broken system unless redundancy or fallback machanisms
18+system may lead to a broken system unless redundancy or fallback mechanisms
19 aren't provided by the OEM.
20
21 #### Partition layout
22@@ -101,54 +101,58 @@
23
24 ## Structure and layout
25
26-The `package.yaml` is structured as
27-
28-```yaml
29-name: package-string # mandatory
30-vendor: vendor-string # mandatory
31-icon: icon-path # mandatory
32-version: version-string # mandatory
33-type: oem # mandatory
34-
35-config: # optional
36- snappy-package-string:
37- property-string: property-value
38-
39-immutable-config: # optional
40- - filter-string
41-
42-oem:
43- store: # optional
44- id: id-string # optional
45-
46- branding: # optional
47- name: branding-name-string # optional
48- logo: logo-path # optional
49-
50- software: # optional
51- built-in:
52- - # package list
53- preinstalled:
54- - # package list
55- hardware: # mandatory
56- platform: platform-string # mandatory
57- architecture: architecture-string # mandatory (armhf, amd64, i386, arm64, ...)
58- partition-layout: partition-layout-string # mandatory (system-AB)
59- booloader: bootloader-string # mandatory (u-boot or grub)
60- boot-assets: # optional
61- files: #optional
62- - path: file-path
63- raw-files: #optional
64- - path: file-path
65- offset: offset-uint64
66-```
67+The `package.yaml` is structured as:
68+
69+
70+ name: package-string # mandatory
71+ vendor: vendor-string # mandatory
72+ icon: icon-path # mandatory
73+ version: version-string # mandatory
74+ type: oem # mandatory
75+
76+ config: # optional
77+ snappy-package-string:
78+ property-string: property-value
79+
80+ immutable-config: # optional
81+ - filter-string
82+
83+ oem:
84+ store: # optional
85+ id: id-string # optional
86+
87+ branding: # optional
88+ name: branding-name-string # optional
89+ logo: logo-path # optional
90+
91+ software: # optional
92+ built-in:
93+ - # package list
94+ preinstalled:
95+ - # package list
96+ hardware: # mandatory
97+ platform: platform-string # mandatory
98+ architecture: architecture-string
99+ # mandatory (armhf, amd64, i386,
100+ # arm64, ...)
101+ partition-layout: partition-layout-string
102+ # mandatory (system-AB)
103+ booloader: bootloader-string
104+ # mandatory (u-boot or grub)
105+ boot-assets: # optional
106+ files: #optional
107+ - path: file-path
108+ raw-files: #optional
109+ - path: file-path
110+ offset: offset-uint64
111+
112
113 The package header section is common to all packages
114
115 The general rules for config:
116
117 - only applied on first boot.
118-- if the config is immmutable, updates on in `oem` package will be reflected.
119+- if the config is immutable, updates to the `oem` package will be reflected.
120
121 Rules about packages in the config:
122

Subscribers

People subscribed via source and target branches