Quellcode durchsuchen

Fix duplicate explicit target name

- Pypi requires strict reStructuredText syntax
- New make target `doc-check`
Matthew Wang vor 11 Jahren
Ursprung
Commit
850cfd1ecb
2 geänderte Dateien mit 10 neuen und 3 gelöschten Zeilen
  1. 3
    2
      CHANGES
  2. 7
    1
      Makefile

+ 3
- 2
CHANGES Datei anzeigen

@@ -37,7 +37,7 @@ Version 0.5 (2013-02-18)
37 37
   - Support read output from ``svn diff --log`` and ``hg log -p``
38 38
   - Streamline reading large patch set
39 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 42
 Version 0.4 (2013-02-16)
43 43
 
@@ -64,5 +64,6 @@ Version 0.0.4 (2013-02-04)
64 64
 Version 0.0.3 (2013-02-04)
65 65
 
66 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 Datei anzeigen

@@ -3,13 +3,19 @@
3 3
 TESTPYPI = http://testpypi.python.org/pypi
4 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 7
 	test test3 cov cov3 html reg reg3 profile profile3
8 8
 
9 9
 dogfood:
10 10
 	./cdiff.py
11 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 19
 test: cov reg
14 20
 
15 21
 test3: cov3 reg3