we don't need txt2rst and txt2html anymore
This commit is contained in:
@ -10,7 +10,6 @@ endif
|
|||||||
BUILDDIR = ${CURDIR}
|
BUILDDIR = ${CURDIR}
|
||||||
RSTDIR = $(BUILDDIR)/src
|
RSTDIR = $(BUILDDIR)/src
|
||||||
VENV = $(BUILDDIR)/docenv
|
VENV = $(BUILDDIR)/docenv
|
||||||
TXT2RST = $(VENV)/bin/txt2rst
|
|
||||||
ANCHORCHECK = $(VENV)/bin/rst_anchor_check
|
ANCHORCHECK = $(VENV)/bin/rst_anchor_check
|
||||||
SPHINXCONFIG = $(BUILDDIR)/utils/sphinx-config
|
SPHINXCONFIG = $(BUILDDIR)/utils/sphinx-config
|
||||||
MATHJAX = $(SPHINXCONFIG)/_static/mathjax
|
MATHJAX = $(SPHINXCONFIG)/_static/mathjax
|
||||||
@ -59,7 +58,7 @@ SPHINXEXTRA = -E -j $(shell $(PYTHON) -c 'import multiprocessing;print(multiproc
|
|||||||
# we only want to use explicitly listed files.
|
# we only want to use explicitly listed files.
|
||||||
DOXYFILES = $(shell sed -n -e 's/\#.*$$//' -e '/^ *INPUT \+=/,/^[A-Z_]\+ \+=/p' doxygen/Doxyfile.in | sed -e 's/@LAMMPS_SOURCE_DIR@/..\/src/g' -e 's/\\//g' -e 's/ \+/ /' -e 's/[A-Z_]\+ \+= *\(YES\|NO\|\)//')
|
DOXYFILES = $(shell sed -n -e 's/\#.*$$//' -e '/^ *INPUT \+=/,/^[A-Z_]\+ \+=/p' doxygen/Doxyfile.in | sed -e 's/@LAMMPS_SOURCE_DIR@/..\/src/g' -e 's/\\//g' -e 's/ \+/ /' -e 's/[A-Z_]\+ \+= *\(YES\|NO\|\)//')
|
||||||
|
|
||||||
.PHONY: help clean-all clean clean-spelling epub mobi rst html pdf spelling anchor_check style_check xmlgen
|
.PHONY: help clean-all clean clean-spelling epub mobi rst html pdf spelling anchor_check style_check char_check xmlgen
|
||||||
|
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
|
|
||||||
@ -205,6 +204,9 @@ package_check : $(VENV)
|
|||||||
deactivate ;\
|
deactivate ;\
|
||||||
)
|
)
|
||||||
|
|
||||||
|
char_check :
|
||||||
|
@( env LC_ALL=C grep -n '[^ -~]' $(RSTDIR)/*.rst && exit 1 || : )
|
||||||
|
|
||||||
xmlgen : doxygen/xml/index.xml
|
xmlgen : doxygen/xml/index.xml
|
||||||
|
|
||||||
doxygen/Doxyfile: doxygen/Doxyfile.in
|
doxygen/Doxyfile: doxygen/Doxyfile.in
|
||||||
@ -230,7 +232,7 @@ $(VENV):
|
|||||||
$(MATHJAX):
|
$(MATHJAX):
|
||||||
@git clone -b 3.1.4 -c advice.detachedHead=0 --depth 1 git://github.com/mathjax/MathJax.git $@
|
@git clone -b 3.1.4 -c advice.detachedHead=0 --depth 1 git://github.com/mathjax/MathJax.git $@
|
||||||
|
|
||||||
$(TXT2RST) $(ANCHORCHECK): $(VENV)
|
$(ANCHORCHECK): $(VENV)
|
||||||
@( \
|
@( \
|
||||||
. $(VENV)/bin/activate; \
|
. $(VENV)/bin/activate; \
|
||||||
(cd utils/converters;\
|
(cd utils/converters;\
|
||||||
|
|||||||
0
doc/utils/converters/lammpsdoc/rst_anchor_check.py
Normal file → Executable file
0
doc/utils/converters/lammpsdoc/rst_anchor_check.py
Normal file → Executable file
@ -1,7 +1,7 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(name='LAMMPS Documentation Utilities',
|
setup(name='LAMMPS Documentation Utilities',
|
||||||
version='2.0.0',
|
version='2.0.1',
|
||||||
description='Utilities to convert existing LAMMPS documentation text files into ReStructured Text',
|
description='Utilities to convert existing LAMMPS documentation text files into ReStructured Text',
|
||||||
url='https://github.com/rbberger/lammps-doc-utils',
|
url='https://github.com/rbberger/lammps-doc-utils',
|
||||||
author='Richard Berger',
|
author='Richard Berger',
|
||||||
@ -11,8 +11,6 @@ setup(name='LAMMPS Documentation Utilities',
|
|||||||
test_suite='nose.collector',
|
test_suite='nose.collector',
|
||||||
tests_require=['nose'],
|
tests_require=['nose'],
|
||||||
entry_points = {
|
entry_points = {
|
||||||
"console_scripts": ['txt2html = lammpsdoc.txt2html:main',
|
"console_scripts": ['rst_anchor_check = lammpsdoc.rst_anchor_check:main ']
|
||||||
'txt2rst = lammpsdoc.txt2rst:main',
|
|
||||||
'rst_anchor_check = lammpsdoc.rst_anchor_check:main ']
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user