Merge lp:~dholbach/snapcraft/doc-fixes into lp:~snappy-dev/snapcraft/core

Proposed by Daniel Holbach on 2015-08-05
Status: Merged
Approved by: Leo Arias on 2015-08-05
Approved revision: no longer in the source branch.
Merged at revision: 122
Proposed branch: lp:~dholbach/snapcraft/doc-fixes
Merge into: lp:~snappy-dev/snapcraft/core
Diff against target: 149 lines (+29/-29)
2 files modified
docs/intro.md (+20/-20)
docs/tutorial.md (+9/-9)
To merge this branch: bzr merge lp:~dholbach/snapcraft/doc-fixes
Reviewer Review Type Date Requested Status
Sergio Schvezov 2015-08-05 Approve on 2015-08-05
Simon Eisenmann (community) Approve on 2015-08-05
Review via email: mp+267010@code.launchpad.net

Commit Message

Small doc markup fixes.

Description of the Change

Small doc markup fixes.

To post a comment you must log in.
Simon Eisenmann (longsleep) wrote :

Yay! This cleans up with the special characters somebody did put in the comments. This should be merged asap.

review: Approve
review: Approve
lp:~dholbach/snapcraft/doc-fixes updated on 2015-08-05
121. By Daniel Holbach on 2015-08-05

Add some next steps. by dholbach approved by sergiusens,longsleep

122. By Daniel Holbach on 2015-08-05

Small doc markup fixes. by dholbach approved by sergiusens,longsleep

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/intro.md'
2--- docs/intro.md 2015-07-29 16:48:14 +0000
3+++ docs/intro.md 2015-08-05 11:47:29 +0000
4@@ -6,8 +6,8 @@
5
6 # Snappy
7
8-Snappy Ubuntu Core is a new rendition of Ubuntu with transactional updates — a
9-minimal server image with the same libraries as today’s Ubuntu, but
10+Snappy Ubuntu Core is a new rendition of Ubuntu with transactional updates - a
11+minimal server image with the same libraries as today's Ubuntu, but
12 applications are provided through a simpler mechanism.
13
14 Snappy apps and Ubuntu Core itself can be upgraded atomically and rolled back
15@@ -16,18 +16,18 @@
16
17 # Key concepts
18
19-A .snap package for the Ubuntu Core system contains all its
20+A `.snap` package for the Ubuntu Core system contains all its
21 dependencies. This has a couple of advantages over traditional deb or
22 rpm based dependency handling, the most important being that a
23 developer can always be assured that there are no regressions triggered by
24 changes to the system underneath their app.
25
26 Snapcraft makes bundling these dependencies easy by allowing you to
27-specify them as “parts” in the snapcraft.yaml file.
28+specify them as "parts" in the `snapcraft.yaml` file.
29
30 ## Parts
31
32-A central aspect of a snapcraft recipe is a “part”. A part is a piece
33+A central aspect of a snapcraft recipe is a "part". A part is a piece
34 of software or data that the snap package requires to work or to
35 build other parts. Each part is managed by a snapcraft plugin and parts
36 are usually independent of each other.
37@@ -47,46 +47,46 @@
38
39 The first is that each part is pulled. This step will download
40 content, e.g. checkout a git repository or download a binary component
41-like the Java SDK. Snapcraft will create a parts/ directory with
42-sub-directories like parts/part-name/src for each part that contains
43+like the Java SDK. Snapcraft will create a `parts/` directory with
44+sub-directories like `parts/part-name/src` for each part that contains
45 the downloaded content.
46
47 #### Build
48
49-The next step is that each part is built in its parts/part-name/build
50-directory and installs itself into parts/part-name/install.
51+The next step is that each part is built in its `parts/part-name/build`
52+directory and installs itself into `parts/part-name/install`.
53
54 ### Stage
55
56 After the build of each part the parts are combined into a single
57-directory tree that is called the “staging area”. It can be found
58-under the ./stage directory.
59+directory tree that is called the "staging area". It can be found
60+under the `./stage` directory.
61
62-This ./stage directory is useful for building outside code that isn’t in the
63-snapcraft.yaml recipe against the snap contents. For example, you might build a
64-local project against the libraries in ./stage by running
65+This `./stage` directory is useful for building outside code that isn't in the
66+`snapcraft.yaml` recipe against the snap contents. For example, you might build a
67+local project against the libraries in `./stage` by running
68 `snapcraft shell make`. Though in general, you are encouraged to add even local
69 projects to snapcraft.yaml with a local `source:` path.
70
71 ### Snap
72
73-The snap step moves the data into a ./snap directory. It contains only
74+The snap step moves the data into a `./snap` directory. It contains only
75 the content that will be put into the final snap package, unlike the staging
76 area which may include some development files not destined for your package.
77
78 The Snappy metadata information about your project will also now be placed in
79-./snap/meta.
80+`./snap/meta`.
81
82-This ./snap directory is useful for inspecting what is going into your snap
83-and to make any final post-processing on snapcraft’s output.
84+This `./snap` directory is useful for inspecting what is going into your snap
85+and to make any final post-processing on snapcraft's output.
86
87 ### Assemble
88
89-The final step builds a snap package out of the snap directory. This .snap file
90+The final step builds a snap package out of the `snap` directory. This `.snap` file
91 can be uploaded to the Ubuntu Store and published directly to Snappy users.
92
93 # Next
94
95 After introducing the key concept of snapcraft it is probably a good
96-time to look at the tutorial in docs/tutorial.md to see how it works
97+time to look at [the tutorial](tutorial.md) to see how it works
98 for an example project.
99
100=== modified file 'docs/tutorial.md'
101--- docs/tutorial.md 2015-07-29 14:40:11 +0000
102+++ docs/tutorial.md 2015-08-05 11:47:29 +0000
103@@ -40,9 +40,9 @@
104 panic(http.ListenAndServe(":8080", http.FileServer(http.Dir("."))))
105 }
106
107-This will serve the current directory on port :8080. If there is an index.html
108-in the current directory, it will be served. Otherwise a directory listing will
109-be shown.
110+This will serve the current directory on port `:8080`. If there is an
111+`index.html` in the current directory, it will be served. Otherwise a
112+directory listing will be shown.
113
114 I've provided the above code in a simple GitHub
115 [repository](https://github.com/mikix/golang-static-http).
116@@ -91,8 +91,8 @@
117
118 You'll see a bunch of output, including Snapcraft downloading the Go compiler.
119 It will use this to compile the code found on GitHub. Eventually when it is
120-done, you'll be able to inspect the ./stage folder and see the web server
121-executable sitting in ./stage/bin:
122+done, you'll be able to inspect the `./stage` folder and see the web server
123+executable sitting in `./stage/bin`:
124
125 $ ls stage/bin
126 golang-static-http
127@@ -117,11 +117,11 @@
128
129 $ snapcraft stage
130
131-You'll note that Snapcraft skipped downloading and building golang-static-htpp
132-again because it knew it had already done so.
133+You'll note that Snapcraft skipped downloading and building
134+`golang-static-htpp` again because it knew it had already done so.
135
136 You'll also see Snapcraft downloading and unpacking all the Ubuntu packages
137-into your snap. If you look at ./stage, you'll see a lot more files now:
138+into your snap. If you look at `./stage`, you'll see a lot more files now:
139
140 $ ls stage
141 bin etc lib usr var
142@@ -164,7 +164,7 @@
143
144 The `copy` plugin takes a list of files to just directly copy without building
145 or downloading anything. In this case, we just want to put our glue script in
146-the bin/ directory.
147+the `bin/` directory.
148
149 If we run Snapcraft again, we won't be surprised:
150

Subscribers

People subscribed via source and target branches