Merge lp:~dholbach/help-app/help.phone-navigation-fixes into lp:~dpm/help-app/phone-navigation

Proposed by Daniel Holbach
Status: Merged
Merged at revision: 109
Proposed branch: lp:~dholbach/help-app/help.phone-navigation-fixes
Merge into: lp:~dpm/help-app/phone-navigation
Diff against target: 175 lines (+66/-56)
3 files modified
HACKING (+9/-5)
Makefile (+5/-2)
edit-here/Makefile (+52/-49)
To merge this branch: bzr merge lp:~dholbach/help-app/help.phone-navigation-fixes
Reviewer Review Type Date Requested Status
David Planella Approve
Review via email: mp+253329@code.launchpad.net
To post a comment you must log in.
114. By Daniel Holbach

add another dependency

Revision history for this message
David Planella (dpm) wrote :

This is a really neat feature! It works well, so I'll go ahead and merge it.

However, I've noticed one minor issue:
- Running make launch and then closing the app does not return to the terminal prompt. You have to press Ctrl+C to return. If I just run the equivalent of the make rule on the terminal, when I close the app, then I'm returned to the prompt as expected:

ubuntu-html5-app-launcher --www=app/www --inspector

Not sure what it could be, but I thought I'd mention it.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'HACKING'
2--- HACKING 2015-03-18 08:21:54 +0000
3+++ HACKING 2015-03-18 10:41:10 +0000
4@@ -84,7 +84,7 @@
5
6 sudo apt install python-pelican po4a make bzr \
7 ubuntu-html5-ui-toolkit python3-polib python3-magic \
8- python3-markdown
9+ python3-markdown ubuntu-html5-container
10
11 This will install the necessary files, so you can build the app or web build
12 locally and check if your changes actually make sense and look and work well.
13@@ -108,10 +108,14 @@
14
15 This will also generate translated pages.
16
17-You can find the updated HTML in ./app/www/. For instance, you can browse
18-the site in firefox with
19-
20-firefox app/www/index.html
21+You can find the updated HTML in ./app/www/.
22+
23+To launch the app, you can use ubuntu-html5-app-launcher in the www dir, or
24+just call
25+
26+ make launch
27+
28+(This will also run the 'make html' command for you.)
29
30
31 Creating a click
32
33=== modified file 'Makefile'
34--- Makefile 2015-03-06 14:32:59 +0000
35+++ Makefile 2015-03-18 10:41:10 +0000
36@@ -7,7 +7,7 @@
37 $(foreach fn, $(ignored), $(shell rm -r $(fn);))
38 endif
39
40-check:
41+check: clean
42 make -C edit-here check
43
44 click: html
45@@ -16,10 +16,13 @@
46 html: clean
47 make -C edit-here html
48
49-web:
50+web: clean
51 make -C edit-here web
52
53 update-pot:
54 cd edit-here && ./generate-pot
55
56+launch:
57+ make -C edit-here launch
58+
59 .PHONY: click html web update-pot clean check
60
61=== modified file 'edit-here/Makefile'
62--- edit-here/Makefile 2015-03-09 13:02:11 +0000
63+++ edit-here/Makefile 2015-03-18 10:41:10 +0000
64@@ -66,7 +66,6 @@
65 web:
66 ./generate-translations
67 $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR_WEB) -s $(CONFFILE) $(PELICANOPTS) -t $(THEMEDIR_WEB)
68- cp index.html $(OUTPUTDIR_WEB)
69
70 html:
71 ./generate-translations
72@@ -76,51 +75,55 @@
73 clean:
74 [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
75
76-regenerate:
77- $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
78-
79-serve:
80-ifdef PORT
81- cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)
82-else
83- cd $(OUTPUTDIR) && $(PY) -m pelican.server
84-endif
85-
86-devserver:
87-ifdef PORT
88- $(BASEDIR)/develop_server.sh restart $(PORT)
89-else
90- $(BASEDIR)/develop_server.sh restart
91-endif
92-
93-stopserver:
94- kill -9 `cat pelican.pid`
95- kill -9 `cat srv.pid`
96- @echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
97-
98-publish:
99- $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
100-
101-ssh_upload: publish
102- scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
103-
104-rsync_upload: publish
105- rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
106-
107-dropbox_upload: publish
108- cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)
109-
110-ftp_upload: publish
111- lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit"
112-
113-s3_upload: publish
114- s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type
115-
116-cf_upload: publish
117- cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) .
118-
119-github: publish
120- ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR)
121- git push origin $(GITHUB_PAGES_BRANCH)
122-
123-.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github
124+launch: html
125+ cd ../app/; `grep '^Exec' help.desktop | tail -1 | sed 's/^Exec=//' | sed 's/%.//'` &
126+
127+#regenerate:
128+# $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
129+#
130+#serve:
131+#ifdef PORT
132+# cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)
133+#else
134+# cd $(OUTPUTDIR) && $(PY) -m pelican.server
135+#endif
136+#
137+#devserver:
138+#ifdef PORT
139+# $(BASEDIR)/develop_server.sh restart $(PORT)
140+#else
141+# $(BASEDIR)/develop_server.sh restart
142+#endif
143+#
144+#stopserver:
145+# kill -9 `cat pelican.pid`
146+# kill -9 `cat srv.pid`
147+# @echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
148+#
149+#publish:
150+# $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
151+#
152+#ssh_upload: publish
153+# scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
154+#
155+#rsync_upload: publish
156+# rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
157+#
158+#dropbox_upload: publish
159+# cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)
160+#
161+#ftp_upload: publish
162+# lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit"
163+#
164+#s3_upload: publish
165+# s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type
166+#
167+#cf_upload: publish
168+# cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) .
169+#
170+#github: publish
171+# ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR)
172+# git push origin $(GITHUB_PAGES_BRANCH)
173+#
174+.PHONY: html help clean web check
175+ #regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github

Subscribers

People subscribed via source and target branches

to all changes: