-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mdconvert.sh and devcontainer (#29)
* Add change history limit. Closes #25. * Use the pandoc/extra image to remove the need for build-container. * Remove the PowerShell mdconvert script * Add mdconvert.sh shell script and a devcontainer to simplify testing. * Update issue template. * Move pre-commit install to startup script. * Update vscode settings.
- Loading branch information
Showing
24 changed files
with
2,245 additions
and
1,735 deletions.
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 @@ | ||
{ | ||
"name": "markdown2pdf", | ||
"image": "pandoc/extra:edge-alpine", | ||
"onCreateCommand": ".devcontainer/setup.sh", | ||
"postStartCommand": ".devcontainer/startup.sh", | ||
"overrideCommand": true, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"security.workspace.trust.untrustedFiles": "open" | ||
}, | ||
"extensions": [ | ||
"bierner.markdown-preview-github-styles", | ||
"catppuccin.catppuccin-vsc", | ||
"catppuccin.catppuccin-vsc-icons", | ||
"dbaeumer.vscode-eslint", | ||
"DavidAnson.vscode-markdownlint", | ||
"esbenp.prettier-vscode", | ||
"GitHub.vscode-pull-request-github", | ||
"streetsidesoftware.code-spell-checker", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
} | ||
} |
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,37 @@ | ||
#!/usr/bin/env sh | ||
if [ -d "/var/run/docker.sock" ]; then | ||
# Grant access to the docker socket | ||
sudo chmod 666 /var/run/docker.sock | ||
fi | ||
|
||
if ! [ -d ~/.ssh ]; then | ||
if [ -d /tmp/.ssh-localhost ]; then | ||
command mkdir -p -- ~/.ssh | ||
sudo cp -R /tmp/.ssh-localhost/* ~/.ssh | ||
sudo chown -R $(whoami):$(whoami) ~ || true ?>/dev/null | ||
sudo chmod 400 ~/.ssh/* | ||
fi | ||
fi | ||
|
||
apk add --no-cache git jq librsvg font-noto-cjk zsh bash starship | ||
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community font-carlito font-fira-code-nerd shellcheck | ||
|
||
pip install pre-commit | ||
|
||
tlmgr option -- autobackup -1 | ||
tlmgr install lastpage | ||
|
||
if [ -f ~/.gitconfig ]; then | ||
rm ~/.gitconfig | ||
fi | ||
|
||
if ! [ -d ~/.config ]; then | ||
command mkdir -p -- ~/.config | ||
fi | ||
/bin/cp -f .devcontainer/starship.toml ~/.config/starship.toml | ||
if ! [ -f ~/.zshrc ]; then | ||
touch ~/.zshrc | ||
fi | ||
if ! grep -q 'eval "$(starship init zsh)"' ~/.zshrc; then | ||
echo 'eval "$(starship init zsh)"' >>~/.zshrc | ||
fi |
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,35 @@ | ||
command_timeout = 500 | ||
format = "$directory$git_branch$time$cmd_duration$character" | ||
|
||
[character] | ||
success_symbol = "[➜](bold green)" | ||
error_symbol = "[✖](bold red)" | ||
|
||
[cmd_duration] | ||
min_time = 500 | ||
format = "took [$duration](bold yellow)" | ||
|
||
[directory] | ||
read_only = " " | ||
truncation_length = 3 | ||
truncation_symbol = "~/" | ||
|
||
[git_branch] | ||
symbol = " " | ||
style = "bold #e8ec00 inverted" | ||
format = "on [$symbol$branch ]($style) " | ||
|
||
[git_commit] | ||
disabled = true | ||
|
||
[git_state] | ||
disabled = true | ||
|
||
[git_status] | ||
disabled = true | ||
|
||
[line_break] | ||
disabled = true | ||
|
||
[package] | ||
disabled = true |
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 @@ | ||
#!/usr/bin/env sh | ||
if [ "${CODESPACES}" = "true" ]; then | ||
# Remove the default credential helper | ||
sudo sed -i -E 's/helper =.*//' /etc/gitconfig | ||
|
||
# Add one that just uses secrets available in the Codespace | ||
git config --global credential.helper '!f() { sleep 1; echo "username=${GITHUB_USER}"; echo "password=${GH_TOKEN}"; }; f' | ||
fi | ||
|
||
if [ "$(git config --get safe.directory)" != "*" ]; then | ||
git config --global --add safe.directory "*" | ||
fi | ||
if [ "$(git config pull.rebase)" != "false" ]; then | ||
git config --global pull.rebase false | ||
fi | ||
if [ "$(git config user.name)" = "" ]; then | ||
echo "Warning: git user.name is not configured" | ||
fi | ||
if [ "$(git config user.email)" = "" ]; then | ||
echo "Warning: git user.email is not configured" | ||
fi | ||
|
||
pre-commit install | ||
pre-commit autoupdate |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,6 +1,2 @@ | ||
--- | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Discuss on Teams | ||
url: https://teams.microsoft.com/_?tenantId=67481c72-d897-4db4-a7fa-b96d76dfb545#/conversations/General?threadId=19:[email protected]&ctx=channel | ||
about: Azure Consulting Channel |
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.