Browse Source

Fix duplicate explicit target name

- Pypi requires strict reStructuredText syntax
- New make target `doc-check`
Matthew Wang 11 years ago
parent
commit
850cfd1ecb
2 changed files with 10 additions and 3 deletions
  1. 3
    2
      CHANGES
  2. 7
    1
      Makefile

+ 3
- 2
CHANGES View File

37
   - Support read output from ``svn diff --log`` and ``hg log -p``
37
   - Support read output from ``svn diff --log`` and ``hg log -p``
38
   - Streamline reading large patch set
38
   - Streamline reading large patch set
39
   - New ``--log (-l)`` option to read revision control diff log (thanks to
39
   - New ``--log (-l)`` option to read revision control diff log (thanks to
40
-    `Steven Myint <https://github.com/myint>`_)
40
+    `Steven Myint`_)
41
 
41
 
42
 Version 0.4 (2013-02-16)
42
 Version 0.4 (2013-02-16)
43
 
43
 
64
 Version 0.0.3 (2013-02-04)
64
 Version 0.0.3 (2013-02-04)
65
 
65
 
66
   - Publish on PyPI, supports read patch from file, pipe and diff output from
66
   - Publish on PyPI, supports read patch from file, pipe and diff output from
67
-    revision tools (thanks to `Steven Myint <https://github.com/myint>`_)
67
+    revision tools (thanks to `Steven Myint`_)
68
 
68
 
69
+.. _Steven Myint: https://github.com/myint

+ 7
- 1
Makefile View File

3
 TESTPYPI = http://testpypi.python.org/pypi
3
 TESTPYPI = http://testpypi.python.org/pypi
4
 PYPI = http://pypi.python.org/pypi
4
 PYPI = http://pypi.python.org/pypi
5
 
5
 
6
-.PHONY: dogfood clean build dist-test dist \
6
+.PHONY: dogfood doc-check clean build dist-test dist \
7
 	test test3 cov cov3 html reg reg3 profile profile3
7
 	test test3 cov cov3 html reg reg3 profile profile3
8
 
8
 
9
 dogfood:
9
 dogfood:
10
 	./cdiff.py
10
 	./cdiff.py
11
 	git diff | ./cdiff.py -s
11
 	git diff | ./cdiff.py -s
12
 
12
 
13
+doc-check:
14
+	./setup.py --long-description | rst2html.py --strict > output.html
15
+	python -m webbrowser -n "file://$(shell pwd)/output.html"
16
+	sleep 1
17
+	rm -f output.html
18
+
13
 test: cov reg
19
 test: cov reg
14
 
20
 
15
 test3: cov3 reg3
21
 test3: cov3 reg3