Skip to content

Commit 3a7688c

Browse files
committed
Cleanup Command, Badges, and Padding
1 parent d3b1a93 commit 3a7688c

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
lines changed

.vitepress/theme/components/Contributors.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const props = defineProps({
99
})
1010
1111
const outerStyle = { margin: props.margin }
12-
console.log('outerStyle:', outerStyle)
12+
// console.log('outerStyle:', outerStyle)
1313
const imageStyle = { width: `${props.size}px`, height: `${props.size}px` }
14-
console.log('imageStyle:', imageStyle)
14+
// console.log('imageStyle:', imageStyle)
1515
</script>
1616

1717
<template>
@@ -43,7 +43,7 @@ console.log('imageStyle:', imageStyle)
4343
div.vp-contributors-heading {
4444
font-size: 32px;
4545
text-align: center;
46-
margin-bottom: 36px;
46+
margin-bottom: 24px;
4747
}
4848
4949
div.vp-contributors-images {

docs/guides/get-started.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,21 @@ _This is why I use the [cssnr](https://github.com/cssnr) organization._
6161

6262
## Command
6363

64-
The command used to deploy the stack is generated depending on type.
65-
66-
```bash :line-numbers=179 [src/main.sh ~vscode-icons:file-type-shell~]
67-
if [[ "${INPUT_MODE}" == "swarm" ]];then
68-
DEPLOY_TYPE="Swarm"
69-
COMMAND=("docker" "stack" "deploy" "-c" "${INPUT_FILE}" "${EXTRA_ARGS[@]}" "${INPUT_NAME}")
70-
else
71-
DEPLOY_TYPE="Compose"
72-
COMMAND=("docker" "compose" "${STACK_FILES[@]}" "-p" "${INPUT_NAME}" "up" "-d" "-y" "${EXTRA_ARGS[@]}")
73-
fi
64+
The command used to deploy the stack is generated depending on mode.
65+
66+
::: code-group
67+
68+
```shell [Swarm ~vscode-icons:file-type-shell~]
69+
docker stack deploy -c ${INPUT_FILE} ${EXTRA_ARGS[@]} ${INPUT_NAME}
7470
```
7571

76-
Compose Note: `"${STACK_FILES[@]}"` is an array of `-f docker-compose.yaml` for every file in the `file` input (supports multiple files).
72+
```shell [Compose ~vscode-icons:file-type-shell~]
73+
docker compose ${STACK_FILES[@]} -p ${INPUT_NAME} up -d -y ${EXTRA_ARGS[@]}
74+
```
75+
76+
:::
77+
78+
**Compose.** To see how `${STACK_FILES[@]}` is generated see the [file](../docs/inputs.md#file) input documenation.
7779

7880
You can view the full deployment script on GitHub: [src/main.sh](https://github.com/cssnr/stack-deploy-action/blob/master/src/main.sh)
7981

docs/guides/resources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ A collection of resources and guides for getting started.
1313
&nbsp;
1414

1515
::: tip
16-
Have a related resource? Let us know by creating a [PR](https://github.com/cssnr/stack-deploy-docs/edit/master/docs/guides/examples.md)
17-
or an [Issue](https://github.com/cssnr/stack-deploy-docs/issues) on [GitHub](https://github.com/cssnr/stack-deploy-docs).
16+
Have a related resource? Let us know by submitting a [PR](https://github.com/cssnr/stack-deploy-docs/edit/master/docs/guides/examples.md)
17+
or opening an [Issue](https://github.com/cssnr/stack-deploy-docs/issues) on [GitHub](https://github.com/cssnr/stack-deploy-docs).
1818
:::

docs/index.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ features:
4242
div.badges {
4343
margin-top: 80px;
4444
}
45-
.badges > hr {
46-
margin-bottom: 24px;
47-
}
4845
.badges > p {
4946
text-align: center;
5047
}
@@ -67,15 +64,9 @@ div.badges {
6764

6865
---
6966

70-
[![GitHub Tag Major](https://img.shields.io/github/v/tag/cssnr/stack-deploy-action?sort=semver&filter=!v*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/stack-deploy-action/tags)
71-
[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/stack-deploy-action?sort=semver&filter=!v*.*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/stack-deploy-action/releases)
72-
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/stack-deploy-action?logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/stack-deploy-action/releases/latest)
73-
[![GitHub Release](https://img.shields.io/github/actions/workflow/status/cssnr/stack-deploy-action/release.yaml?logo=cachet&label=release)](https://github.com/cssnr/stack-deploy-action/actions/workflows/release.yaml)
74-
[![GitHub Test](https://img.shields.io/github/actions/workflow/status/cssnr/stack-deploy-action/test.yaml?logo=cachet&label=test)](https://github.com/cssnr/stack-deploy-action/actions/workflows/test.yaml)
75-
[![GitHub Lint](https://img.shields.io/github/actions/workflow/status/cssnr/stack-deploy-action/lint.yaml?logo=cachet&label=lint)](https://github.com/cssnr/stack-deploy-action/actions/workflows/lint.yaml)
7667
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/stack-deploy-action?logo=github&label=updated)](https://github.com/cssnr/stack-deploy-action/pulse)
7768
[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/stack-deploy-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated)](https://codeberg.org/cssnr/stack-deploy-action)
78-
[![Docs Last Commit](https://img.shields.io/github/last-commit/cssnr/stack-deploy-docs?logo=vitepress&logoColor=white&label=docs)](https://docker-deploy.cssnr.com/)
69+
[![Docs Last Commit](https://img.shields.io/github/last-commit/cssnr/stack-deploy-docs?logo=vitepress&logoColor=white&label=docs)](https://github.com/cssnr/stack-deploy-docs)
7970
[![GitHub Contributors](https://img.shields.io/github/contributors/cssnr/stack-deploy-action?logo=github)](https://github.com/cssnr/stack-deploy-action/graphs/contributors)
8071
[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/stack-deploy-action?logo=bookstack&logoColor=white&label=size)](https://github.com/cssnr/stack-deploy-action)
8172
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/stack-deploy-action?logo=sharp&logoColor=white)](https://github.com/cssnr/stack-deploy-action)

0 commit comments

Comments
 (0)