pcsx2/pcsx2/Docs
Mrlinkwii cd0b349496 GUI: update hyperlink in WX 2022-05-11 12:58:40 +01:00
..
Configuration_Guide docs: Hide PDF metadata from rendered markdown in github 2021-03-26 14:24:02 +01:00
.gitignore docs: Add script for generating PDFs from markdown, add usage info 2021-01-16 21:56:23 +01:00
Debugger.md Debugger: Modify hotkeys, add delete breakpoint context menu button 2021-07-15 14:01:09 +01:00
GPL.txt Introduce end-of-line normalization 2015-08-04 23:52:48 +02:00
GameIndex.md GameDB: upscaling fixes and documentation updates 2022-04-16 19:40:26 +01:00
License.txt PCSX2: PCSX2 1.6 Documentation Overhaul. (#3139) 2020-02-10 04:46:49 +01:00
PCSX2_FAQ.md GUI: update hyperlink in WX 2022-05-11 12:58:40 +01:00
README.md Misc: cleanup MD codacy issues 2021-03-13 02:00:18 +00:00
eisvogel.tex docs: Add latex template for generating PDFs 2021-01-16 21:56:23 +01:00
gen-docs.sh FPU: Remove FPU Compare Hack 2021-05-08 17:04:09 +02:00

README.md

Documentation Artifacts

  • Source Directory: /pcsx2/pcsx2/Docs
  • Release Directory: /pcsx2/bin/Docs

Docs should be written in the source directory first in an easily editable format. Currently, Markdown is the preferred format due to its simple markup and easy portability. GitHub's built-in preview functions are a huge benefit as well.

Visual Studio Code is a cross platform text editor/development platform that can handle Markdown syntax, plus extensions are available to enable in-editor previewing and PDF generation. However, this is not a requirement since other editors will support Markdown, and worst case GitHub supports editing Markdown files in-browser.

How to Generate

Setup

To generate the documentation artifacts into the release directory, you will require the following:

  • pandoc

    • Converts from Markdown to PDF
  • miktex or something similar that provides pdflatex

    • this is what generates the PDF file

Linux / MacOS

Consult pandoc's official documentation - https://pandoc.org/installing.html

Windows

In a PowerShell shell, run the following:

> iwr -useb get.scoop.sh | iex
> scoop install pandoc latex

If you prefer Chocolatey or using the installer, consult pandoc's official documentation - https://pandoc.org/installing.html

Usage

Run the following, this assumes you have access to bash, either by virtue of running on linux or through something like git-bash on Windows.

> ./gen-docs.sh

You can override the default output directory like so - OUT_DIR=<PATH> ./gen-docs.sh

Customizing Output

For generating the PDF's this popular template is used and has many features that could be useful https://github.com/Wandmalfarbe/pandoc-latex-template#usage reference it's documentation to take advantage of those if desired.