-
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.
Merge pull request #157 from gesslar:update-file-resolution
Update-file-resolution
- Loading branch information
Showing
12 changed files
with
119 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
The parser has access to BeDoc's core logging utilities through `this.log`. | ||
There are four logging functions available: | ||
|
||
- `this.log.debug(string[, ...arg])`: Debug messages | ||
```javascript | ||
async parse(file, content) { | ||
this.log.debug("This will only show in debug mode") | ||
} | ||
|
||
// [BeDoc] Debug: This will only show in debug mode | ||
``` | ||
- `this.log.info(string[, ...arg])`: Informational messages | ||
```javascript | ||
async parse(file, content) { | ||
this.log.info("A wild Happy Fun Ball has appeared.") | ||
} | ||
|
||
// [BeDoc] Info: A wild Happy Fun Ball has appeared. | ||
``` | ||
- `this.log.warn(string[, ...arg])`: Warning messages | ||
```javascript | ||
async parse(file, content) { | ||
this.log.warn("Do not taunt Happy Fun Ball.") | ||
} | ||
|
||
// [BeDoc] Warn: Do not taunt Happy Fun Ball. | ||
``` | ||
- `this.log.error(string[, ...arg])`: Error messages | ||
```javascript | ||
async parse(file, content) { | ||
this.log.error("You have been eaten by Happy Fun Ball. 🙀") | ||
} | ||
|
||
// [BeDoc] Error: You have been eaten by Happy Fun Ball. 🙀 | ||
``` |
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,7 +1,10 @@ | ||
{ | ||
"language": "lpc", | ||
"format": "markdown", | ||
"output": "output/", | ||
"input": ["wip/sample/arrays.c", "wip/sample/base64.c"], | ||
"hooks": "wip/wikitext-hooks.js" | ||
"output": "output/markdown", | ||
"input": [ | ||
"examples/source/lpc/arrays.c", | ||
"examples/source/lpc/base64.c" | ||
], | ||
"hooks": "examples/hooks/lpc-wikitext-hooks.js" | ||
} |
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,10 @@ | ||
{ | ||
"language": "lpc", | ||
"format": "markdown", | ||
"output": "examples/output/markdown", | ||
"input": [ | ||
"examples/source/lpc/arrays.c", | ||
"examples/source/lpc/base64.c" | ||
], | ||
"hooks": "examples/hooks/lpc-wikitext-hooks.js" | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.