Sfoglia il codice sorgente

Add docs target to makefile

master
David Winterbottom 13 anni fa
parent
commit
bc4d54f2ec
2 ha cambiato i file con 10 aggiunte e 7 eliminazioni
  1. 10
    4
      Makefile
  2. 0
    3
      docs/test_docs.sh

+ 10
- 4
Makefile Vedi File

1
 # These targets are not files
1
 # These targets are not files
2
-.PHONY: contribute ci test i18n lint travis
2
+.PHONY: install upgrade sandbox demo test ci i18n lint travis docs
3
 
3
 
4
 install:
4
 install:
5
 	pip install -r requirements.txt --use-mirrors
5
 	pip install -r requirements.txt --use-mirrors
31
 	sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json sites/_fixtures/ranges.json
31
 	sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json sites/_fixtures/ranges.json
32
 	sites/demo/manage.py rebuild_index --noinput
32
 	sites/demo/manage.py rebuild_index --noinput
33
 
33
 
34
+docs:
35
+	cd docs && make html
36
+	open docs/build/html/index.html &
37
+
34
 test:
38
 test:
35
 	./runtests.py
39
 	./runtests.py
36
 
40
 
49
 # to catch any errors that might come from that build process.
53
 # to catch any errors that might come from that build process.
50
 travis: install lint test sandbox
54
 travis: install lint test sandbox
51
 
55
 
52
-i18n:
56
+messages:
53
 	# Create the .po files used for i18n
57
 	# Create the .po files used for i18n
54
 	cd oscar; django-admin.py makemessages -a
58
 	cd oscar; django-admin.py makemessages -a
55
 
59
 
56
-tx:
57
-	tx pull
60
+gettext:
61
+	# Compile the gettext files
62
+	cd oscar; django-admin.py compilemessages
58
 
63
 
59
 puppet:
64
 puppet:
60
 	# Install puppet modules required to set-up a Vagrant box
65
 	# Install puppet modules required to set-up a Vagrant box
67
 	git clone git://github.com/codeinthehole/puppet-userconfig.git sites/puppet/modules/userconfig
72
 	git clone git://github.com/codeinthehole/puppet-userconfig.git sites/puppet/modules/userconfig
68
 
73
 
69
 css:
74
 css:
75
+	# Compile CSS files from LESS
70
 	lessc oscar/static/oscar/less/styles.less > oscar/static/oscar/css/styles.css
76
 	lessc oscar/static/oscar/less/styles.less > oscar/static/oscar/css/styles.css
71
 	lessc oscar/static/oscar/less/responsive.less > oscar/static/oscar/css/responsive.css
77
 	lessc oscar/static/oscar/less/responsive.less > oscar/static/oscar/css/responsive.css
72
 	lessc oscar/static/oscar/less/dashboard.less > oscar/static/oscar/css/dashboard.css
78
 	lessc oscar/static/oscar/less/dashboard.less > oscar/static/oscar/css/dashboard.css

+ 0
- 3
docs/test_docs.sh Vedi File

1
-#!/usr/bin/env bash
2
-make html
3
-open build/html/index.html &

Loading…
Annulla
Salva