Change doc folder src -> txt, rst -> src

This commit is contained in:
Richard Berger 2019-11-05 14:01:48 -05:00
parent fe91d462db
commit 74dade3ccb
1525 changed files with 12 additions and 13 deletions
doc
Makefile
src
.gitignoreBuild.rstBuild_basics.rstBuild_cmake.rstBuild_development.rstBuild_extras.rstBuild_link.rstBuild_make.rstBuild_package.rstBuild_settings.rstBuild_windows.rstCommands.rstCommands_all.rstCommands_bond.rstCommands_category.rstCommands_compute.rstCommands_fix.rstCommands_input.rstCommands_kspace.rstCommands_pair.rstCommands_parse.rstCommands_removed.rstCommands_structure.rstErrors.rstErrors_bugs.rstErrors_common.rstErrors_messages.rstErrors_warnings.rstExamples.rstHowto.rstHowto_2d.rstHowto_barostat.rstHowto_bash.rstHowto_bioFF.rstHowto_body.rstHowto_chunk.rstHowto_client_server.rstHowto_coreshell.rstHowto_couple.rstHowto_diffusion.rstHowto_dispersion.rstHowto_drude.rstHowto_drude2.rstHowto_elastic.rstHowto_github.rstHowto_granular.rstHowto_kappa.rstHowto_library.rstHowto_manifold.rstHowto_multiple.rstHowto_nemd.rstHowto_output.rstHowto_polarizable.rstHowto_pylammps.rstHowto_replica.rstHowto_restart.rstHowto_spc.rstHowto_spherical.rstHowto_spins.rstHowto_temperature.rstHowto_thermostat.rstHowto_tip3p.rstHowto_tip4p.rstHowto_triclinic.rstHowto_viscosity.rstHowto_viz.rstHowto_walls.rstInstall.rstInstall_git.rstInstall_linux.rstInstall_mac.rstInstall_patch.rstInstall_svn.rstInstall_tarball.rstInstall_windows.rstIntro.rstIntro_authors.rstIntro_features.rstIntro_nonfeatures.rstIntro_opensource.rstIntro_overview.rstIntro_website.rstManual.rstManual_build.rstManual_version.rstModify.rstModify_atom.rstModify_body.rstModify_bond.rstModify_command.rstModify_compute.rstModify_contribute.rstModify_dump.rstModify_fix.rstModify_kspace.rstModify_min.rstModify_overview.rstModify_pair.rstModify_region.rst

View File

@ -1,11 +1,12 @@
# Makefile for LAMMPS documentation
SHELL = /bin/bash
BUILDDIR = ${PWD}
RSTDIR = $(BUILDDIR)/rst
BUILDDIR = ${CURDIR}
RSTDIR = $(BUILDDIR)/src
TXTDIR = $(BUILDDIR)/txt
VENV = $(BUILDDIR)/docenv
TXT2RST = $(VENV)/bin/txt2rst
ANCHORCHECK = $(VENV)/bin/doc_anchor_check
ANCHORCHECK = $(VENV)/bin/rst_anchor_check
PYTHON = $(shell which python3)
VIRTUALENV = virtualenv
@ -27,8 +28,8 @@ HAS_VIRTUALENV = YES
endif
SPHINXEXTRA = -j $(shell $(PYTHON) -c 'import multiprocessing;print(multiprocessing.cpu_count())')
SOURCES=$(filter-out $(wildcard src/lammps_commands*.txt) src/lammps_support.txt src/lammps_tutorials.txt,$(wildcard src/*.txt))
OBJECTS=$(SOURCES:src/%.txt=$(RSTDIR)/%.rst)
SOURCES=$(filter-out $(wildcard $(TXTDIR)/lammps_commands*.txt) $(TXTDIR)/lammps_support.txt $(TXTDIR)/lammps_tutorials.txt,$(wildcard $(TXTDIR)/*.txt))
OBJECTS=$(SOURCES:$(TXTDIR)/%.txt=$(RSTDIR)/%.rst)
.PHONY: help clean-all clean epub mobi rst html pdf venv spelling anchor_check
@ -53,7 +54,7 @@ clean-all: clean
rm -rf $(BUILDDIR)/docenv $(BUILDDIR)/doctrees
clean:
rm -rf $(RSTDIR)/{Eqs,JPG,*.rst} html epub latex
rm -rf html epub latex
rm -rf spelling
clean-spelling:
@ -64,12 +65,10 @@ rst: clean $(OBJECTS) $(ANCHORCHECK)
html: $(OBJECTS) $(ANCHORCHECK)
@(\
. $(VENV)/bin/activate ;\
cp -r src/JPG $(RSTDIR)/ ;\
cp -r src/Eqs $(RSTDIR)/ ;\
sphinx-build $(SPHINXEXTRA) -b html -c utils/sphinx-config -d $(BUILDDIR)/doctrees $(RSTDIR) html ;\
echo "############################################" ;\
doc_anchor_check src/*.txt ;\
env LC_ALL=C grep -n '[^ -~]' src/*.txt ;\
rst_anchor_check src/*.rst ;\
env LC_ALL=C grep -n '[^ -~]' $(RSTDIR)/*.rst ;\
echo "############################################" ;\
deactivate ;\
)
@ -89,7 +88,7 @@ spelling: $(OBJECTS) utils/sphinx-config/false_positives.txt
@(\
. $(VENV)/bin/activate ;\
pip install sphinxcontrib-spelling ;\
cp utils/sphinx-config/false_positives.txt $(RSTDIR)/ ;\
cp utils/sphinx-config/false_positives.txt $(RSTDIR)/ ;\
sphinx-build -b spelling -c utils/sphinx-config -d $(BUILDDIR)/doctrees $(RSTDIR) spelling ;\
deactivate ;\
)
@ -126,7 +125,7 @@ pdf: $(OBJECTS) $(ANCHORCHECK)
. $(VENV)/bin/activate ;\
sphinx-build $(SPHINXEXTRA) -b latex -c utils/sphinx-config -d $(BUILDDIR)/doctrees $(RSTDIR) latex ;\
echo "############################################" ;\
doc_anchor_check src/*.txt ;\
rst_anchor_check src/*.rst ;\
echo "############################################" ;\
deactivate ;\
)
@ -163,7 +162,7 @@ fetch:
anchor_check : $(ANCHORCHECK)
@(\
. $(VENV)/bin/activate ;\
doc_anchor_check src/*.txt ;\
rst_anchor_check src/*.txt ;\
deactivate ;\
)

Some files were not shown because too many files have changed in this diff Show More