Skip to content

Commit

Permalink
Runestone tags
Browse files Browse the repository at this point in the history
Adding tags for reading questions
  • Loading branch information
maymk committed Jan 7, 2024
1 parent f0cf619 commit dcc5953
Show file tree
Hide file tree
Showing 6 changed files with 182 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// <!-- Managed automatically by PreTeXt authoring tools -->
// (delete the above line to manage this file manually)
//////////////////////////////////////////////////////////////
//
// This file provides configuration options so that a PreTeXt
// project can be edited and built using GitHub's Codespaces.
// It is recommended to keep this in your repository even if you
// do not use this feature, as it will allow other to explore
// your project easily.
// This file will be automatically generated by PreTeXt with the
// latest updates unless you remove the first comment line above.
//
///////////////////////////////////////////////////////////////
{
"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",
// 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",
// 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",

// Add gh cli as a feature (to support codechat)
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},

// Port forwarding
// ---------------
// This is needed by the CodeChat Server.
"forwardPorts": [
// The port used for a Thrift connection between the VSCode CodeChat
// extension and the CodeChat Server.
27376,
// The port used for an HTTP connection from the CodeChat Client to
// the CodeChat Server.
27377,
// The port used by a websocket connection between the CodeChat
// Server and the CodeChat Client.
27378
],
// See the [docs](https://containers.dev/implementors/json_reference/#port-attributes).
"portsAttributes": {
"27376": {
"label": "VSCode extension <-> CodeChat Server",
"requireLocalPort": true
},
"27377": {
"label": "CodeChat Client",
"requireLocalPort": true
},
"27378": {
"label": "CodeChat Client<->Server websocket",
"requireLocalPort": true
// This port needs to be public; however, there's no way to specify port visibility here. See `server.py` in the CodeChat Server for details.
}
},

// Configure tool-specific properties.
"customizations": {
"codespaces": {
"openFiles": ["source/main.ptx"]
},
"vscode": {
"settings": {
"editor.quickSuggestions": {
"other": "off"
},
"editor.snippetSuggestions": "top",
"xml.validation.enabled": false,
"CodeChat.CodeChatServer.Command": "CodeChat_Server"
},
"extensions": [
"ms-vscode.live-server",
"oscarlevin.pretext-tools",
"CodeChat.codechat"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
12 changes: 12 additions & 0 deletions .gitignore.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
generated-assets/
output/
.error_schema.log
build/
published/
*~
.DS_Store
TerminalCommands.txt
validate
validation-report.txt
publication-old.ptx
cli.log
11 changes: 11 additions & 0 deletions cli.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
INFO : PreTeXt project found in `/Users/maymk/Documents/GitHub/ExcelCalculus`.
INFO : Now preparing local server to preview directory `/Users/maymk/Documents/GitHub/ExcelCalculus/output/html`.
INFO : (Reminder: use `pretext deploy` to deploy your built project to a public
INFO : GitHub Pages site that can be shared with readers who cannot access your
INFO : personal computer.)
INFO :
INFO : Success! The most recent build of your project can be viewed in a web browser at the following url:
INFO : http://localhost:8000
INFO : This page should open in a new tab automatically.
INFO : Use [Ctrl]+[C] to halt the server.

74 changes: 74 additions & 0 deletions project.ptx.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file provides the overall configuration for your PreTeXt
project. To edit the content of your document, open `source/main.ptx`
(default location).
-->
<project>
<targets>
<target name="html">
<format>html</format>
<source>source/main.ptx</source>
<publication>publication/publication.ptx</publication>
<output-dir>output/html</output-dir>
</target>
<target name="runestone">
<format>html</format>
<source>source/main.ptx</source>
<publication>publication-rs-academy.xml</publication>
<output-dir>published/ExcelCalculus</output-dir>
</target>
<target name="latex">
<format>latex</format>
<source>source/main.ptx</source>
<publication>publication/publication.ptx</publication>
<output-dir>output/latex</output-dir>
<xsl>style/ExcelCalculus-color.xsl</xsl>
</target>
<target name="pdf" pdf-method="xelatex">
<format>pdf</format>
<source>source/main.ptx</source>
<publication>publication/publication.ptx</publication>
<output-dir>output/pdf</output-dir>
<xsl>style/ExcelCalculus-color.xsl</xsl>
</target>
<target name="latex-print">
<format>latex</format>
<source>source/main.ptx</source>
<publication>publication/publication-print.ptx</publication>
<output-dir>output/latex</output-dir>
<xsl>style/ExcelCalculus-print.xsl</xsl>
</target>
<target name="pdf-print" pdf-method="xelatex">
<format>pdf</format>
<source>source/main.ptx</source>
<publication>publication/publication-print.ptx</publication>
<output-dir>output/pdf</output-dir>
<xsl>style/ExcelCalculus-print.xsl</xsl>
</target>
<target name="subset">
<format>html</format>
<source>source/main.ptx</source>
<publication>publication/publication.ptx</publication>
<output-dir>output/subset</output-dir>
<stringparam key="debug.skip-knowls" value="yes"/>
<!-- edit this to change the section/chapter/etc. to include
in your subset build -->
<xmlid-root>ch-first</xmlid-root>
</target>
</targets>
<executables>
<latex>latex</latex>
<pdflatex>pdflatex</pdflatex>
<xelatex>xelatex</xelatex>
<pdfsvg>pdf2svg</pdfsvg>
<asy>asy</asy>
<sage>sage</sage>
<pdfpng>convert</pdfpng>
<pdfeps>pdftops</pdfeps>
<pdfcrop>pdf-crop-margins</pdfcrop>
<pageres>pageres</pageres>
<node>node</node>
<liblouis>file2brl</liblouis>
</executables>
</project>
Binary file added requirements.textClipping
Binary file not shown.
1 change: 1 addition & 0 deletions requirements.txt.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pretextbook == 1.6.0

0 comments on commit dcc5953

Please sign in to comment.