Skip to content

Commit

Permalink
examples: simple: init
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO committed Oct 2, 2024
1 parent 7d9b175 commit 55010f8
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 0 deletions.
146 changes: 146 additions & 0 deletions examples/simple/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions examples/simple/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "Simple example";
inputs.asciidoctor-nix.url = "path:../..";

outputs = inputs:
builtins.removeAttrs inputs.asciidoctor-nix [
"_type"
"inputs"
"lastModified"
"lastModifiedDate"
"lib"
"narHash"
"outPath"
"outputs"
"packages"
"sourceInfo"
]
// inputs.asciidoctor-nix.inputs.flake-utils.lib.eachDefaultSystem (
system: {
packages =
inputs.asciidoctor-nix.inputs.nixpkgs.legacyPackages.${system}.lib.attrsets.unionOfDisjoint
(inputs.asciidoctor-nix.lib.${system}.packages {src = ./src;})
(inputs.asciidoctor-nix.packages.${system} or {});
}
);
}
8 changes: 8 additions & 0 deletions examples/simple/src/lorem_ipsum.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
= Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
22 changes: 22 additions & 0 deletions examples/simple/src/main.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
= asciidoctor.nix
:sectnums:

include::lorem_ipsum.adoc[leveloffset=+1]

include::lorem_ipsum.adoc[leveloffset=+2]

include::lorem_ipsum.adoc[leveloffset=+1]

include::lorem_ipsum.adoc[leveloffset=+2]

include::lorem_ipsum.adoc[leveloffset=+1]

include::lorem_ipsum.adoc[leveloffset=+2]

include::lorem_ipsum.adoc[leveloffset=+1]

include::lorem_ipsum.adoc[leveloffset=+2]

include::lorem_ipsum.adoc[leveloffset=+1]

include::lorem_ipsum.adoc[leveloffset=+2]

0 comments on commit 55010f8

Please sign in to comment.