This is the documentation for PCGen.
The original documentation, in HTML format, has been converted to Markdown, which is much easier to edit.
The Markdown-formatted text is compiled using Hugo, an excellent "static site generator". The output is a complete HTML website which can be browsed from a hard drive, or uploaded to a webserver.
Install Hugo:
Install git:
Download a copy ("clone") of the
pcgen-docsrepository to your computer.i.e. to make a copy to C:/pcgen-docs/, you would do:
git clone --recursive https://github.com/PCGen/pcgen-docs.git C:/pcgen-docs/Note the
--recursiveoption is required to download the website theme, which is a "sub-module" of the main repository.
Start the Hugo test server:
Go to the directory where you cloned the
pcgen-docsrepository:cd G:/pcgen-docsRun Hugo in server mode:
hugo serverOpen a web browser to
http://localhost:1313Try changing a file in
content/. Your web browser will automatically refresh, showing the changes!
Compile the website, ready to upload to a webserver, or to include with PCGen:
Go to the directory where you cloned the
pcgen-docsrepository:cd G:/pcgen-docsRun Hugo, putting the output into folder
G:/compiled-website:hugo --stepAnalysis -d G:/compiled-website/The
--stepAnalysisshows you how long each step took (in seconds), and how much RAM was used.Find
G:/compiled-website/index.htmland double click it. It will open in a web browser. It should look exactly the same as the test server!