Skip to content

EDHandbook/EDHandbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ED Handbook

The new central guide webpage for the video game Elite: Dangerous. This is the project repository for the Handbook project. A New Website Name and Logo will be chosen later on by the development community.

Getting Github Desktop and an Account

Let's get some software downloaded and an account for Github. If you want a code-free environment to upload and download stuff from our Github Repository, instead of doing it manually, one great option is to use Github Desktop. You just need to understand some basic functions

After you've signed up to a Github Account, please message me your username. Usernames are case sensitive so please make sure you have the right username.

Downloading Project into Local Environment

You'll need to have the latest installations after being invited into the Repository:

Let's open up Github Desktop and find the Repository to "Clone". Clone just means to download the project from this repository down into your local folder as is, without the hosting environment.

From File, go to Clone Repository. Choose from ED-Handbook and the folder of the repository and clone the project. You may save this to any file that is easy to access. A recommendation is to save it directly under this path:

C:\Users\yourusername\

Setting Up the Local Environment

Let's setup the local environment. Let's open up a command line. For starters, command line will open up to this path C:\Users\yourusername\.

  1. Let's use dir to check that if our repository is cloned correctly. You should find "ED-Handbook" within the list of other folders in the same path.
  2. Excellent, let's then use cd ED-Handbook to enter into the folder of our project.
  3. Then, we need to use Python's PIP command to install Material by MKDocs. Use pip install mkdocs-material and wait for the package to be installed.

It is in good practice to setup a virtual environment in case we need to control dependencies within our project. If you are not a programmer and is solely using this to edit markdown files, you can skip to step 6.

  1. Use python -m venv venv to create a new environment.
  2. Then we need to activate the Virtual Environment's Script. Use .\venv\Scripts\activate\.
  • If you run into an Execution Policy error, we'll do the following to get sorted. Use Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser and then Press "Y" to continue. Rerun the activation program to run the virtual environment. This command will grant access to execute scripts to run on the current user instance.
  1. Great, you should have an environment setup for this project, you can now begin editing. Let's open up Visual Studios by using the command code .

This next step is for developers who have gone and did steps 4 & 5. If you are not a programmer and is solely using this to edit markdown files, you can skip to step 7.

  1. In Visual Studios Code, we'll launch the Virtual Environment again just to check that things are in order, again, if you run into Execution Policy errors, refer to Steps 4 & 5. Use .\venv\Scripts\activate\.

  2. Let's open up a new Terminal from within Visual Studios. This can be found at the top of the program. In this terminal, you should see the path be set to C:\Users\yourusername\ED-Handbook\. Let's use dir to make sure everything is right before using mkdocs serve to launch the project into your localhost.

Awesome! That should be it.

Deploying Changes into Local Environment

Deploying changes you made to reflect how the page should look from your localhost address is as easy as saving the document. mkdocs serve will automatically deploy the changes and reflect this into your localhost.

If you add a new Markdown file and do not see the file in the navigations, we would need to address the file in the project's only .yml file. We call this the "YAML" file. Head down to the Nav: section and add a new Navigations Page Name and link it to the file name of that markdown file.

For example, if a page about Exploration was made, the markdown file is called "exploration.md". If you are unsure about how to point to the page name, you may put the YAML file into the same level as the other home and about page line. The developers will integrate it later.

  • If you wish to directly add these pages into their subsection, please let one of the developers know and so we can help you out.
Nav:
    - Home: index.md
    - About: about.md
    - Guides:
        ...
        ...
    
    - Exploration : exploration.md

Commiting Changes into the Repository

For now, until the website's been hosted, you may commit changes into the Repository. Let's open Github Desktop. Github Desktop will reflect any saved changes you made to a file or several files. Once all of the changes are reviewed, add a commit title, and a small comment if needed.

Then click on Commit to main on the very bottom of the page to commit the changes into the repository. And then near the top, we will press Push to Origin to push the changes into the website.

Make sure to save every changes you made in your local environment, including the YML file!

Markdown Resources

There are some markdown resources you can use to help format.

  • StackEdit.io is a great place to practice markdown format.
  • Anywhere on Discord is great too! The messages are pretty much written in markdown format.

About

The new central guide webpage for the video game Elite: Dangerous.

Topics

Resources

Stars

Watchers

Forks

Contributors