Latex documents often come with a number of different files. What does a .dtx file usually specify? Please assume that the person reading your answer has next to no experience with using LaTeX. I don't care about the syntax used inside of a .dtx, or how to write a .dtx, I just want a short explanation of what it does.
As an example, inside of a .dtx file put out by the association of computing machinery, I found the following:
% \begin{macro}{\if@ACM@screen}
% Whether we use screen mode
% \begin{macrocode}
\define@boolkey+{acmart.cls}[@ACM@]{screen}[true]{%
\if@ACM@screen
\PackageInfo{\@classname}{Using screen mode}%
\else
\PackageInfo{\@classname}{Not using screen mode}%
\fi}{\PackageError{\@classname}{The option screen can be either true or
false}}
\ExecuteOptionsX{screen=false}
% \end{macrocode}
%
% \end{macro}
EDIT:
Originally I said that a .dtx was a "configuration file," and then asked what a .dtx did. However, others have informed me that a .dtx is not a "configuration file." I have subsequently edited the question.
optionthat can be passed to a document class. – Dr. Manuel Kuehner Jan 06 '19 at 16:56xkeyvalpackage syntax – Jan 06 '19 at 17:01.dtxfile?" I was wrong to say that a.dtxfile was a configuration file. – IdleCustard Jan 13 '19 at 01:10