If you are looking to use Petal to simplify your technical documentation workflows, follow these instructions:
First you need to install Petal-bot GitHub app that will allow Petal to create PRs on your documentation repository, here's how to do that:
- Go to https://github.com/apps/petal-bot/
- Click on the install button

- (Optional) Select your documentation repository, by clicking on "Only select repositories " then select your repository from the drop down
- Click on "Install & Authorize"

- You will be redirected to https://petal.evolvedbinary.com/ once the install is successful
To let users suggest edits, add a link "Edit This Page" to Petal on each documentation page.
This link tells Petal which document to edit, where it’s stored, and which branch to update.
Add the following code to your documentation page:
<a href="https://petal.evolvedbinary.com?ghrepo=your-org/your-repo
&source=path-to-your-document.dita
&branch=main
&referer=https://your-docs.com/path-to-your-page.html">
<button>Edit this page...</button>
</a>Replace these placeholders:
your-org/your-repo: Your GitHub repository name (e.g., "my-org/my-repo").path-to-your-document.dita: The file location in your repository (e.g., "docs/my-doc.dita").main: The branch where the file exists (e.g., "main").https://your-docs.com/path-to-your-page.html: The URL of the documentation page.
Watch our talk at Declarative Amsterdam: https://www.youtube.com/watch?v=Ia5Vb-aA2jk
Contact us at petal@evolvedbinary.com