Просмотр исходного кода

Add docs target to makefile

master
David Winterbottom 13 лет назад
Родитель
Сommit
bc4d54f2ec
2 измененных файлов: 10 добавлений и 7 удалений
  1. 10
    4
      Makefile
  2. 0
    3
      docs/test_docs.sh

+ 10
- 4
Makefile Просмотреть файл

@@ -1,5 +1,5 @@
1 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 4
 install:
5 5
 	pip install -r requirements.txt --use-mirrors
@@ -31,6 +31,10 @@ demo: install
31 31
 	sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json sites/_fixtures/ranges.json
32 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 38
 test:
35 39
 	./runtests.py
36 40
 
@@ -49,12 +53,13 @@ lint:
49 53
 # to catch any errors that might come from that build process.
50 54
 travis: install lint test sandbox
51 55
 
52
-i18n:
56
+messages:
53 57
 	# Create the .po files used for i18n
54 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 64
 puppet:
60 65
 	# Install puppet modules required to set-up a Vagrant box
@@ -67,6 +72,7 @@ puppet:
67 72
 	git clone git://github.com/codeinthehole/puppet-userconfig.git sites/puppet/modules/userconfig
68 73
 
69 74
 css:
75
+	# Compile CSS files from LESS
70 76
 	lessc oscar/static/oscar/less/styles.less > oscar/static/oscar/css/styles.css
71 77
 	lessc oscar/static/oscar/less/responsive.less > oscar/static/oscar/css/responsive.css
72 78
 	lessc oscar/static/oscar/less/dashboard.less > oscar/static/oscar/css/dashboard.css

+ 0
- 3
docs/test_docs.sh Просмотреть файл

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

Загрузка…
Отмена
Сохранить