Skip to content

Commit

Permalink
Improve docs landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Aug 12, 2023
1 parent 1f1be00 commit 5189eb6
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ compile_commands.json
*.swo
.mypy_cache
__pycache__

# python
.venv
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,12 @@ create_mage_toolchain()
include(DependencyGraph)
gen_dep_graph(pdf)

message(STATUS "remage install prefix set to ${CMAKE_INSTALL_PREFIX}")
message(STATUS "")
message(STATUS "WWW: remage install prefix set to ${CMAKE_INSTALL_PREFIX}")
message(STATUS "WWW: if the install location is non-standard, don't forget to")
message(STATUS "WWW: update the relevant environment variables:")
message(STATUS "WWW: export PATH=${CMAKE_INSTALL_PREFIX}/bin:$PATH")
message(STATUS "WWW: export LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:$LD_LIBRARY_PATH")
message(
STATUS "WWW: export CMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX}/lib/cmake:$CMAKE_PREFIX_PATH")
message(STATUS "")
1 change: 0 additions & 1 deletion docs/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ else:
warnings_filter_config = "@PROJECT_SOURCE_DIR@/docs/known-warnings.txt"

breathe_default_project = "remage"
highlight_language = "c++"
html_extra_path = ["extra"]

# Furo theme
Expand Down
109 changes: 105 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,112 @@
Welcome to remage's documentation!
==================================
remage
======

*Coming soon...*
|remage| is a modern C++ simulation framework for germanium experiments.

* `Good ol' Doxygen docs <doxygen/annotated.html>`_
Building the project
--------------------

Users are required to build the project themselves, since no official binaries
are distributed, at the moment.

Required dependencies
^^^^^^^^^^^^^^^^^^^^^

- `CMake <https://cmake.org>`_ 3.12 or higher
- |geant4|_ 11.0.3 or higher

Optional dependencies
^^^^^^^^^^^^^^^^^^^^^

- |geant4|_ support for:

- HDF5 object persistency
- Multithreading
- GDML geometry description

- |root|_ 6.06 or higher
- |bxdecay0|_ 1.0.10 or higher

.. note::

Pre-built Docker container images with all necessary dependencies are available `on
Docker Hub <https://hub.docker.com/repository/docker/gipert/remage-base>`_.

.. note::

Apptainer images can be easily generated with, e.g.:

.. code-block:: console
$ [sudo] apptainer build remage-base_latest.sif docker://gipert/remage-base:latest
For more details, have a look at `the documentation
<https://apptainer.org/docs/user/main/build_a_container.html>`_.

Building
^^^^^^^^

.. code-block:: console
$ git clone https://github.com/legend-exp/remage
$ cd remage
$ mkdir build && cd build
$ cmake -DCMAKE_INSTALL_PREFIX=<optional prefix> ..
$ make install
Usage
-----

.. warning::
A proper user guide is not available yet. In the meanwhile, users can have a
look at the `examples
<https://github.com/legend-exp/remage/tree/main/examples>`_.

In the simplest application, the user can simulate in an existing GDML geometry
through the ``remage`` executable:

.. code-block:: console
$ remage --help
remage: simulation framework for germanium experiments
Usage: src/remage [OPTIONS] [macros...]
Positionals:
macros TEXT ... Macro files
Options:
-h,--help Print this help message and exit
-q Print only warnings and errors
-v [0] Verbosity
-l,--log-level ENUM Logging level
-i,--interactive Run in interactive mode
-t,--threads INT Number of threads
-g,--gdml-files TEXT ... GDML files
Advanced applications can extend |remage| and link against ``libremage`` with the
usual CMake syntax:

.. code-block:: cmake
project(myapp)
find_package(remage)
# add_library(myapp ...)
# add_executable(myapp ...)
target_link_libraries(myapp PRIVATE RMG::remage)
Next steps
----------

.. toctree::
:maxdepth: 2

api/index
Good ol' Doxygen <https://remage.readthedocs.io/en/latest/doxygen/annotated.html>

.. |remage| replace:: *remage*
.. |geant4| replace:: Geant4
.. _geant4: https://geant4.web.cern.ch
.. |root| replace:: ROOT
.. _root: https://root.cern.ch
.. |bxdecay0| replace:: BxDecay0
.. _bxdecay0: https://github.com/BxCppDev/bxdecay0

0 comments on commit 5189eb6

Please sign in to comment.