Skip to content

Commit

Permalink
add "Bundle Tree" example -- it works!
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr committed Dec 11, 2017
1 parent 8e0e3f8 commit 7eed74f
Show file tree
Hide file tree
Showing 9 changed files with 172 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/Bundle-Tree/Module-One/build.lua
@@ -0,0 +1,13 @@
#!/usr/bin/env texlua

bundle = "bundle-tree"
module = "module-one"
maindir = ".."

sourcefiledir = "code"
docfiledir = "doc"
typesetfiles = {"*.dtx","*.tex"}
packtdszip = true -- recommended for "tree" layouts

kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
50 changes: 50 additions & 0 deletions examples/Bundle-Tree/Module-One/code/module-one.dtx
@@ -0,0 +1,50 @@
% \iffalse
%
%<*driver>
\ProvidesFile{module-one.dtx}
%</driver>
%<pkg>\ProvidesPackage{module-one}
%<*pkg>
[2017/12/10 v0.1 Module One example]
%</pkg>
%
%<*driver>
\documentclass{ltxdoc}
\EnableCrossrefs
\CodelineIndex
\begin{document}
\DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
%
% \GetFileInfo{module-one.dtx}
% \title{The \textsf{module-one} example}
% \date{\filedate\qquad\fileversion}
% \maketitle
% \begin{abstract}
% This is the implementation of the module-one example.
% \end{abstract}
%
% \tableofcontents
%
% \section{Introduction}
%
% In the module-one example, code is located in code/ and documentation is located in doc/.
%
% \section{Implementation}
%
% \begin{macrocode}
%<*pkg>
% \end{macrocode}
%
% \begin{macrocode}
\typeout{Actually this isn't a real package!}
% \end{macrocode}
%
% \begin{macrocode}
%</pkg>
% \end{macrocode}
%
% \Finale
%
6 changes: 6 additions & 0 deletions examples/Bundle-Tree/Module-One/code/module-one.ins
@@ -0,0 +1,6 @@

\input docstrip.tex
\keepsilent
\askforoverwritefalse
\generate{\file{\jobname.sty}{\from{\jobname.dtx}{pkg}}}
\endbatchfile
13 changes: 13 additions & 0 deletions examples/Bundle-Tree/Module-One/doc/module-one-doc.tex
@@ -0,0 +1,13 @@
\documentclass{article}

\begin{document}

\title{Documentation for bundle tree / module one}
\maketitle

\section{Introduction}

There's not much more to say right here.
This is where the user documentation for the example goes.

\end{document}
13 changes: 13 additions & 0 deletions examples/Bundle-Tree/Module-Two/build.lua
@@ -0,0 +1,13 @@
#!/usr/bin/env texlua

bundle = "bundle-tree"
module = "module-two"
maindir = ".."

sourcefiledir = "code"
docfiledir = "doc"
typesetfiles = {"*.dtx","*.tex"}
packtdszip = true -- recommended for "tree" layouts

kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
50 changes: 50 additions & 0 deletions examples/Bundle-Tree/Module-Two/code/module-two.dtx
@@ -0,0 +1,50 @@
% \iffalse
%
%<*driver>
\ProvidesFile{module-two.dtx}
%</driver>
%<pkg>\ProvidesPackage{module-two}
%<*pkg>
[2017/12/10 v0.1 Module two example]
%</pkg>
%
%<*driver>
\documentclass{ltxdoc}
\EnableCrossrefs
\CodelineIndex
\begin{document}
\DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
%
% \GetFileInfo{module-two.dtx}
% \title{The \textsf{module-two} example}
% \date{\filedate\qquad\fileversion}
% \maketitle
% \begin{abstract}
% This is the implementation of the module-two example.
% \end{abstract}
%
% \tableofcontents
%
% \section{Introduction}
%
% In the module-two example, code is located in code/ and documentation is located in doc/.
%
% \section{Implementation}
%
% \begin{macrocode}
%<*pkg>
% \end{macrocode}
%
% \begin{macrocode}
\typeout{Actually this isn't a real package!}
% \end{macrocode}
%
% \begin{macrocode}
%</pkg>
% \end{macrocode}
%
% \Finale
%
6 changes: 6 additions & 0 deletions examples/Bundle-Tree/Module-Two/code/module-two.ins
@@ -0,0 +1,6 @@

\input docstrip.tex
\keepsilent
\askforoverwritefalse
\generate{\file{\jobname.sty}{\from{\jobname.dtx}{pkg}}}
\endbatchfile
13 changes: 13 additions & 0 deletions examples/Bundle-Tree/Module-Two/doc/module-two.tex
@@ -0,0 +1,13 @@
\documentclass{article}

\begin{document}

\title{Documentation for bundle tree / module two}
\maketitle

\section{Introduction}

There's not much more to say right here.
This is where the user documentation for the example goes.

\end{document}
8 changes: 8 additions & 0 deletions examples/Bundle-Tree/build.lua
@@ -0,0 +1,8 @@
#!/usr/bin/env texlua

bundle = "bundle-tree"

packtdszip = true

kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))

0 comments on commit 7eed74f

Please sign in to comment.