@@ -11,7 +11,7 @@ patch is based on commit `d45ccff`.
1111Use issues and pull requests to provide feedback related to the website. If you
1212have a problem with your code, then use the comments section in the related
1313chapter to ask a question. Please provide your operating system, graphics card,
14- driver version, source code, expected behaviour and actual behaviour.
14+ driver version, source code, expected behaviour and actual behaviour
1515
1616Changing code across chapters
1717-----------------------------
@@ -31,6 +31,54 @@ using the `incremental_patch.sh` script. Run it like this:
3131* Clean up the ` base_code_fixed.cpp ` and ` patch.txt ` files.
3232* Commit.
3333
34+ Generating the tutorial
35+ -----------------------------
36+
37+ To generate the tutorial, run ` daux.phar ` against your copy of the
38+ documentation. Doing this requires installing daux and patching it with some
39+ tweaks needed for this tutorial.
40+
41+ ### Prerequisites
42+
43+ 1 . Make sure [ PHP] ( http://php.net/downloads.php ) is installed (Daux is written
44+ in PHP)
45+ 1 . Both the ` php_mbstring ` and ` php_openssl ` extensions need to be enabled
46+ 2 . The ` phar.readonly ` setting needs to be set to ` Off ` (to be able to
47+ rebuild Daux)
48+ 2 . Make sure [ Composer] ( https://getcomposer.org/ ) is installed, a php dependency
49+ manager that Daux uses
50+
51+ ### Clone, patch, and rebuild daux
52+
53+ 1 . Clone [ daux] ( https://github.com/justinwalsh/daux.io )
54+ * ` git clone https://github.com/justinwalsh/daux.io.git `
55+ 2 . Make a new branch at the older revision that the VulkanTutorial patch is
56+ against:
57+ * ` git checkout d45ccff -b vtpatch `
58+ * Making a new branch isn't strictly necessary, as you could reset ` master ` ,
59+ but this keeps master intact.
60+ 3 . Copy over the ` daux.patch ` file into the daux.io directory, make sure line
61+ endings are UNIX style (in case you're using Windows), and apply the patch.
62+ It should apply cleanly.
63+ * ` git am daux.patch `
64+ 4 . Run composer in the daux.io directory so that it downloads the dependencies
65+ Daux needs in order to be built
66+ * ` composer install `
67+ 5 . Rebuild Daux
68+ * ` php bin/compile `
69+ * And then copy the newly made ` bin/daux.phar ` to the base directory so you
70+ don't accidently use the old one
71+
72+ ### Using Daux to generate the tutorial
73+
74+ Assuming the daux.io and VulkanTutorial directories are next to each other, go
75+ into the VulkanTutorial directory and run a command similar to:
76+ ` php ../daux.io/generate -s . -d out -f html ` .
77+
78+ It should genenerate all of the documentation into the ` out ` directory. The ` -s `
79+ option tells Daux the source material is in the current directory. ` -f ` controls
80+ the output format.
81+
3482License
3583-------
3684
0 commit comments