
\documentclass[11pt]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper]{geometry}
\usepackage{xspace}
\usepackage{xparse}
\usepackage{xstring}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{tabularray}
\usepackage{tcolorbox}
\usepackage{fontawesome}
\usepackage{babel}
\usepackage{listings}
\usepackage{subcaption}
\usepackage{hyperref}
\usepackage{hypcap}

\input{config/listings}
\input{config/commands}
\input{config/boxes}

\NewDocumentEnvironment{sourcedef}{ m m m O{false} }{%
    \StrSubstitute{#1}{../}{}[\sourcepath]%
    \noindent File location: \dir*{\sourcepath}%
    \lstinputlisting[label=lst:\sourcepath,includerangemarker=#4,linerange={#2-#3}]{#1}
}{%
    \par
}

\begin{document}

    \title{
        RHPZ
    }
    \author{
       Test
    }

    \maketitle
    \tableofcontents

    \include{hooks}
    \include{timber}
    \include{how-to}


\end{document}