Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Usage Examples as new subtoctree #748

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

DarikshaAnsari
Copy link
Contributor

**Fixes issue #414 **:

Added Examples section: Introduced a new section titled "Useage Examples" to showcase practical use cases of in-toto, including parameter substitution and layout creation.

Parameter Substitution: Expanded the subsection on parameter substitution to provide detailed examples of its usage in steps and inspections.

Layout Creation Example: Added a new subsection demonstrating how to create a supply chain layout using in-toto's model classes and convenience methods.

Signed-off-by: DarikshaAnsari <img_2021021@iiitm.ac.in>
@DarikshaAnsari
Copy link
Contributor Author

@adityasaky @lukpueh PTAL !!

@lukpueh
Copy link
Member

lukpueh commented May 15, 2024

Cool, thanks! And btw, here's a preview of the RTD build: https://in-toto--748.org.readthedocs.build/en/748/examples.html#

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this looks very nice! I have a few high-level comments:

  • Please reverse the order of "layout creation example" and "parameter substitution". IMO the basic example should come before the more specific example.
  • The "Example Usage" under "Using Substitution in Inspections" actually shows Steps. This needs to be changed.
  • I think it would be useful to mention all fields in the layout that support substitution (see verifylib.substitute_parameters). We don't need to show an example for each.
  • It might be helpful to point out how substitution parameters can be passed to the verification API

Signed-off-by: Dariksha <img_2021021@iiitm.ac.in>
@lukpueh
Copy link
Member

lukpueh commented May 21, 2024

  • It might be helpful to point out how substitution parameters can be passed to the verification API

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants