* Add development environment setup in the readme * Add CONTRIBUTING.md and move the info from readme. * remove contubuting info * rewording * md layout got changed * use () instead of "" for optional
51 lines
1.6 KiB
Markdown
51 lines
1.6 KiB
Markdown
# Contributing
|
|
|
|
If you would like to contribute to the wiki, please [open a pull request](https://github.com/GeyserMC/GeyserWiki/pulls).
|
|
|
|
### Creating a new page
|
|
|
|
Most documentation is in the `docs` folder, where you can add new pages or edit the current ones.
|
|
If a new page is being added make sure you add its page properties at the beginning of the file.
|
|
Make sure that the file extension is .md - in this case `pagetitle.md`.
|
|
|
|
### Example page layout
|
|
|
|
```md
|
|
---
|
|
title: Page title
|
|
page_sidebar: false (optional)
|
|
---
|
|
|
|
# Page title
|
|
This is an example page.
|
|
```
|
|
|
|
### Adding page to the sidebar
|
|
|
|
Once you have added the file you can add a sidebar link. All sidebar links + sub links are in the _data/toc.yml file.
|
|
|
|
### Example sidebar structure
|
|
|
|
```
|
|
- title: Page Title Documentation
|
|
url: "page/"
|
|
links:
|
|
- title: "Pagetitle sub link"
|
|
url: "page/pagetitle/"
|
|
children:
|
|
- title: PageChild sub link
|
|
url: "page/pagetitle/#headerLink"
|
|
```
|
|
|
|
### GeyserWiki development - Local deployment on Windows.
|
|
|
|
* Download and install Ruby using the Ruby+Devkit from https://rubyinstaller.org/downloads/.
|
|
|
|
* Once installed, run 'ridk install' in console to open the RubyInstaller.
|
|
For this usecase, it is recommended to choose the third option, "MSYS and MINGW". After that, the Ruby installation is completed.
|
|
|
|
* Open the GeyserWiki folder in VScode. There, open a terminal to install the bundle using the 'bundle install' command.
|
|
Installing it for the first time can take a while.
|
|
|
|
* Once installed, you can start the webserver locally with the 'bundle exec jekyll serve' command in the VSC terminal.
|