|
| 1 | +{ |
| 2 | + "name": "PreTeXt-Codespaces", |
| 3 | + |
| 4 | + // 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. |
| 5 | + // "image": "oscarlevin/pretext:small", |
| 6 | + // 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. |
| 7 | + "image": "oscarlevin/pretext:full", |
| 8 | + // If you only intend to build for web and don't have any latex-image generated assets, you can use a smaller image: |
| 9 | + // "image": "oscarlevin/pretext:lite", |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + // The following was the previous version of this file, which used the Codespaces base image. It is still available for reference, but is not recommended. |
| 14 | + // "image": "mcr.microsoft.com/devcontainers/python:3", |
| 15 | + // "features": { |
| 16 | + // "ghcr.io/devcontainers/features/node:1": {}, |
| 17 | + // "ghcr.io/rocker-org/devcontainer-features/pandoc:1": {} |
| 18 | + // }, |
| 19 | + // "forwardPorts": [ |
| 20 | + // 27377, |
| 21 | + // 27378 |
| 22 | + // ], |
| 23 | + // "portsAttributes": { |
| 24 | + // "27378": { |
| 25 | + // "label": "CodeChat", |
| 26 | + // "onAutoForward": "openPreview", |
| 27 | + // "requireLocalPort": true, |
| 28 | + // "elevateIfNeeded": true, |
| 29 | + // "protocol": "https" |
| 30 | + // } |
| 31 | + // }, |
| 32 | + // "onCreateCommand": "pip install pretext", |
| 33 | + // // Use 'postCreateCommand' to run commands after the container is created. |
| 34 | + // "postCreateCommand": "sudo bash ./.devcontainer/postCreateCommand.sh", |
| 35 | + |
| 36 | + // Configure tool-specific properties. |
| 37 | + "customizations": { |
| 38 | + "codespaces": { |
| 39 | + "openFiles": [ |
| 40 | + "source/main.ptx" |
| 41 | + ] |
| 42 | + }, |
| 43 | + "vscode": { |
| 44 | + "settings": { |
| 45 | + "editor.quickSuggestions": { |
| 46 | + "other": "off" |
| 47 | + }, |
| 48 | + "editor.snippetSuggestions": "top", |
| 49 | + "xml.validation.enabled": false |
| 50 | + }, |
| 51 | + "extensions": ["ms-vscode.live-server", "oscarlevin.pretext-tools"] |
| 52 | + } |
| 53 | + } |
| 54 | + |
| 55 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 56 | + // "remoteUser": "root" |
| 57 | +} |
0 commit comments