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
=== modified file 'HACKING'
--- HACKING 2015-03-18 08:21:54 +0000
+++ HACKING 2015-03-18 10:41:10 +0000
@@ -84,7 +84,7 @@
8484
85 sudo apt install python-pelican po4a make bzr \85 sudo apt install python-pelican po4a make bzr \
86 ubuntu-html5-ui-toolkit python3-polib python3-magic \86 ubuntu-html5-ui-toolkit python3-polib python3-magic \
87 python3-markdown87 python3-markdown ubuntu-html5-container
8888
89This will install the necessary files, so you can build the app or web build89This will install the necessary files, so you can build the app or web build
90locally and check if your changes actually make sense and look and work well.90locally and check if your changes actually make sense and look and work well.
@@ -108,10 +108,14 @@
108108
109This will also generate translated pages.109This will also generate translated pages.
110110
111You can find the updated HTML in ./app/www/. For instance, you can browse 111You can find the updated HTML in ./app/www/.
112the site in firefox with112
113113To launch the app, you can use ubuntu-html5-app-launcher in the www dir, or
114firefox app/www/index.html114just call
115
116 make launch
117
118(This will also run the 'make html' command for you.)
115119
116120
117Creating a click121Creating a click
118122
=== modified file 'Makefile'
--- Makefile 2015-03-06 14:32:59 +0000
+++ Makefile 2015-03-18 10:41:10 +0000
@@ -7,7 +7,7 @@
7 $(foreach fn, $(ignored), $(shell rm -r $(fn);))7 $(foreach fn, $(ignored), $(shell rm -r $(fn);))
8endif8endif
99
10check:10check: clean
11 make -C edit-here check11 make -C edit-here check
1212
13click: html13click: html
@@ -16,10 +16,13 @@
16html: clean16html: clean
17 make -C edit-here html17 make -C edit-here html
1818
19web:19web: clean
20 make -C edit-here web20 make -C edit-here web
2121
22update-pot:22update-pot:
23 cd edit-here && ./generate-pot23 cd edit-here && ./generate-pot
2424
25launch:
26 make -C edit-here launch
27
25.PHONY: click html web update-pot clean check28.PHONY: click html web update-pot clean check
2629
=== modified file 'edit-here/Makefile'
--- edit-here/Makefile 2015-03-09 13:02:11 +0000
+++ edit-here/Makefile 2015-03-18 10:41:10 +0000
@@ -66,7 +66,6 @@
66web:66web:
67 ./generate-translations67 ./generate-translations
68 $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR_WEB) -s $(CONFFILE) $(PELICANOPTS) -t $(THEMEDIR_WEB)68 $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR_WEB) -s $(CONFFILE) $(PELICANOPTS) -t $(THEMEDIR_WEB)
69 cp index.html $(OUTPUTDIR_WEB)
7069
71html:70html:
72 ./generate-translations71 ./generate-translations
@@ -76,51 +75,55 @@
76clean:75clean:
77 [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)76 [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
7877
79regenerate:78launch: html
80 $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)79 cd ../app/; `grep '^Exec' help.desktop | tail -1 | sed 's/^Exec=//' | sed 's/%.//'` &
8180
82serve:81#regenerate:
83ifdef PORT82# $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
84 cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)83#
85else84#serve:
86 cd $(OUTPUTDIR) && $(PY) -m pelican.server85#ifdef PORT
87endif86# cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)
8887#else
89devserver:88# cd $(OUTPUTDIR) && $(PY) -m pelican.server
90ifdef PORT89#endif
91 $(BASEDIR)/develop_server.sh restart $(PORT)90#
92else91#devserver:
93 $(BASEDIR)/develop_server.sh restart92#ifdef PORT
94endif93# $(BASEDIR)/develop_server.sh restart $(PORT)
9594#else
96stopserver:95# $(BASEDIR)/develop_server.sh restart
97 kill -9 `cat pelican.pid`96#endif
98 kill -9 `cat srv.pid`97#
99 @echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'98#stopserver:
10099# kill -9 `cat pelican.pid`
101publish:100# kill -9 `cat srv.pid`
102 $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)101# @echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
103102#
104ssh_upload: publish103#publish:
105 scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)104# $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
106105#
107rsync_upload: publish106#ssh_upload: publish
108 rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude107# scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
109108#
110dropbox_upload: publish109#rsync_upload: publish
111 cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)110# rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
112111#
113ftp_upload: publish112#dropbox_upload: publish
114 lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit"113# cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)
115114#
116s3_upload: publish115#ftp_upload: publish
117 s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type116# lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit"
118117#
119cf_upload: publish118#s3_upload: publish
120 cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) .119# s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type
121120#
122github: publish121#cf_upload: publish
123 ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR)122# cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) .
124 git push origin $(GITHUB_PAGES_BRANCH)123#
125124#github: publish
126.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github125# ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR)
126# git push origin $(GITHUB_PAGES_BRANCH)
127#
128.PHONY: html help clean web check
129 #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: