Skip to content
Snippets Groups Projects
Verified Commit 92a99cb2 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

load html in .env.nu

parent 6cb865f0
Branches
No related tags found
No related merge requests found
const MODULES = [
"make.nu",
"html.nu",
]
def log-load [m: string] {
......@@ -8,4 +9,5 @@ def log-load [m: string] {
log-load $MODULES.0
use $MODULES.0
log-load $MODULES.1
use $MODULES.1
......@@ -18,15 +18,15 @@ use html.nu update-pages
> [!tip] TIP
>
> the `make` module is imported in `.env.nu` and can be used automatically
> the `make` and `html` modules are imported in `.env.nu` and can be used automatically
> with tools like [`nuenv`].
## Plot
```bash
make plot -T -o gallery field group setup commit linalg fec --cpu-hash-pattern '^ee672bb3' --src-hash-pattern '^c8f3481f' --rust-build 'debug' | update-pages
make plot -T -o gallery field group setup commit linalg fec --cpu-hash-pattern '^ee672bb3' --src-hash-pattern '^c8f3481f' --rust-build 'debug' | html update-pages
```
```bash
make plot -T -o gallery field group setup commit linalg fec --cpu-hash-pattern '^ee672bb3' --src-hash-pattern '^(00086216|04541a50|733a57d6)' --rust-build 'release' | update-pages
make plot -T -o gallery field group setup commit linalg fec --cpu-hash-pattern '^ee672bb3' --src-hash-pattern '^(00086216|04541a50|733a57d6)' --rust-build 'release' | html update-pages
```
```bash
use regex.nu *
......@@ -57,7 +57,7 @@ let srcs = [
--cpu-hash-pattern ('ee672bb315ea00fe5815f0e20db6aa88017c1ba8355794f411c10a6057377e57' | regex exact)
--src-hash-pattern ($srcs | regex or | regex start)
--rust-build 'release'
) | update-pages
) | html update-pages
```
[`nuenv`]: https://github.com/nushell/nu_scripts/blob/main/nu-hooks/nu-hooks/nuenv/hook.nu
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment