-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
7 changed files
with
165 additions
and
57 deletions.
There are no files selected for viewing
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
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
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
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,58 @@ | ||
--- | ||
source: src/test.rs | ||
expression: output | ||
--- | ||
## `lib.debug.nixdoc` {#function-library-lib.debug.nixdoc} | ||
|
||
**Type**: `This is a parsed type` | ||
|
||
nixdoc-legacy comment | ||
|
||
::: {.example #function-library-example-lib.debug.nixdoc} | ||
# `lib.debug.nixdoc` usage example | ||
|
||
```nix | ||
This is a parsed example | ||
``` | ||
::: | ||
|
||
## `lib.debug.rfc-style` {#function-library-lib.debug.rfc-style} | ||
|
||
doc comment in markdown format | ||
|
||
|
||
## `lib.debug.argumentTest` {#function-library-lib.debug.argumentTest} | ||
|
||
doc comment in markdown format | ||
|
||
Example: | ||
|
||
This is just markdown | ||
|
||
Type: | ||
|
||
This is just markdown | ||
|
||
|
||
structured function argument | ||
|
||
: `formal1` | ||
|
||
: Legacy line comment | ||
|
||
`formal2` | ||
|
||
: Legacy Block | ||
|
||
`formal3` | ||
|
||
: Legacy | ||
multiline | ||
comment | ||
|
||
`formal4` | ||
|
||
: official doc-comment variant | ||
|
||
|
||
|
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
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 |
---|---|---|
@@ -1,49 +1,37 @@ | ||
/** | ||
# Heading | ||
## Implicit coercion from paths to file sets {#sec-fileset-path-coercion} | ||
Prequel | ||
*/ | ||
{lib}: | ||
{ | ||
|
||
/* | ||
/** | ||
Create a file set from a path that may or may not exist | ||
*/ | ||
packagesFromDirectoryRecursive = | ||
# Options. | ||
{ | ||
/** | ||
`pkgs.callPackage` | ||
rfc style | ||
``` | ||
Path -> AttrSet -> a | ||
``` | ||
*/ | ||
callPackage, | ||
/** | ||
The directory to read package files from | ||
/* | ||
legacy multiline | ||
``` | ||
Path | ||
``` | ||
*/ | ||
directory, | ||
... | ||
# legacy single line | ||
config, | ||
# legacy | ||
# block | ||
# comment | ||
moreConfig, | ||
}: | ||
1; | ||
|
||
/** | ||
gitTrackedWith | ||
*/ | ||
gitTrackedWith = | ||
{ | ||
recurseSubmodules ? false, | ||
}: | ||
/* | ||
The [path](https://nixos.org/manual/nix/stable/language/values#type-path) to the working directory of a local Git repository. | ||
This directory must contain a `.git` file or subdirectory. | ||
*/ | ||
path: 1; | ||
} |
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