@@ -31,20 +31,23 @@ 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
34+ Rendering the tutorial
3535-----------------------------
3636
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.
37+ To render the tutorial (i.e. convert the markdown to html), you have two options:
4038
41- ### Prerequisites
39+ 1 . Serve rendered files on the fly using a web server that has php installed
40+ 2 . Generate static html files that you can view locally or put on a server
41+
42+ For either of these options, you'll need php and a patch'ed daux.
43+
44+ ### PHP
4245
43461 . Make sure [ PHP] ( http://php.net/downloads.php ) is installed (Daux is written
4447 in PHP)
4548 1 . Both the ` php_mbstring ` and ` php_openssl ` extensions need to be enabled
4649 2 . The ` phar.readonly ` setting needs to be set to ` Off ` (to be able to
47- rebuild Daux)
50+ rebuild Daux)
48512 . Make sure [ Composer] ( https://getcomposer.org/ ) is installed, a php dependency
4952 manager that Daux uses
5053
@@ -69,15 +72,31 @@ tweaks needed for this tutorial.
6972 * And then copy the newly made ` bin/daux.phar ` to the base directory so you
7073 don't accidently use the old one
7174
72- ### Using Daux to generate the tutorial
75+ ### Using Daux to serve rendered files on the fly
76+
77+ Once you've completed the above, follow the instructions on the daux site
78+ for how to [ run daux using a web server] ( https://github.com/justinwalsh/daux.io/blob/master/README.md#running-remotely ) .
79+
80+ As a simple option considering you have php installed, you can also use php's
81+ built in development web server if you just need to locally see what things
82+ look like:
83+
84+ 1 . In the ` daux.io ` directory, edit ` global.json ` so that the ` docs_directory `
85+ option points at your VulkanTutorial directory
86+ * ` "docs_directory": "../VulkanTutorial", `
87+ 2 . In the ` daux.io ` directory, run
88+ * ` php -S localhost:8080 index.php `
89+ 3 . Type ` localhost:8080 ` in your web browser URL bar and hit enter. You should
90+ now see the VulkanTutorial front page.
91+
92+ ### Using Daux to statically generate html files
7393
7494Assuming the daux.io and VulkanTutorial directories are next to each other, go
7595into the VulkanTutorial directory and run a command similar to:
76- ` php ../daux.io/generate -s . -d out -f html ` .
96+ ` php ../daux.io/generate -s . -d out ` .
7797
7898It 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.
99+ option tells Daux the source material is in the current directory.
81100
82101License
83102-------
0 commit comments