| navigation |
|---|
Welcome! This repo contains the contents of the (new) fortrabbit docs.
Found a typo or an error? Do you want to add something about your framework or service of choice? Do you run a 3rd party service or an open source project that can be integrated with fortrabbit? You are more than welcome to contribute.
Please find a good balance in the number of commits contained with a pull request. For small typos, just use one commit and one PR. For larger text changes, consider combining commits for readability.
---
reviewed: 2024-06-12 # Last reviewed date (and time)
title: # Long title with page
naviTitle: # short title for list views
navigation.excerpt: # additional details for list views
lead: blabla # large text shown at the beginning
navigation: true # lists this page with navigation
sidebar: craft-cms # shows meta data with
nextNav: true # will show
---Any code block should have a language defined. If applicable also define the file name like so ````php [info.php]. The following languages are installed: 'apache', 'js', 'json', 'php', 'shell', 'sql', 'ts', 'twig', 'vue', 'yml'. Use apache for.htaccess` & `.env` files. Use plain for anything else. Use `shell` not `bash` as the language label for terminal stuff.
Indent with two spaces.
- Plugins: Markdownlint
- Settings: Auto update Markdown links
See the .vscode folder.
- Plugins: Linter
- Templates: See templates folder
See the .obsidian folder.
Don't add tailing slashes to links.
Use relative links to local files including the full folder and file name. Example:
…if not see [here](2.guides/3.craft-cms/1.setup.md).Your editor should offer autocomplete for this. Also such links can be automatically updated when the file name changes. Make use of that to avoid dead links.
The content get's rendered by Nuxt Content using Navigation to structure content based on the given folder structure. Please be aware of that. The numbers in front of the folder and files names are for sorting the navigation. The folders are creating a navigation structure.
fortrabbit staff can run the fortrabbit docs locally to see documents rendered in the browser. See the instructions of the repo on how to integrate this.
There is currently no automatic deployment set up.
Those values will be replaced by JavaScript when users are logged in:
region: {{region}}
environment-id: {{app-env-id}}
app-env-name: {{app-env-name}}
app-name: {{app-name}}
It will dynamically show the correct code examples and dashboard links.
There are some Markdown Components (powered by Nuxt Content) to use:
:BlockLink{title="" path=""}This parses markdown inside the DIV. With the data-user attribute it checks if the user is logged in, links to the dashboard will be styled as buttons — use a verb to start them!
These help pages are often used to point clients to answers on common questions. That's why some topics are covered im much detail. Clients are asking for it. So instead of writing an answer in client support, one might just update the help pages and point the client to the new section.
While some implicit technical details are obvious to you, they might not be for the client. Explaining one acronym only with another acronym might not help. Sometimes it needs some more words.
- Open and close code blocks with ````shell` where shell is the language for syntax highlighting
- Try to keep code examples together in one block, avoid mixing paragraphs and code blocks
- Code blocks follow standard markdown formatting
- Show output only when necessary
- Output should be a comment
# - Use comments in between commands to explain what's going on
$to start a command- Start code examples right away
- PHP without
<?php - Bash without
#!/bin/bash
- PHP without
- Use sentence case in headlines
- Don't use too many headlines to structure text
- Available headlines in text: h2, h3, h4, don't go deeper
- Avoid "eg", otherwise choose one style to write it
- Keep lists readable (no sublists, etc)
- Text structure is important, but readability is even more important
- Use ASCII art to illustrate topographies and such things
- Don't use italic > it looks ugly, it's rendered by the browser not the font
- Don't use a paragraph for every sentence
- Write speaking links, not like so:
[here](http://somewhere)but so:[GitHub project](http…) - Don't bullshit. Avoid the use of marketing buzzwords
- Find the right balance between being general and being precise (aka Captain Obvious)
- Very detailed step-by-step articles are easy to follow but get outdated very quickly
- Don't use screenshots and images, use words and ASCII graphics
- Don't bury numbers (like prices and limits) in articles
- All those numbers must be managed in the "pricing" and the "specs" page
- Keep it DRY! Don't repeat yourself
- Have one SSOT, link to it
- Don't fully cover the same topic on different places, just link to the location
When creating new files:
- use dashes instead of spaces or low dashes for file names
- account —
profile,account - events
history,diary,log,activities - app URL
- app —
app,website,application - payment method
bc - cron job —
cron,cron job - dashboard —
control panel,console - fortrabbit
- docs —
documentation,handbook,help - HTTP —
http - HTTPS —
https - root path
document root,doc root - terminal
Terminal,shell,bash - URL —
Url,url
- use the same time-zone E V E R Y W H E R E when communicating times
- the communicated time-zone is UTC
- use relative times (an hour ago, a few seconds ago)
- Markup example:
<time datetime="2016-01-01 08:22:10 UTC" title="2018-01-01 08:22:10 UTC">A few minutes ago</time> - ms —
MS - s -
scds - m -
mins,min - h -
hrs
- 16 MiB —
mb, capital letters, a space between value and unit - 3 GiB
3078 MB< prefer a readable unit - 0 B
- 16 KiB
- 10k —
10,000 - times a value: ×,
×x
- €23 < without space char
- $23 < without space char
- add-on — add-ons,
Add-on,Add-On,AddOn - component
plan - main domain
- e-mail —
eMail,email,Email,E-Mail - free trial —
test flight,test drive - host —
server - a space char belongs before the unit
- MySQL —
MySql - OPcache —
OPCacheOpcache - node —
server - non-persistent storage —
storageless - payment details —
complete account,payment credentials - PHP requests —
requests - PHP response time —
response time - PHP —
Php - Scale —
upgrade - session time
- SFTP
- SSH Key —
pubkey,public SSH key - SSH
- SSL cert —
SSL certificate - storage —
webspace - Composer —
composer - macOS —
Mac OS X
Please do not use the following "bullshit" words:
- great
- awesome
- innovative
- game-changing
- empowering
- revolutionizing
When referencing a hypothetical person, such as "a user with a session cookie", use gender-neutral pronouns (they/their/them). For example, instead of:
- he or she, use they
- him or her, use them
- his or her, use their
- his or hers, use theirs
- himself or herself, use themselves