Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
56e5f45
simplifies publication targets for single edition
braughtg Jan 13, 2025
325c3e1
removes all component attributes, and vscode KitClient content
braughtg Jan 13, 2025
373e9f5
revises README to remove linux and vscode versions
braughtg Jan 13, 2025
533c42d
adds image showing KitClient with Kit-tty and ready message
braughtg Jan 15, 2025
5b572ef
deletes source/shared-images/placeholder.tmp
braughtg Jan 15, 2025
708bff6
add dev env startup images
braughtg Jan 15, 2025
29fae6a
Update to Section 2.7 with instructions for codespaces KitClient (#110)
braughtg Jan 17, 2025
2cd1e88
Staying synched updates (#114)
lpostner Jan 19, 2025
b9d3385
Updates upstreaming (#119)
lpostner Jan 23, 2025
3214255
escape . in regular expressions (#136)
braughtg Jan 23, 2025
0f1805e
Chapter 2 Revisions (#146)
kwurst Jan 25, 2025
2ac3c02
Chapter3 revisions (#139)
lpostner Feb 3, 2025
ff661e6
Ch5 revisions (#138)
braughtg Feb 3, 2025
fbdc6ba
fix bad xrefs in ch5 (#159)
braughtg Feb 3, 2025
b8fdd53
Update to PreTeXt project source.
braughtg Feb 3, 2025
98478e8
Chapter 1 - Instructor Guide Revisions (#166)
braughtg Feb 3, 2025
cbb2b31
Updates document information and style (#169)
braughtg Feb 8, 2025
6e2ed1d
update exercise 3.6.4.e to 'true'
kwurst Feb 10, 2025
870775a
Chapter 4 proof read and revisions (#171)
braughtg Feb 12, 2025
8fceab1
Update to PreTeXt project source.
braughtg Feb 12, 2025
5c86647
Ch2 revisions (#175)
braughtg Feb 12, 2025
9e3061a
fix typos
kwurst Feb 13, 2025
c95e613
wip
kwurst Feb 13, 2025
f6dac5b
Issue #130
kwurst Feb 14, 2025
3f6fbfb
3.3 done
kwurst Feb 14, 2025
7e2c7d9
3.4
kwurst Feb 14, 2025
fd32a2b
3.5
kwurst Feb 14, 2025
b1c5dc9
3.6 and 3.8
kwurst Feb 14, 2025
2599b05
clarifies langauge on 2.4.2.1d hint (#179)
braughtg Feb 16, 2025
50604e9
Revisions to chapter 3. (#180)
braughtg Feb 16, 2025
8e399db
Update to PreTeXt project source.
braughtg Feb 16, 2025
f6b110f
Some patches to chapter 4 (#182)
braughtg Feb 16, 2025
91bcfe9
update options and fb in 4.3.2.3
braughtg Feb 16, 2025
877525d
patches to chapter 5 (#183)
braughtg Feb 16, 2025
8098a3f
clarifies uses of GitKit FarmData2 folder or repository (#184)
braughtg Feb 16, 2025
2488537
remove -linux from xml:id and label values (#185)
braughtg Feb 16, 2025
d936605
fix regex for pull request
braughtg Feb 16, 2025
6c25370
checks and updates all the condition regex (#186)
braughtg Feb 16, 2025
af0f2f4
adds p element to introduction elements (#189)
braughtg Feb 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"name": "PreTeXt-Codespaces",

// This Docker image includes some LaTeX support, but is still not to large. Note that if you keep your codespace running, it will use up your GitHub free storage quota. Additional options are listed below.
"image": "oscarlevin/pretext:small",
// "image": "oscarlevin/pretext:small",
// If you need to generate more complicated assets (such as sageplots) or use additional fonts when building to PDF, comment out the above line and uncomment the following line.
// "image": "oscarlevin/pretext:full",
"image": "oscarlevin/pretext:full",
// If you only intend to build for web and don't have any latex-image generated assets, you can use a smaller image:
// "image": "oscarlevin/pretext:lite",

Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/pretext-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,21 @@ jobs:
- name: install deps
run: pip install -r requirements.txt

- name: install local ptx files
run: pretext --version

- name: build deploy targets
run: pretext build --deploys
run: |
version="$(pretext --version)"
major="$(echo $version | cut -d '.' -f 1)"
minor="$(echo $version | cut -d '.' -f 2)"
if [ "$major" -ge 2 -a "$minor" -ge 5 ]; then
echo "PreTeXt version is 2.5 or greater; using new build command"
pretext build --deploys
else
echo "PreTeXt version is less than 2.5, using old build command"
pretext build
fi
- name: stage deployment
run: pretext deploy --stage-only

Expand Down
2 changes: 2 additions & 0 deletions .gitkit-cspell.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
automations
devenv
farmdata
foss
gitkit
Expand All @@ -8,6 +9,7 @@ halign
HFOSSedu
inclusivity
kitclient
nbsp
opensource
POGIL
Runestone
Expand Down
77 changes: 9 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

This repository contains the pretext source for the GitKit Runestone texts.

If you are interested in using the GitKit Text please see the Instructor Guide in the text on Runestone by using one of the following links:
- [GitKit (Linux Desktop Edition)](https://runestone.academy/ns/books/published/gitkitlinux/the-gitkit-book.html?mode=browsing) - students work in a full Linux desktop environment in this edition.
- [GitKit (VSCode Edition)](https://runestone.academy/ns/books/published/gitkitvscode/the-gitkit-book.html?mode=browsing) - students work within the VSCode IDE in this edition.
If you are interested in using the GitKit Text please see the Instructor Guide in the text on Runestone by using one of the following link: [GitKit](https://runestone.academy/ns/books/published/gitkitlinux/the-gitkit-book.html?mode=browsing)

## Licensing

Expand Down Expand Up @@ -301,76 +299,19 @@ An `<exercise>` containing `<task>`s can be used to create a question with multi
Note:
- Fill-in questions are not currently suported within a `<task>`. A [free response question](https://runestone.academy/ns/books/published/PTXSB/rune-20.html) (with [source](https://runestone.academy/ns/books/published/PTXSB/rune-20.html)) should be used instead. Note that the free response box only renders when running in Runestone. This is because free response must be hand graded and cannot be auto checked in a static web deploy. See [Using a fill in the blank exercise in a task](https://groups.google.com/g/pretext-support/c/VWLb_W0AT18) for updates on this issue.

#### Adding Version Specific Content
#### Text Versions

There are 10 versions of the text that can be built:
There are 3 versions of the text that can be built:

- `student-web-linux` and `student-print-linux` - The Linux KitClient book as students will see it.
- `student-web-vscode` and `student-print-vscde` - The VSCode KitClient book as students will see it.

- `instructor-web-linux` and `instructor-print-linux` - The Linux KitClient book including notes to the instructor (see below).
- `instructor-web-vscode` and `instructor-print-vscode` - The VSCode KitClient book including notes to the instructor (see below).

- `web` and `print` - same as the instructor Linux version. This is included for the CodeChat preview.
- `web` - An HTML version of the text. This will some but not all of the interactive Runestone question types.
- `print` - A PDF version of the text.
- `runestone` - The version built to be served by Runestone Academy.

##### Building a Specific Version

Any of these versions can be built using "Build another target..." option on the `PreTeXt` menu or by using terminal commands similar to:

```text
pretext build instructor-web-linux
pretext view instructor-web-linux
```

##### Adding KitClient Specific Content

Content specific to a given kit client is indicated by adding a `component` attribute to to divisions/elements as follows:

```
<p
component="linux-kit-client"
xml:id="topic-some-stuff-linux">
This text appears only in the Linux Kit Client versions.
</p>

<p
component="vscode-kit-client"
xml:id="topic-some-stuff-vscode">
This text appears only in the VSCode Kit Client versions.
</p>
```

- If a division/element will appear only in the `linux` or `vscode` version of the text its `xml:id` should have a suffix indicating its version.
- If two divisions/elements provide alternate content for the `linux` and `vscode` versions their `xml:ids` will be the same except for the suffix.

##### Instructor Version Content

A `commentary` element with the `component="instructor"` attrribute is used to add instructor guide information directly to the source text as follows:

```xml
<commentary component="instructor">
<tabular top="major" bottom="major" left="major" right="major">
<col width="100%" />
<row>
<cell>
<p>
<alert>Instructor Note:</alert>: Information for the instructor appears here.
</p>
</cell>
</row>
</tabular>
</commentary>
```

Note:
- The `<tabular>` is included to place all comments for the instructor into a box.

##### Defining a Version

The available versions are defined by the `<target>`s in the `project.ptx` file. Each `<target>` references a `.ptx` file in the `publication` folder that indicates the content that will appear in the version.

##### Publishing a Version

Runestone does not currently support the publication of different versions of a text from a single repository. Instead, the solution is to create a fork of this repository. Then in that repository change the `publication` file that is the `target` of the `runestone` target to point to the `publication` file for the version that you would like to publish. Then create a new Runestone text using that repository.

See the [GitKit-VSCode Repository](https://github.com/HFOSSedu/GitKit-VSCode) for an example. That repository also includes information about how to update it from this repository when edits are made.
pretext build web
pretext view web
```
Binary file modified materials/images/GitKit-Text-Soure-Images.pptx
Binary file not shown.
Binary file modified materials/slides/Ch5-MergeConflicts.pptx
Binary file not shown.
23 changes: 3 additions & 20 deletions project.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,10 @@
<!-- This file, the project manifest, provides the overall configuration for your PreTeXt project. To edit the content of your document, open `source/main.ptx`. See https://pretextbook.org/doc/guide/html/processing-CLI.html#cli-project-manifest. -->
<project ptx-version="2">
<targets>
<target name="web" format="html" publication="publication-instructor-linux.ptx"/>
<target name="print" format="pdf" publication="publication-instructor-linux.ptx"/>
<target name="web" format="html" publication="publication.ptx"/>
<target name="print" format="pdf" publication="publication.ptx"/>

<!-- This is the target that is built on runestone -->
<!-- It will need to be made to point to the vscode publication file in the fork for that edition. -->
<!-- The output-dir should also be changed to a unique directory for the VSCode version. -->
<target name="runestone" format="html" publication="publication-runestone-linux.ptx" output-dir="published/gitkitlinux" />

<!--
<target name="runestone-linux" format="html" publication="publication-runestone-linux.ptx" output-dir="publication/gitkit" />
<target name="runestone-vscode" format="html" publication="publication-runestone-vscode.ptx" output-dir="publication/gitkit" />
-->

<target name="student-web-linux" format="html" publication="publication-student-linux.ptx"/>
<target name="student-print-linux" format="pdf" publication="publication-student-linux.ptx"/>
<target name="instructor-web-linux" format="html" publication="publication-instructor-linux.ptx"/>
<target name="instructor-print-linux" format="pdf" publication="publication-instructor-linux.ptx"/>

<target name="student-web-vscode" format="html" publication="publication-student-vscode.ptx"/>
<target name="student-print-vscode" format="pdf" publication="publication-student-vscode.ptx"/>
<target name="instructor-web-vscode" format="html" publication="publication-instructor-vscode.ptx"/>
<target name="instructor-print-vscode" format="pdf" publication="publication-instructor-vscode.ptx"/>
<target name="runestone" format="html" publication="publication-runestone.ptx" output-dir="published/gitkit" />
</targets>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<!-- Style of fill-in-the-blanks: -->
<fillin textstyle="underline" mathstyle="shade" />
<!-- You can set a watermark: -->
<!-- <watermark scale="1.0">DRAFT</watermark> -->
<!-- <watermark scale="0.5">DRAFT</watermark> -->
</common>


Expand All @@ -34,7 +34,6 @@
<!-- See
https://pretextbook.org/doc/guide/html/publication-file-source.html#publication-file-source-version -->
<!-- <version include="videos labs"/> -->
<version include="linux-kit-client" />
</source>

<numbering>
Expand All @@ -61,7 +60,7 @@
<!-- for printing; set @sides="two" if the printing woudl be two- -->
<!-- sided. @pageref="yes/no" controls whether page number are -->
<!-- included in cross-references -->
<latex print="yes" sides="two" font-size="10" draft="no">
<latex print="no" sides="two" font-size="10" draft="no">
<!-- Control text justification and bottom page behavior: -->
<page right-alignment="flush" bottom-alignment="ragged" />
<!-- Add content to \geometry{}: -->
Expand All @@ -70,7 +69,7 @@
<!-- links the html version of asymptote graphics. -->
<asymptote links="no" />
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
<worksheets formatted="yes" />
<!-- <watermark scale="1.0">DRAFT</watermark> -->
</latex>

<html>
Expand Down
141 changes: 0 additions & 141 deletions publication/publication-instructor-linux.ptx

This file was deleted.

Loading