Convert wiki to pdf - SIMLabHAW/SIMLab-Emergency-Simulator GitHub Wiki

This page provides a tutorial on how to convert this wiki to a PDF format file.


Direct download

You can download a PDF file that was already generated following the procedure shown in this page. Please be aware that the file might be outdated if further changes to the wiki were done after this PDF was generated.

  • To download the PDF file, click here. (File created on 15-Mar-19)

Convert wiki to PDF tutorial

Converting a github wiki to a PDF file is not a simple goal to accomplish. There are different ways of doing it, each one a little bit different and rather complicated at times. However, to facilitate this procedure for you, we put together a tutorial that exemplifies this process in the simplest form we could find.

1) Download Git and install it by following the setup wizard.

centered image

2) Download the installer of Node.js and install it by following the setup wizard.

centered image

3) Open command window:

  • For Windows users type 'command prompt' in the windows search
  • For Mac users open the 'Terminal' application

4) Install the Wkhtmltopdf tool for converting the wiki to html. For that, type the following in the command prompt:

npm install -g github-wikito-converter

5) Clone the SIMLAB-Emergency-Simulator wiki repository, by typing the following in the command prompt:

git clone https://github.com/SIMLabHAW/SIMLab-Emergency-Simulator.wiki.git

6) After step 5, a folder named 'SIMLab-Emergency-Simulator.wiki' will have been created in the directory shown in the command prompt line.

centered image

7) In the command prompt convert the wiki to a html document, by typing:

gwtc SIMLab-Emergency-Simulator.wiki

8) After step 7, a html document will have been created in the same folder as the cloned wiki. Go to this website and upload the html file (probably named 'Documentation.html').

9) Once the html document is uploaded to the website, it will convert to PDF. Simply click on it to download the PDF file.


OBS: To ensure that the 'Home' page of this wiki is included in the PDF, an extra home page named 'Home-page' is created. This has to be done because the tool considers the original 'Home' page as not part of the content and ignores it. Therefore, it is crucial to not delete and always update both 'Home' and 'Home-page' in this wiki.

 

⚠️ **GitHub.com Fallback** ⚠️