Skip to content

Adding a new Wiki Page

WARNING

Contributing to the wiki is currently limited to Alderon Games staff and selected community members. If you are interested in contributing, please create a github account and wait for further instructions.

There are two primary ways to add a new page to the wiki. For both methods, you will need to have a GitHub account and be logged in. If you do not have a GitHub account, please create one.

INFO

Please make sure to follow the Contributing Guidelines if you want to contribute to the wiki.

Here is a video tutorial on how to add a new page to the wiki using the GitHub web interface:

Using the GitHub Web Interface

This is the easiest way to add a new page to the wiki as it requires no additional software or setup. There are a few different steps involved in this process, so make sure to follow them carefully.

In order to add a new page to the wiki using the GitHub web interface, follow these steps:

Adding a New Page

  1. Navigate to the server-wiki repository on GitHub under the Alderon-Games organization. You can find the repository here.

WARNING

Make sure you are on the develop branch before proceeding. You can only create a new page/PR from the develop branch.

contribution-branch

  1. Browse through the directory to find the appropriate location for your new page. For example, if you want to add a new page under the guide section, you would navigate to the guide directory.

  2. Once you have found the appropriate location, click on the Add file button and then select Create new file. You can also upload an existing file if you have one using the Upload files button.

contribution-add-file

  1. Name the file with the appropriate name, ensuring that it ends with .md. For example, if you are adding a new page about the server setup, you could name the file server-setup.md.

DANGER

Please make sure the extension is .md as this is the markdown file extension.

contribution-create-file

  1. Add all the images and other resources (to the imgs folder) that you want to include in the new page. You can do this by dragging and dropping the files into the GitHub interface. You can also use the Add file button to upload the files.

  2. Add the content of the new page in the markdown format. You can use the markdown editor provided by GitHub to preview the content as you write it. You can also use the markdown guide provided by GitHub to learn more about markdown.

TIP

There are some additional components that you can add to your markdown file to make it more interactive. You can find more information about these components in the Wiki Components page.

  1. Once you have added the content, press on the Commit changes... button at the top right of the page.

  2. Add a commit message that describes the changes you have made. For example, you could write Add new page about server setup. (OPTIONAL: You can also add a description to provide more context about the changes you have made.)

contribution-pr

  1. Ensure that you have selected the Create a new branch for this commit and start a pull request option. This will create a new branch and open a pull request for your changes.

WARNING

Make sure you are creating a new branch for your changes. This will help in keeping the changes separate from the main branch until they are reviewed and merged.

  1. Press the Propose changes button to create the pull request. This will open a new page where you can review the changes you have made and create the pull request.

  2. That's it for this step! You have successfully added a new page to the wiki using the GitHub web interface. Now, you can wait for the changes to be reviewed and merged by the maintainers.

Modifying Configuration Files

This step only applies while adding a new page or modifying the name of a page. This step ensures that your page is actually displayed in the sidebar where you want it to be.

  1. Similar to the previous step, navigate to the server-wiki repository on GitHub under the Alderon-Games organization. Make sure you are on the develop branch.

  2. You can find the config.json file in the root directory of the repository. Click on the file to open it.

  3. Click on the pencil icon at the top right of the page to edit the file.

contribution-edit

  1. Add the new page to the appropriate section in the config.json file. For example, if you are adding a new page under the Guides section, you would add the new page to the Guides section (in this case, Server Setup).
diff
{
    ...
    "themeConfig": {
        ...
        "sidebar": [
            ...
            {
                "text": "Guides",
                "items": [
                    ...
+                   { "text": "Server Setup", "link": "/guide/server-setup" },
                    ... 
                ]
            },
            ...
        ],
        ...
    },
    ...
}

WARNING

Please make sure the link property is the same as the name of the file you created in the previous step. The path should be from the main directory of the repository.

You do not need to add the .md extension to the link property.

  1. Once you have added the new page to the config.json file, press on the Commit changes... button at the top right of the page.

  2. Similar to the previous step, add a commit message that describes the changes you have made. For example, you could write Add new page to the sidebar. (OPTIONAL: You can also add a description to provide more context about the changes you have made.)

  3. Ensure that you have selected the Create a new branch for this commit and start a pull request option. This will create a new branch and open a pull request for your changes. Then, press the Propose changes button to create the pull request.

Using VSCode and Git

This method requires you to have VSCode and Git installed on your system. If you do not have these installed, please download and install them before proceeding.

In order to add a new page to the wiki using VSCode and Git, follow these steps:

Cloning the Repository

  1. Open VSCode and open a terminal window by selecting View > Terminal from the menu.

  2. In the terminal window, navigate to the directory where you want to clone the repository. You can do this by using the cd command followed by the path to the directory. For example, if you want to clone the repository to the Documents directory, you would do:

bash
cd Documents
  1. Once you are in the appropriate directory, we need to find the URL of the repository. You can find the URL by clicking on the Code button on the GitHub repository page and copying the URL.

contribution-clone

  1. Once you are in the appropriate directory, you can clone the repository using the following command in the terminal window. Replace [repository-url] with the URL of the repository:
bash
git clone [repository-url]
  1. After cloning, navigate into the [repository-name] directory. Replace [repository-name] with the name of the cloned repository:
bash
cd [repository-name]

Adding a New Page

  1. Once you are in the server-wiki directory, you can create a new branch for your changes. This will help in keeping the changes separate from the main branch until they are reviewed and merged.
bash
git checkout -b new-page
  1. Create a new markdown file in the appropriate directory. You can do this by using the touch command followed by the name of the file. For example, if you want to create a new page about the server setup, you could type touch guide/server-setup.md.

TIP

You can also create the directory and files using the file explorer in VSCode. Right-click on the directory where you want to create the new file and select New File. Name the file with the appropriate name and add the .md extension.

bash
touch guide/server-setup.md
  1. Add all the images and other resources (to the imgs folder) that you want to include in the new page. You can do this by dragging and dropping the files into the imgs folder in the VSCode file explorer.

  2. Add the content of the new page in the markdown format. You can use the markdown editor provided by VSCode to preview the content as you write it. You can also use the markdown guide provided by GitHub to learn more about markdown.

TIP

There are some additional components that you can add to your markdown file to make it more interactive. You can find more information about these components in the Wiki Components page.

  1. Make sure the changes are saved. Now, we need to commit the changes to the repository. Don't forget to modify the configuration files as mentioned in the previous section to ensure your page is displayed in the sidebar.

  2. Add the changes to the staging area using the following command:

bash
git add .
  1. Commit the changes to the repository using the following command. Replace [commit-message] with a message that describes the changes you have made:
bash
git commit -m "[commit-message]"
  1. Push the changes to the remote repository using the following command:
bash
git push origin new-page
  1. This will push the changes to the remote repository and create a new branch. You can now open a pull request on GitHub to merge the changes into the main branch.

  2. That's it for this step! You have successfully added a new page to the wiki using VSCode and Git. Now, you can wait for the changes to be reviewed and merged by the maintainers.

Footer Image

602f5a5