GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing docs.lammps.org — 3.10. Build the LAMMPS documentation — LAMMPS documentation 3.10. Build the LAMMPS documentationDepending on how you obtained LAMMPS and whether you have built the manual yourself, this directory has a number of subdirectories and files. Here is a list with descriptions: README # brief info about the documentation src # content files for LAMMPS documentation html # HTML version of the LAMMPS manual (see html/Manual.html) utils # tools and settings for building the documentation lammps.1 # man page for the lammps command msi2lmp.1 # man page for the msi2lmp command Manual.pdf # large PDF version of entire manual LAMMPS.epub # Manual in ePUB e-book format LAMMPS.mobi # Manual in MOBI e-book format docenv # virtualenv folder for processing the manual sources doctrees # temporary data from processing the manual doxygen # doxygen configuration and output .gitignore # list of files and folders to be ignored by git doxygen-warn.log # logfile with warnings from running doxygen github-development-workflow.md # notes on the LAMMPS development workflow If you downloaded LAMMPS as a tarball from the LAMMPS website, the html folder and the PDF files should be included. If you downloaded LAMMPS from the public git repository, then the HTML
and PDF files are not included. You can build the HTML or PDF files yourself,
by typing A current version of the manual (latest feature release, that is the state of the release branch) is available online at: https://docs.lammps.org/. A version of the manual corresponding to the ongoing development (that is the state of the develop branch) is available online at: https://docs.lammps.org/latest/ A version of the manual corresponding to the latest stable LAMMPS release (that is the state of the stable branch) is available online at: https://docs.lammps.org/stable/ 3.10.1. Build using GNU makeThe LAMMPS manual is written in reStructuredText format which
can be translated to different output format using the Sphinx document generator tool. It also
incorporates programmer documentation extracted from the LAMMPS C++
sources through the Doxygen program. Currently
the translation to HTML, PDF (via LaTeX), ePUB (for many e-book readers)
and MOBI (for Amazon Kindle readers) are supported. For that to work a
Python interpreter version 3.8 or later, the For the documentation build a python virtual environment is set up in
the folder The actual translation is then done via make html # generate HTML in html dir using Sphinx make pdf # generate PDF as Manual.pdf using Sphinx and PDFLaTeX make epub # generate LAMMPS.epub in ePUB format using Sphinx make mobi # generate LAMMPS.mobi in MOBI format using ebook-convert make fasthtml # generate approximate HTML in fasthtml dir using pandoc make upgrade # upgrade sphinx, extensions, and dependencies to latest supported versions make clean # remove intermediate RST files created by HTML build make clean-all # remove entire build folder and any cached data make upgrade # upgrade the python packages in the virtual environment make check # run all checks listed in this block make anchor_check # check for duplicate and unused anchor labels make style_check # check for complete and consistent style lists make package_check # check for complete and consistent package lists make char_check # check for non-ASCII characters make role_check # check for misformatted role keywords make example_check # check for broken or missing links to examples make link_check # check for broken external URLs make spelling # spell-check the manual 3.10.2. Build using CMakeIt is also possible to create the HTML version (and only the HTML
version) of the manual within the CMake build directory. The reason for this option is to include the
installation of the HTML manual pages into the “install” step when
installing LAMMPS after the CMake build via -D BUILD_DOC=value # on or off (default) 3.10.3. Prerequisites for HTMLTo run the HTML documentation build tool chain, Python 3.8 or later, git, doxygen, and virtualenv have to be installed locally. Here are instructions for common setups: sudo apt-get install git doxygen sudo dnf install git doxygen Python 3 If Python 3 is not available on your macOS system, you can download the latest Python 3 macOS package from https://www.python.org and install it. This will install both Python 3 and pip3. 3.10.4. Prerequisites for PDFIn addition to the tools needed for building the HTML format manual, a working LaTeX installation with support for PDFLaTeX and a selection of LaTeX styles/packages are required. Apart from LaTeX packages that are usually installed by default, the following packages are required:
To run the PDFLaTeX translation
the 3.10.5. Prerequisites for ePUB and MOBIIn addition to the tools needed for building the HTML format manual,
a working LaTeX installation with a few add-on LaTeX packages
as well as the For converting the generated ePUB file to a MOBI format file (for e-book
readers, like Kindle, that cannot read ePUB), you also need to have the
3.10.6. Instructions for DevelopersWhen adding new styles or options to the LAMMPS code, corresponding
documentation is required and either existing files in the Testing your contributionBefore contributing any documentation, please check that both the HTML
and the PDF format documentation can translate without errors and that
there are no spelling issues. This is done with Fast and approximate translation to HTMLTranslating the full manual to HTML or PDF can take a long time. Thus there is a fast and approximate way to translate the reStructuredText to HTML as a quick-n-dirty way of checking your manual page. This translation uses Pandoc instead of Sphinx and thus all special Sphinx features (cross-references, advanced tables, embedding of Python docstrings or doxygen documentation, and so on) will not render correctly. Most embedded math should render correctly. This is a very fast way to check the syntax and layout of a documentation file translated to HTML while writing or updating it. To translate all manual pages, you can type After writing the documentation is completed, you will still need
to verify with Tests for consistency, completeness, and other known issuesPlease also check the output to the console for any warnings or problems. There will be multiple tests run automatically:
In addition, there is the option to run a spellcheck on the entire
manual with | ||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |