Skip to content

dev.ContributingToTheWiki

Thomas Mann edited this page Jan 14, 2024 · 7 revisions

Contributing to the Wiki

On this page we collect best practices on how to improve Tooll's documentation on the wiki.

Guidelines

Wiki pages should follow the following guidelines:

  • Page names should start follow this convention: dev.PascalScale.md (Please don't use hyphons "-").
  • Before creating new pages please make sure a page covering similar topic doesn't already exist.
  • Please don't create pages describing Operators because these are automatically created.
  • Avoid html formatting <br> unless necessary.

Use a proper editor

Working on the github website is okay for quick fixes, but for better ease of use, you should download the wiki and use Visual Studio Code: It has an awesome inline editor that also allows linking between pages:

Animation

To do so:

  1. In wiki click icon under "Clone this wiki locally"

image

  1. Open a git-interface like Fork

  2. Clone the repository (In Fork Ctrl+N)

  3. Select a target folder

  4. Clone

  5. Open Visual Studio Code

  6. File → Open Folder

  7. Open a file

  8. Toggle the preview icon to see a preview:

image

Best practices for Operator descriptions

  • Be short an concise

Summary statement

  • Start with a very short summary

Take this example from [SetContextVariable]:

Writes a float value to the context float variable dictionary.

Avoid intro statements like...

❌ This Operator does divide two ints

✔ Divides two integer values.

❌ This is the Operator that does ...

❌ A nice ...

✔ Give context if an operator is internal

An internal helper to ....

  • ⚠ Only add descriptions to operators you're absolutely sure you understand what it's doing. If in doubt ask @pixtur on discord. Always remember: An incorrect or misleading documentation is worse than no documentation.

Only add details the are not obvious:

❌ Radius sets the radius of the blob.

Formatting Operator descriptions

Since the wiki-documentation is directly used inside Tooll, we have to restrict the formatting to make it as readable as possible without markdown formatting. (Although eventually we should add markdown formatting for this).

An example for how the formatting should look like:

Headline
-------
Some description

- line A
- line B

Avoid images.

Clone this wiki locally