|
1 | | -// <!-- Managed automatically by PreTeXt authoring tools --> |
2 | | -// (delete the above line to manage this file manually) |
| 1 | +// This file was automatically generated with PreTeXt 2.34.0. |
| 2 | +// If you modify this file, PreTeXt will no longer automatically update it. |
| 3 | +// |
3 | 4 | ////////////////////////////////////////////////////////////// |
4 | 5 | // |
5 | | -// This file provides configuration options so that a PreTeXt |
| 6 | +// This file provides configuration options so that a PreTeXt |
6 | 7 | // project can be edited and built using GitHub's Codespaces. |
7 | 8 | // 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 |
| 9 | +// do not use this feature, as it will allow other to explore |
| 10 | +// your project easily. |
| 11 | +// This file will be automatically generated by PreTeXt with the |
11 | 12 | // latest updates unless you remove the first comment line above. |
12 | 13 | // |
13 | 14 | /////////////////////////////////////////////////////////////// |
14 | 15 | { |
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", |
| 16 | + // "image": "pretextbook/pretext-full:1.6", // uses latest image from https://hub.docker.com/r/PreTeXtBook/pretext-full/tags |
| 17 | + // If you don't need sagemath, you can use a smaller base image. Comment out the line above and uncomment the line below to use a smaller image. |
| 18 | + "image": "pretextbook/pretext:1.6", |
| 19 | + "features": {"ghcr.io/devcontainers/features/github-cli": {}}, |
23 | 20 |
|
24 | | - // Add gh cli as a feature (to support codechat) |
25 | | - "features": { |
26 | | - "ghcr.io/devcontainers/features/github-cli:1": {} |
27 | | - }, |
| 21 | + // The pretext-full image above includes pretext, prefigure, and enough parts of latex and sagemath for most cases. Here we install additional dependencies. |
| 22 | + "postCreateCommand": { |
| 23 | + "install pandoc": "bash ./.devcontainer/installPandoc.sh", |
| 24 | + "mark repo as safe": "git config --global --add safe.directory $(pwd)" |
| 25 | + }, |
28 | 26 |
|
29 | | - // Respect the project's designated dependencies |
30 | | - "postCreateCommand": "pip install -r requirements.txt", |
31 | 27 |
|
32 | 28 | // Port forwarding |
33 | 29 | // --------------- |
|
60 | 56 | } |
61 | 57 | }, |
62 | 58 |
|
| 59 | + |
63 | 60 | // Configure tool-specific properties. |
64 | 61 | "customizations": { |
65 | 62 | "codespaces": { |
66 | | - "openFiles": ["source/main.ptx"] |
| 63 | + "openFiles": ["README.md"] |
67 | 64 | }, |
68 | 65 | "vscode": { |
69 | 66 | "settings": { |
70 | 67 | "editor.quickSuggestions": { |
71 | 68 | "other": "off" |
72 | 69 | }, |
73 | | - "editor.snippetSuggestions": "top", |
74 | | - "xml.validation.enabled": false, |
| 70 | + "editor.suggest.showProperties": false, |
| 71 | + "editor.snippetSuggestions": "bottom", |
| 72 | + "files.autoSave": "afterDelay", |
| 73 | + "xml.validation.enabled": true, |
| 74 | + "redhat.telemetry.enabled": false, |
75 | 75 | "CodeChat.CodeChatServer.Command": "CodeChat_Server" |
76 | 76 | }, |
77 | 77 | "extensions": [ |
78 | | - "ms-vscode.live-server", |
79 | 78 | "oscarlevin.pretext-tools", |
80 | | - "CodeChat.codechat" |
| 79 | + "CodeChat.codechat", |
| 80 | + "streetsidesoftware.code-spell-checker", |
| 81 | + "alpinebuster.vscode-latex-table-editor", |
| 82 | + "mathematic.vscode-pdf" |
81 | 83 | ] |
82 | 84 | } |
83 | 85 | } |
84 | | - |
85 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
86 | | - // "remoteUser": "root" |
87 | 86 | } |
0 commit comments