2023-12-22 08:36:42 -05:00
---
title: 📝 Documentation Guidelines
2023-12-28 17:10:06 -05:00
description: Learn how to write and format documentation for LibreChat.
2023-12-22 08:36:42 -05:00
weight: -9
---
2023-06-11 11:18:32 -04:00
# Documentation Guidelines
2023-05-09 13:47:14 -04:00
2023-07-01 20:11:37 -04:00
This document explains how to write and format documentation for LibreChat.
## New Documents
- Use lowercase letters and underscores to name new documents (e.g. `documentation_guidelines.md` ).
2023-12-22 08:36:42 -05:00
- For new features, create new documentation and place it in the relevant folder/sub-folder under `../docs` .
- If the feature adds new functionality, add it to the feature section of the main `README.md` as well as in `../docs/index.md` .
- When you create a new document, **you need to add it to two table of contents:**
- in `README.md`
- and in the `index.md` file in the folder where your doc is located
2023-07-01 20:11:37 -04:00
2023-12-22 08:36:42 -05:00
## Markdown Formatting
2023-07-01 20:11:37 -04:00
- Use `#` , `##` , and `###` for headings and subheadings.
- Use `#` for the title of the document.
- Use `##` for the main sections of the document.
- Use `###` for the sub-sections within a section.
2023-12-22 08:36:42 -05:00
- Use `**` to make text **bold** to highlight important information (do not use in place of a heading).
2023-07-06 17:41:22 -04:00
- Use relative paths for links to other documents.
2023-07-01 20:11:37 -04:00
- You can use HTML to add more features to a document.
2023-12-22 08:36:42 -05:00
- By default the title indexed by mkdocs will be the first heading. You can override this by adding metadata at the top of your document:
```bash
---
title: Document Title
2023-12-28 17:10:06 -05:00
description: This description will be used in social cards
2023-12-22 08:36:42 -05:00
weight: 0
---
```
- Setting the weight in the document metadata will influence its position in the table of contents. Lowest weight are placed first. Not setting it will default to `0` . When multiple docs have the same weight it sorts in alphabetical order.
2023-07-01 20:11:37 -04:00
## Important Notes
- **⚠️ Keep it organized and structured⚠️ **
- Do not add unrelated information to an existing document. Create a new one if needed.
2023-12-22 08:36:42 -05:00
- All assets should be uploaded in the document from GitHub's webui
2023-07-01 20:11:37 -04:00
- **Before submitting a PR, double-check on GitHub that everything is properly displayed and that all links work correctly.**
2023-07-06 17:41:22 -04:00

2023-07-01 20:11:37 -04:00
## Tips
- You can check the code of this document to see how it works.
- You can run MKDocs locally to test bigger documentation changes
- You can ask GPT or Bing for help with proofreading, syntax, and markdown formatting.
---
### Example of HTML image embedding:
< p align = "center" >
< a href = "https://discord.gg/NGaa9RPCft" >
2023-07-06 17:41:22 -04:00
< img src = "https://github.com/danny-avila/LibreChat/assets/32828263/45890a7c-5b8d-4650-a6e0-aa5d7e4951c3" height = "128" width = "128" >
2023-07-01 20:11:37 -04:00
< / a >
< a href = "https://librechat.ai" >
2023-07-06 17:41:22 -04:00
< h3 align = "center" > LibreChat< / h3 >
2023-07-01 20:11:37 -04:00
< / a >
2023-07-06 17:41:22 -04:00
< / p >