Changes made to the main branch here are pushed to https://docs.immy.bot/ automatically.
Clone this repo then open the folder in VS Code.
VS Code will recommend certain extensions when opening it the first time, we recommend you install these.
You will also need to get Yarn and Vitepress installed locally.
Yarn: https://classic.yarnpkg.com/en/packages VitePress: https://vitepress.dev/
You can do this by running the following commands in an elevated terminal, assuming that you have NPM installed locally.
npm -add -D vitepress
npm install --global yarn
To host locally, use a terminal and navigate to your GitHub repo clone Example: CD C:\users<username>\documents\github\ImmyBot-Documentation Once in the root directory for the repo clone, run:
yarn docs:dev
There will be a link to the localhost URL in your terminal, by default it is: http://localhost:5175/
Save pages as you edit them, they will be automatically updated in your browser. Any changes made to /.vitepress/config.mts will cause the instance to restart locally.
immybot-documentation/
├── Documentation/ # Informational files for the documents website
│ ├── Administration/
│ ├── AdvancedTopics/
│ ├── CoreFeatures/
│ ├── GettingStarted/
│ ├── HowToGuides/
│ ├── Integrations/
│ ├── References/
│ ├── Templates/
│ ├── Troubleshooting/
| └── FAQ.MD
├── .vitepress/ # Vitepress config file for navigation
| └──config.MTS
└──Index.md # Landing Page
- Copy the appropriate template into the appropriate folder in the repo. Templates are located in /Documentation/Templates
- The document needs to be put in the same folder that people will navigate to. IE if you're writing a howto document it needs to go into /Documentation/HowToGuides
- Rename this file, file extension must be .md
- You need to name the file to the document that your writing. IE if the document is How To Log Into Immybot, you need to name it HowToLogIntoImmybot.md
- Edit this file with the appropriate information, processes, best practices etc
- Once complete save the file.
- Edit the file /.vitepress/Config.mts file
- Find the appropriate section that the document needs to be displayed in
- Copy and paste in that same section, and rename it accordingly
- The 'text:' column should be the title of the document
- The link needs to be the absolute file path without .md at of the filename
- Save this file
- Test your changes
- Commit and push your changes to the PR
- If everything is satisfactory the changes will be merged into the main branch