Skip to content

Commit

Permalink
exploring using css to get aaron's formatting objective
Browse files Browse the repository at this point in the history
Signed-off-by: Amndeep Singh Mann <[email protected]>
  • Loading branch information
Amndeep7 committed Dec 20, 2024
1 parent 9453086 commit a01c1a2
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/courses/advanced/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,16 +525,21 @@ inspec> git('/workspaces/saf-training-lab-environment/git_test_target/.git').cur
:::

::: warning
Note that we are passing in the _profile_ directory to the `--depends` flag, and not the profile's `libraries` directory. In our example, it's
``` sh
inspec shell --depends my_git
```
and not
``` sh
inspec shell --depends my_git/libraries
```
Note that we are passing in the _profile_ directory to the `--depends` flag, and not the profile's `libraries` directory. In our example, it's `inspec shell --depends my_git`{.good style="background-clip: padding-box; box-shadow: inset 0 0 0 3px var(--tip-c-accent)"} and not `inspec shell --depends my_git/libraries`{.bad style="background-clip: padding-box; box-shadow: inset 0 0 0 3px var(--caution-c-accent)"}
:::

If you edit the resource class file, you'll need to exit the shell and re-launch it for the updates to be available.

From here, we can examine our custom resource in a sandbox in the same way that we do with core resources.

<style scope>
.good::before {
content: "";
margin-right: 0.5rem;
}

.bad::before {
content: "";
margin-right: 0.5rem;
}
</style>

0 comments on commit a01c1a2

Please sign in to comment.