There are two options for opening this wiki - however, Docker Container is recommended for easy deployment across platforms.
Please note that CTRL+C will end the session on either method. Use another terminal tab if necessary.
-
Download Docker, and ensure it is running.
-
At the root project directory, build the Docker image:
docker build -t ubuntu-wiki-image .
Note: Building the image may take a while if it is your first time.
- Using this image, create and run a Docker container allowing for port-forwarding and mounting the project files:
docker run --rm -it --init -p 8000:8000 --name docs-wiki-container -v .:/Wiki ubuntu-wiki-image
- Open the provided address in browser or use
open
.
Note: You may run into an error when you try to run if you did not close your last container properly. Open the collapsible below if this happens.
docker daemon error guide
Your error will look something like this:
docker: Error response from daemon: Conflict. The container name "/docs-wiki-container" is already in use by container "<<RANDOMLETTERS&NUMBERS>>". You have to remove (or rename) that container to be able to reuse that name.
To fix, run the docker ps -a
to list all active containers.
Then either remove
or stop
the container(s) that you want with their CONTAINER_ID
: to remove an idle container, use docker rm CONTAINER_ID
and to stop an active container, use docker stop CONTAINER_ID
.
After you run the appropriate command(s), attempt to build and run again.
Note for MacOS users: You may experience errors while using
pip install
. Open the collapsible below if needed or skip to step 1 if this does not apply to you.
pip error guide
-
Install Python if needed
If, in the past, you installed Xcode through the terminal, you already have Python3.
Otherwise download through the official website, curl it or
brew install python
. -
Create a python virtual environment within your project directory
Navigate to your project directory.
cd /XXXX/YYYY/Wiki/wiki-site
- In your project directory, create the virtual environment called
venv
with
python3 -m venv venv
- Activate
venv
using
source venv/bin/activate
- Add the following code to your .gitignore file to ensure you do not have ten thousand unstaged changes:
wiki-site/site/
/build/
/dist/
wiki-site/venv/
wiki-site/venv/bin/
wiki-site/venv/include/
wiki-site/venv/lib/
-
Go to Step 1 below and start installing dependencies.
When you are finished browsing the wiki, exit/deactivate the virtual environment with
deactivate
.
pip install mkdocs
pip install mkdocs-material
pip install mkdocs-glightbox
pip install mkdocs-git-revision-date-localized-plugin
Note for Windows users: You may need to prepend
python3 -m
to themkdocs
commands below.
Switch to the directory with the mkdocs.yml
file with
cd wiki-site/
Then execute the following:
mkdocs build
mkdocs serve
If you run into trouble here, try deactivating and reactivating your virtual environment.
Access the pages through the browser through localhost:8000.