-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
208 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
description = "Simple example based on Antora's structure"; | ||
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 { | ||
inputFile = "pages/index.adoc"; | ||
src = ./src; | ||
} | ||
) | ||
(inputs.asciidoctor-nix.packages.${system} or {}); | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
= asciidoctor.nix | ||
:sectnums: | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+1] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+2] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+1] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+2] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+1] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+2] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+1] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+2] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+1] | ||
|
||
include::{root}/partials/lorem_ipsum.adoc[leveloffset=+2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,7 @@ | |
"mathematical-format=svg" | ||
"plantuml-format=svg" | ||
"reproducible" | ||
"root=${src}" | ||
] | ||
++ ( | ||
lib.optional | ||
|