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

docs: further guidelines around adding extra scripts and assets #19

Merged
merged 9 commits into from
Jun 26, 2024

Conversation

Jayclifford345
Copy link
Collaborator

Added:

  • Steps for inserting custom scripts and assets
  • Edited readme to help separate custom tutorials vs docs generated tutorials

@Jayclifford345 Jayclifford345 requested a review from jdbaldry June 25, 2024 10:09
Copy link
Member

@jdbaldry jdbaldry left a comment

Choose a reason for hiding this comment

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

Nice info, thanks for documenting it

README.md Outdated Show resolved Hide resolved
docs/transformer.md Outdated Show resolved Hide resolved
docs/transformer.md Outdated Show resolved Hide resolved
If your tutorial requires scripts or extra files, make sure to manually add them to the tutorial directory in the Killercoda repository. For example, if your tutorial requires a script to run:

1. Add the bash script to the tutorial directory in the Killercoda repository. See the [what-is-loki](../loki/what-is-loki/) tutorial for an example.
2. Add the script to the `scripts` field in the `index.json` file:
Copy link
Member

Choose a reason for hiding this comment

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

You can use repetitive numbering and let the renderer auto increment for you which makes it easier to update steps: https://grafana.com/docs/writers-toolkit/write/markdown-guide/#numbered-lists

I'm a bit confused by the example because it doesn't reference the scripts field. JSON is very hard to demonstrate in the docs though and you have to be very verbose to help a user: https://grafana.com/docs/writers-toolkit/write/style-guide/write-for-developers/#partial-code-examples so I understand there may not be much you can do

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is really good point let me flesh this out a little better!

docs/transformer.md Outdated Show resolved Hide resolved
Jayclifford345 and others added 4 commits June 25, 2024 17:19
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Copy link
Member

@jdbaldry jdbaldry left a comment

Choose a reason for hiding this comment

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

Generally looks good to me, we can always iterate in the future if we need :)

@Jayclifford345 Jayclifford345 added transformer Issues for docs to killercoda tool docs labels Jun 26, 2024
Copy link
Member

@jdbaldry jdbaldry left a comment

Choose a reason for hiding this comment

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

Nice, thanks for adding the extra context

docs/transformer.md Outdated Show resolved Hide resolved
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
@Jayclifford345 Jayclifford345 merged commit 45d6aa4 into staging Jun 26, 2024
2 checks passed
@Jayclifford345 Jayclifford345 deleted the further-docs-improvments branch June 26, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs transformer Issues for docs to killercoda tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants