This is the official VS Code extension to easily use NMD.
- Install
nmd
with Cargo or through Github release (you must modifyPATH
environment variable)
cargo install nmd
- Verify installation
nmd -V
Run a command using Ctrl + Shift + P
Create a new dossier in selected path and then open it.
nmd generate dossier -p <dossier-path> -f
Add a document to the opened dossier in workspace.
nmd dossier -p <dossier-path> add -d <document-name>`
Compile the opened dossier (in workspace, current
) or a selected one.
nmd compile -m <code-theme> -f html --force dossier -i <dossier-path> -o <dossier-path>/build/<output>.html`
Compile selected file.
compile -m <code-theme> -f html --force file -i <input-file-path> -o <output-path>
Watch and compile current dossier in workspace. This command doesn't use nmd compile -w dossier
, but it watches files (ignoring build/*.html
preventing compilation loops) directly using chokidar
library.