tweak formatting and style setting to have the desired structure and layout

This commit is contained in:
Axel Kohlmeyer
2020-09-19 00:54:54 -04:00
parent 6dda562501
commit 9030c987e6
4 changed files with 19 additions and 13 deletions

View File

@ -166,14 +166,12 @@ pdf: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK)
deactivate ;\ deactivate ;\
) )
@cd latex && \ @cd latex && \
sed 's/latexmk -pdf -dvi- -ps-/pdflatex/g' Makefile > temp && \
mv temp Makefile && \
sed 's/\\begin{equation}//g' LAMMPS.tex > tmp.tex && \ sed 's/\\begin{equation}//g' LAMMPS.tex > tmp.tex && \
mv tmp.tex LAMMPS.tex && \ mv tmp.tex LAMMPS.tex && \
sed 's/\\end{equation}//g' LAMMPS.tex > tmp.tex && \ sed 's/\\end{equation}//g' LAMMPS.tex > tmp.tex && \
mv tmp.tex LAMMPS.tex && \ mv tmp.tex LAMMPS.tex && \
$(MAKE) $(MFLAGS) && \ sed 's/\\contentsname}{.*}}/\\contentsname}{LAMMPS Documentation}}/g' LAMMPS.tex > tmp.tex && \
$(MAKE) $(MFLAGS) && \ mv tmp.tex LAMMPS.tex && \
$(MAKE) $(MFLAGS) && \ $(MAKE) $(MFLAGS) && \
mv LAMMPS.pdf ../Manual.pdf && \ mv LAMMPS.pdf ../Manual.pdf && \
cd ../; cd ../;

View File

@ -23,25 +23,28 @@ The content for this manual is part of the LAMMPS distribution. You
can build a local copy of the Manual as HTML pages or a PDF file, by can build a local copy of the Manual as HTML pages or a PDF file, by
following the steps on the :doc:`Manual build <Manual_build>` doc page. following the steps on the :doc:`Manual build <Manual_build>` doc page.
The manual is organized in two parts: The manual is organized in two parts:
1) A :ref:`User documentation <user_documentation>` for how to install 1) the :ref:`User documentation <user_documentation>` for how to install
and use LAMMPS and 2) a :ref:`Programmer documentation <programmer_documentation>` and use LAMMPS and 2) the :ref:`Programmer documentation <programmer_documentation>`
for how to write programs using the LAMMPS library or how to modify LAMMPS. for how to write programs using the LAMMPS library from different
programming languages and how to modify and extend LAMMPS.
---------- .. only:: html
Once you are familiar with LAMMPS, you may want to bookmark :doc:`this page <Commands_all>` since it gives quick access to a doc page for Once you are familiar with LAMMPS, you may want to bookmark :doc:`this page <Commands_all>` since it gives quick access to a doc page for
every LAMMPS command. every LAMMPS command.
.. _lws: https://lammps.sandia.gov .. _lws: https://lammps.sandia.gov
----------
User Documentation User Documentation
****************** ******************
.. :caption: User Documentation
.. _user_documentation: .. _user_documentation:
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
:numbered: 3 :numbered: 3
:caption: User Documentation
:name: userdoc :name: userdoc
:includehidden: :includehidden:
@ -61,11 +64,12 @@ User Documentation
Programmer Documentation Programmer Documentation
************************ ************************
.. :caption: Programmer Documentation
.. _programmer_documentation: .. _programmer_documentation:
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
:numbered: 3 :numbered: 3
:caption: Programmer Documentation
:name: progdoc :name: progdoc
:includehidden: :includehidden:

View File

@ -27,6 +27,10 @@ hr {
margin-bottom: 12px !important; margin-bottom: 12px !important;
} }
.section h2 {
display: none;
}
.ui.tabular.menu .item { .ui.tabular.menu .item {
padding-right: 1em; padding-right: 1em;
padding-left: 1em; padding-left: 1em;

View File

@ -14,5 +14,5 @@ titles_only =
logo_only = logo_only =
display_version = True display_version = True
prev_next_buttons_location = both prev_next_buttons_location = both
style_external_links = False style_external_links = True
style_nav_header_background = style_nav_header_background =