Skip to content

Commit 5baadf5

Browse files
committed
2 parents f0e2f6e + e3788c7 commit 5baadf5

File tree

7 files changed

+185
-15
lines changed

7 files changed

+185
-15
lines changed

.devcontainer.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// <!-- Managed automatically by PreTeXt authoring tools -->
2+
// (delete the above line to manage this file manually)
3+
//////////////////////////////////////////////////////////////
4+
//
5+
// This file provides configuration options so that a PreTeXt
6+
// project can be edited and built using GitHub's Codespaces.
7+
// It is recommended to keep this in your repository even if you
8+
// do not use this feature, as it will allow other to explore
9+
// your project easily.
10+
// This file will be automatically generated by PreTeXt with the
11+
// latest updates unless you remove the first comment line above.
12+
//
13+
///////////////////////////////////////////////////////////////
14+
{
15+
"name": "PreTeXt-Codespaces",
16+
17+
// 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.
18+
"image": "oscarlevin/pretext:small",
19+
// 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.
20+
// "image": "oscarlevin/pretext:full",
21+
// If you only intend to build for web and don't have any latex-image generated assets, you can use a smaller image:
22+
// "image": "oscarlevin/pretext:lite",
23+
24+
// Add gh cli as a feature (to support codechat)
25+
"features": {
26+
"ghcr.io/devcontainers/features/github-cli:1": {}
27+
},
28+
29+
// Port forwarding
30+
// ---------------
31+
// This is needed by the CodeChat Server.
32+
"forwardPorts": [
33+
// The port used for a Thrift connection between the VSCode CodeChat
34+
// extension and the CodeChat Server.
35+
27376,
36+
// The port used for an HTTP connection from the CodeChat Client to
37+
// the CodeChat Server.
38+
27377,
39+
// The port used by a websocket connection between the CodeChat
40+
// Server and the CodeChat Client.
41+
27378
42+
],
43+
// See the [docs](https://containers.dev/implementors/json_reference/#port-attributes).
44+
"portsAttributes": {
45+
"27376": {
46+
"label": "VSCode extension <-> CodeChat Server",
47+
"requireLocalPort": true
48+
},
49+
"27377": {
50+
"label": "CodeChat Client",
51+
"requireLocalPort": true
52+
},
53+
"27378": {
54+
"label": "CodeChat Client<->Server websocket",
55+
"requireLocalPort": true
56+
// 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.
57+
}
58+
},
59+
60+
// Configure tool-specific properties.
61+
"customizations": {
62+
"codespaces": {
63+
"openFiles": ["source/main.ptx"]
64+
},
65+
"vscode": {
66+
"settings": {
67+
"editor.quickSuggestions": {
68+
"other": "off"
69+
},
70+
"editor.snippetSuggestions": "top",
71+
"xml.validation.enabled": false,
72+
"CodeChat.CodeChatServer.Command": "CodeChat_Server"
73+
},
74+
"extensions": [
75+
"ms-vscode.live-server",
76+
"oscarlevin.pretext-tools",
77+
"CodeChat.codechat"
78+
]
79+
}
80+
}
81+
82+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
83+
// "remoteUser": "root"
84+
}

.gitignore

Lines changed: 98 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,99 @@
1-
published/*
2-
sphinx-enki-info.txt
3-
sphinx_settings.json
4-
.vscode
5-
__pycache__
6-
.history/*
7-
.venv/
8-
.DS_Store
9-
build_info
10-
cli.log
11-
.nova
1+
# <!-- Managed automatically by PreTeXt authoring tools -->
2+
# (delete the above line to manage this file manually)
3+
4+
# Boilerplate list of files in a PreTeXt project for git to ignore
5+
# ensure this file is tracked
6+
!.gitignore
7+
8+
# don't track unpublished builds or stage
129
output
10+
11+
# don't track assets generated from source
12+
generated-assets
13+
14+
# don't track the executables.ptx file
15+
executables.ptx
16+
17+
# don't track node packages
18+
node_modules
19+
20+
# don't track error logs
21+
.error_schema.log
22+
logs
23+
24+
# don't track OS related files (windows/macos/linux)
25+
.DS_Store
26+
.DS_Store?
27+
._*
28+
.AppleDouble
29+
.LSOverride
30+
.Spotlight-V100
31+
.Trashes
32+
Icon
33+
.AppleDB
34+
.AppleDesktop
35+
Network Trash Folder
36+
Temporary Items
37+
.apdisk
38+
Thumbs.db
39+
Thumbs.db:encryptable
40+
ehthumbs.db
41+
ehthumbs_vista.db
42+
*.stackdump
43+
*.lnk
44+
*.cab
45+
*.msi
46+
*.msix
47+
*.msm
48+
*.msp
49+
[Dd]esktop.ini
50+
.directory
51+
.fuse_hidden*
52+
.Trash-*
53+
.nfs*
54+
55+
# Don't include VSCode generated files
56+
.vscode
57+
*.code-workspace
58+
59+
# Don't inlucde SublimeText files
60+
# Cache files for Sublime Text
61+
*.tmlanguage.cache
62+
*.tmPreferences.cache
63+
*.stTheme.cache
64+
65+
# Workspace files are user-specific
66+
*.sublime-workspace
67+
68+
# Project files should be checked into the repository, unless a significant
69+
# proportion of contributors will probably not be using Sublime Text
70+
*.sublime-project
71+
72+
# SFTP configuration file
73+
sftp-config.json
74+
sftp-config-alt*.json
75+
76+
# Package control specific files
77+
Package Control.last-run
78+
Package Control.ca-list
79+
Package Control.ca-bundle
80+
Package Control.system-ca-bundle
81+
Package Control.cache/
82+
Package Control.ca-certs/
83+
Package Control.merged-ca-bundle
84+
Package Control.user-ca-bundle
85+
oscrypto-ca-bundle.crt
86+
bh_unicode_properties.cache
87+
88+
# Sublime-github package stores a github token in this file
89+
# https://packagecontrol.io/packages/sublime-github
90+
GitHub.sublime-settings
91+
92+
93+
# Don't include Dropbox settings and caches
94+
.dropbox
95+
.dropbox.attr
96+
.dropbox.cache
97+
98+
# Don't track codechat config (will be generated automatically)
99+
codechat_config.yaml

assets/custom-styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.pretext #ptx-sidebar { display: none; }
1+
.pretext .ptx-sidebar { display: none; }
22

33

44
.runestone.ac_section {
File renamed without changes.
File renamed without changes.
File renamed without changes.

requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
runestone
2-
SQLAlchemy
3-
psycopg2-binary
1+
# <!-- Managed automatically by PreTeXt authoring tools -->
2+
pretext == 2.3.8

0 commit comments

Comments
 (0)