Contributing
Guidelines for contributing documentation
Bookstack Basics:
- Documentation in Bookstack is organized into Books.
- Each Book contains Pages which contain documentation.
- Pages within a book can be grouped into Chapters.
- Books which are related can be grouped into Shelves
- Books can be placed on multiple shelves
Vector Bookstack Structure:
Adhere to the following structure when contributing documentation:
- Shelf - Team
- Book - Project
- Chapter - Subproject or Topic Category
- Page - Specific subject
For example:
Shelf → Book → Chapter → Page : AI Infra Team → Vec Inf Project → Getting Started → Slurm Basics
Additional Organizational Tips:
- If a project is shared across multiple teams, then the book for that project can be placed on both of the shelves for each team.
- Books are private by default.
- Books should only be made public if they are intended to be shared with those who are not Vector proffessional staff and do not contain sensitive information.
- If a book is made public, all the pages and chapters within that book are also made public. You can override this by explicitly editing the permissions of a page to make it private again.
- Alternatively you can leave a book as private, and set specific pages within the book to be public
- Team Shelves should be made public.
- Making a shelf public does not make the books within that shelf public.
Editing Tips
Choosing an Editor
The default editor for this Bookstack wiki has been set to Markdown. If you prefer a more traditional WYSIWYG editor (What You See Is What You Get) similar to microsoft word then at then when editing a page select the "Editing Page" or "Draft Saved ..." button at the top center of the screen and select "Switch to WYSIWYG Editor".
Callouts:
Althoug similar, Bookstack does not use Github Flavoured Markdown (GFM) which might be what most users are used to. The admins of this bookstack have added custom callouts that match the look and style of GFM callouts.
<p class="callout note"> Github Style Note Callout</p>
<p class="callout tip"> Github Style Tip Callout</p>
<p class="callout important"> Github Style Important Callout</p>
<p class="callout warn"> Github Style Warning Callout</p>
<p class="callout caution"> Github Style Caution Callout</p>
Github Style Note Callout
Github Style Tip Callout
Github Style Important Callout
Github Style Warning Callout
Github Style Caution Callout
If these stop working, contact a Wiki administrator and ask them to look at the "Custom HTML Header" for the bookstack. You can also revert to the default callout styles provided by bookstack.
<p class="callout info">An info message</p>
<p class="callout success">A success message</p>
<p class="callout warning">A warning message</p>
<p class="callout danger">A danger message</p>
An info message
A success message
A warning message
A danger message
Callouts with Code
Since bookstack forces you to use html tags to use custom callouts, placing code blocks within these callouts requires special care. The back ticks (`) or triple backtick (```) will not be recognized within the callout. To circumvent this use the <div> tag instead of <p> and <pre> and <code> tags around your code. You can use <!-- and --> to avoid a blank line when putting the first line of code on the line after the code tag. Eg.
<div class="callout important">
Important note with some code.
<div style="height: 0.5em;"></div> </*!-- To insertInsert a bit of whitewhitespace space*/-->
<pre><code class="language-python"><!-- Continue on next line
-->for i in range(2):
print("hello")
</pre></code>
</div>
for i in range(2):
print("hello")