Skip to content

Commit 62c781a

Browse files
committed
comment out slides target
1 parent 90cf0af commit 62c781a

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

templates/course/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ The course template includes a single PreTeXt "book" that contains (as chapters)
99
You can build the course using
1010

1111
```bash
12-
pretext build web
12+
pretext build course
1313
```
1414

1515
and view it with
1616

1717
```bash
18-
pretext view web
18+
pretext view course
1919
```
2020

2121
Also included is the start of a slide deck. This is a single file in the `source/slides` folder. You could use this for all the slides in a course (as a single slideshow), or create separate slideshows. In that case, you might want to build those separate ones with something like,
@@ -24,6 +24,8 @@ Also included is the start of a slide deck. This is a single file in the `sourc
2424
pretext build slides -i source/slides/chapter2.ptx
2525
```
2626

27+
In either case, you will need to uncomment the "slide" targets inside `project.ptx`.
28+
2729
### Creating a landing page for multiple targets
2830

2931
Build the entire course with:
@@ -32,7 +34,7 @@ Build the entire course with:
3234
pretext build --deploys
3335
```
3436

35-
This will build both the course "book" and the slide deck. You can create a landing page with links to each of these automatically with the command,
37+
This will build the course "book" (and the slide deck if you uncomment that target in `project.ptx`). You can create a landing page with links to each of these automatically with the command,
3638

3739
```bash
3840
pretext deploy --stage-only

templates/course/project.ptx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99
<target name="print" source="main.ptx" format="pdf"
1010
output-filename="course.pdf" publication="publication.ptx" />
1111

12+
<!--
1213
<target name="slides" source="slides/slides.ptx" format="revealjs"
1314
publication="publication-slides.ptx" deploy-dir="slides"
1415
output-filename="index.html"/>
16+
-->
17+
<!--
1518
<target name="slides-annotated" source="slides/slides.ptx" format="revealjs"
1619
publication="publication-slides-annotated.ptx" deploy-dir="slides-annotated"
1720
output-filename="index.html"/>
21+
-->
1822

1923

2024

templates/course/source/slides/slides.ptx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- This is a sample slide deck to get started with. If you want the slides to be built, -->
3+
<!-- you must go to `project.ptx` and uncomment the slides targets (starting on line 12) -->
24

35
<pretext xmlns:xi="http://www.w3.org/2001/XInclude">
46
<!-- Include the docinfo common to the course, in the parent folder (..) -->

0 commit comments

Comments
 (0)