Browse Source

Fixes rst errors in README.rst (Closes #3418)

Ask Solem 8 years ago
parent
commit
778e088510
3 changed files with 12 additions and 5 deletions
  1. 8 1
      Makefile
  2. 2 2
      README.rst
  3. 2 2
      docs/includes/introduction.txt

+ 8 - 1
Makefile

@@ -8,6 +8,8 @@ ICONV=iconv
 FLAKE8=flake8
 FLAKE8=flake8
 FLAKEPLUS=flakeplus
 FLAKEPLUS=flakeplus
 SPHINX2RST=sphinx2rst
 SPHINX2RST=sphinx2rst
+RST2HTML=rst2html.py
+DEVNULL=/dev/null
 
 
 TESTDIR=t
 TESTDIR=t
 
 
@@ -102,9 +104,14 @@ flakes: flakediag flakeplusdiag
 clean-readme:
 clean-readme:
 	-rm -f $(README)
 	-rm -f $(README)
 
 
-readmecheck:
+readmecheck-unicode:
 	$(ICONV) -f ascii -t ascii $(README) >/dev/null
 	$(ICONV) -f ascii -t ascii $(README) >/dev/null
 
 
+readmecheck-rst:
+	-$(RST2HTML) --strict $(README) >$(DEVNULL)
+
+readmecheck: readmecheck-unicode readmecheck-rst
+
 $(README):
 $(README):
 	$(SPHINX2RST) "$(README_SRC)" --ascii > $@
 	$(SPHINX2RST) "$(README_SRC)" --ascii > $@
 
 

+ 2 - 2
README.rst

@@ -96,7 +96,7 @@ getting started tutorials:
     http://docs.celeryproject.org/en/latest/getting-started/next-steps.html
     http://docs.celeryproject.org/en/latest/getting-started/next-steps.html
 
 
 Celery is...
 Celery is...
-==========
+=============
 
 
 - **Simple**
 - **Simple**
 
 
@@ -134,7 +134,7 @@ Celery is...
     schedulers, consumers, producers, broker transports, and much more.
     schedulers, consumers, producers, broker transports, and much more.
 
 
 It supports...
 It supports...
-============
+================
 
 
     - **Message Transports**
     - **Message Transports**
 
 

+ 2 - 2
docs/includes/introduction.txt

@@ -88,7 +88,7 @@ getting started tutorials:
     http://docs.celeryproject.org/en/latest/getting-started/next-steps.html
     http://docs.celeryproject.org/en/latest/getting-started/next-steps.html
 
 
 Celery is…
 Celery is…
-==========
+=============
 
 
 - **Simple**
 - **Simple**
 
 
@@ -126,7 +126,7 @@ Celery is…
     schedulers, consumers, producers, broker transports, and much more.
     schedulers, consumers, producers, broker transports, and much more.
 
 
 It supports…
 It supports…
-============
+================
 
 
     - **Message Transports**
     - **Message Transports**