-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
增加devcontainer开发容器功能 #10
Open
W0n9
wants to merge
6
commits into
the-ccsn:master
Choose a base branch
from
W0n9:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 | ||
|
||
LABEL dev.containers.features="common" | ||
|
||
RUN mkdir -p ~/tmp/texlive \ | ||
&& cd ~/tmp/texlive \ | ||
&& wget --no-check-certificate https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \ | ||
&& zcat < install-tl-unx.tar.gz | tar xf - \ | ||
&& cd $(ls -d install-tl-* | head -n 1) \ | ||
&& perl ./install-tl --no-interaction --repository https://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet \ | ||
&& rm -rf ~/tmp | ||
|
||
RUN latest_texlive_path="$(ls -d /usr/local/texlive/[0-9]* | sort -n | tail -1)/bin/x86_64-linux" \ | ||
&& echo "export PATH=\'$latest_texlive_path:\$PATH\'" >> ~/.bashrc \ | ||
&& echo "export PATH=\'$latest_texlive_path:\$PATH\'" >> ~/.zshrc \ | ||
&& echo "export PATH=\'$latest_texlive_path:\$PATH\'" >> ~/.profile \ | ||
&& env PATH=$PATH $latest_texlive_path/tlmgr path add \ | ||
&& $latest_texlive_path/tlmgr init-usertree | ||
|
||
COPY fonts /usr/share/fonts/chinese | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends libfontconfig1 \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "LaTeXspaces-build_from_scratch", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": "." | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "true", | ||
"username": "vscode", | ||
"upgradePackages": "true" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "latest", | ||
"ppa": "false" | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "uname -a", | ||
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "LaTeXspaces-prebuild", | ||
"image": "ghcr.io/w0n9/images/ubuntu-latex:20241008", | ||
// "remoteUser": "vscode", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
// "GitHub.copilot", | ||
"James-Yu.latex-workshop" | ||
], | ||
"settings": { | ||
// "files.autoSave": "onFocusChange", | ||
// "latex-workshop.latex.autoBuild.run": "onSave", | ||
// "latex-workshop.latex.recipe.default": "lastUsed", | ||
// "latex-workshop.latex.outDir": "./PDF", | ||
"latex-workshop.showContextMenu": true, //启用上下文LaTeX菜单 | ||
"latex-workshop.latex.autoBuild.run": "onSave", //手动编译 | ||
"latex-workshop.message.error.show": false, | ||
"latex-workshop.message.warning.show": false, | ||
"latex-workshop.latex.recipe.default": "lastUsed", // 编译时使用上一次使用的编译指令 | ||
"latex-workshop.intellisense.package.enabled": true, //根据加载的包,自动完成命令或包 | ||
"latex-workshop.latex.recipes": [ | ||
{ | ||
"name": "latexmk", | ||
"tools": [ | ||
"latexmk" | ||
] | ||
} | ||
], | ||
"latex-workshop.latex.tools": [ | ||
{ | ||
"name": "latexmk", | ||
"command": "latexmk", | ||
"args": [ | ||
"-outdir=%OUTDIR%", | ||
"%DOC%" | ||
], | ||
"env": {} | ||
} | ||
], | ||
"latex-workshop.latex.clean.fileTypes": [ | ||
"*.aux", | ||
"*.bbl", | ||
"*.blg", | ||
"*.idx", | ||
"*.ind", | ||
"*.lof", | ||
"*.lot", | ||
"*.out", | ||
"*.toc", | ||
"*.acn", | ||
"*.acr", | ||
"*.alg", | ||
"*.glg", | ||
"*.glo", | ||
"*.gls", | ||
"*.ist", | ||
"*.fls", | ||
"*.log", | ||
"*.fdb_latexmk" | ||
], | ||
"latex-workshop.synctex.afterBuild.enabled": true, | ||
} | ||
} | ||
}, | ||
"features": {} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reconsider hiding error and warning messages.
The VSCode settings provide a good configuration for LaTeX development. However, there are a couple of points to consider:
Hiding error and warning messages (lines 18-19) might prevent users from seeing important information about their LaTeX documents. Consider enabling these or making them configurable by the user.
There are several commented out settings (lines 12-15) that might be useful. Review these and consider if they should be enabled or removed if not needed.
Consider applying this diff to show error and warning messages:
📝 Committable suggestion