Skip to content

Commit b0f1cdf

Browse files
authored
chore: added Markdownlint configuration (podman-desktop#2299)
1 parent 668fd4e commit b0f1cdf

17 files changed

+144
-67
lines changed

.markdownlint.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# We increment heading levels my more by one level at a time for the Procedure, Verification headings:
2+
MD001: false
3+
# We do not limit line length:
4+
MD013: false
5+
# We always use Dollar signs before commands:
6+
MD014: false
7+
# We have multiple headings with the same content (Prerequisites, Procedure, Verification)
8+
MD024: false
9+
# We have multiple top-level headings in the same document to set different page title and navigation title:
10+
MD025: false
11+
# We allow inline HTML (icon):
12+
MD033: false

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
"watch": "node scripts/watch.cjs",
5757
"format:check": "prettier --check \"{extensions,packages,tests,types}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
5858
"format:fix": "prettier --write \"{extensions,packages,tests,types}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
59+
"markdownlint:check": "markdownlint-cli2 \"website/**/*.md\" \"#website/node_modules\"",
60+
"markdownlint:fix": "markdownlint-cli2-fix \"website/**/*.md\" \"#website/node_modules\"",
5961
"lint:check": "eslint . --ext js,ts,tsx",
6062
"lint:fix": "eslint . --fix --ext js,ts,tsx",
6163
"svelte:check": "svelte-check",

website/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
### Install the project dependencies
44

5-
```
5+
```shell-session
66
$ yarn install
77
```
88

99
### Local Development of the website / documentation
1010

11-
```
11+
```shell-session
1212
$ yarn start
1313
```
1414

1515
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
1616

1717
### Build
1818

19-
```
19+
```shell-session
2020
$ yarn build
2121
```
2222

@@ -26,13 +26,13 @@ This command generates static content into the `build` directory and can be serv
2626

2727
Using SSH:
2828

29-
```
29+
```shell-session
3030
$ USE_SSH=true yarn deploy
3131
```
3232

3333
Not using SSH:
3434

35-
```
35+
```shell-session
3636
$ GIT_USER=<Your GitHub username> yarn deploy
3737
```
3838

website/blog/2022-11-17-develop-podman-using-codespaces.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The challenges are to run a desktop tool (Podman Desktop) and running a containe
1717

1818
## Defining image of the container
1919

20-
The first thing is in the choice of the image for the container. It is possible to pick-up a default image and add some features but there is no existing feature for Podman at https://github.com/devcontainers/features/tree/main/src and most of the features are expecting to run on top of Debian/Ubuntu
20+
The first thing is in the choice of the image for the container. It is possible to pick-up a default image and add some features but there is no existing feature for Podman at <https://github.com/devcontainers/features/tree/main/src> and most of the features are expecting to run on top of Debian/Ubuntu
2121

2222
If you are not interested in how to setup the image, jump to the [next section](#configure-the-devcontainer-using-devcontainerjson).
2323

@@ -119,14 +119,14 @@ ENV _CONTAINERS_USERNS_CONFIGURED=""
119119

120120
Make sure Podman will create the socket in an expected directory:
121121

122-
```
122+
```docker
123123
# socket path for podman
124124
ENV XDG_RUNTIME_DIR=/run/user/1000
125125
```
126126

127127
OK ! we have a custom Containerfile providing all the tools to build and run Podman Desktop (using VNC for the display), run Podman and run Electron.
128128

129-
The current file is available at https://github.com/containers/podman-desktop/blob/main/.devcontainer/.parent/Containerfile
129+
The current file is available at <https://github.com/containers/podman-desktop/blob/main/.devcontainer/.parent/Containerfile>
130130

131131
Let's configure the DevContainer.
132132

@@ -282,7 +282,7 @@ After all post-creation steps, the `Preview` browser inside the VS Code editor w
282282

283283
As a user, opening a workspace with all what we configured is done using a single click.
284284

285-
Go to https://github.com/containers/podman-desktop then click on the `< > Code` dropdown and click on `Create codespace on main` button.
285+
Go to <https://github.com/containers/podman-desktop> then click on the `< > Code` dropdown and click on `Create codespace on main` button.
286286

287287
![Open Codespace](img/develop-podman-using-codespaces/codespaces-click-repository.png)
288288

website/blog/2022-12-01-release-0.10-blog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ For most users on Linux, there is no tray icon support. In this situation, when
9999
- Fixed use of the full height of the screen when displaying log in the details of a container. ([#946](https://github.com/containers/podman-desktop/discussions/946))
100100
- Fixed First start of Podman Desktop on flatpak was not seeing the podman engine ([#860](https://github.com/containers/podman-desktop/pull/860))
101101

102-
## Community Thank You!
102+
## Community Thank You
103103

104104
🎉 We’d like to say a big thank you to everyone who helped to make Podman Desktop 0.10 even better:
105105

website/blog/2023-01-18-release-0.11.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Several of other improvements have been made to the documentation and the websit
209209
- Fixed registry URL not aligned with header - [#1205](https://github.com/containers/podman-desktop/pull/1205)
210210
- Moved SVGs to reusable components - [#1211](https://github.com/containers/podman-desktop/pull/1211)
211211

212-
** Extensions API has also been improved in this new release: **
212+
**Extensions API has also been improved in this new release:**
213213

214214
- (extension-api): Allows to register a factory for kubernetes connection objects (like for container connections) - [#1040](https://github.com/containers/podman-desktop/pull/1040)
215215
- (extension-api): List or inspect containers, be notified on events - [#1041](https://github.com/containers/podman-desktop/pull/1041)
@@ -223,7 +223,7 @@ Several of other improvements have been made to the documentation and the websit
223223

224224
---
225225

226-
## Community Thank You!
226+
## Community Thank You
227227

228228
🎉 We’d like to say a big thank you to everyone who helped to make Podman Desktop 0.11 even better:
229229

website/blog/2023-02-15-release-0.12.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The documentation had many editorial reviews, and new content.
137137

138138
---
139139

140-
## Community Thank You!
140+
## Community Thank You
141141

142142
🎉 We’d like to say a big thank you to everyone who helped to make Podman Desktop 0.12 even better:
143143

website/docs/Installation/macos-install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Podman Desktop requires [Podman Engine](https://docs.podman.io/en/latest/index.h
4646

4747
1. After the installation is complete, close the installation program. Podman Engine has been installed and you are now ready to use Podman Desktop.
4848

49-
## Installing Podman Desktop on MacOS using [brew](https://brew.sh/).
49+
## Installing Podman Desktop on MacOS using [brew](https://brew.sh/)
5050

5151
:::infoPrerequisite
5252

website/docs/Installation/windows-install/installing-podman-with-openshift-local.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@ Consider installing the Podman Preset in OpenShift Local rather than [installing
2929

3030
2. Select the Podman container runtime preset:
3131

32-
```
32+
```shell-session
3333
$ crc config set preset podman
3434
```
3535

3636
3. Set up your host machine for Red Hat OpenShift Local:
3737

38-
```
38+
```shell-session
3939
$ crc setup
4040
```
4141

4242
4. Start the Red Hat OpenShift instance:
43-
```
43+
44+
```shell-session
4445
$ crc start
4546
```
4647

website/docs/kubernetes/deploying-a-container-to-kubernetes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ With Podman Desktop, you can deploy a container to your Kubernetes cluster.
3232

3333
- On the **Deploy generated pod to Kubernetes** screen, the created pod status is _Phase: Running_
3434

35-
![](img/deploying-a-container.png)
35+
![Deploying a container](img/deploying-a-container.png)
3636

3737
- Go to **Containers**: your pod is in the list.

website/docs/kubernetes/deploying-a-pod-to-kubernetes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ With Podman Desktop, you can deploy a pod to your Kubernetes cluster.
3232

3333
- On the **Deploy generated pod to Kubernetes** screen, the created pod status is _Phase: Running_
3434

35-
![](img/deploying-a-pod.png)
35+
![Deplying a pod](img/deploying-a-pod.png)
3636

3737
- Go to **Pods**: your pod is in the list.

website/docs/kubernetes/kind/installing-kind.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tags: [migrating-to-kubernetes, kind]
1919
1. **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Resources** contain a **Kind** tile.
2020
![Kind resource tile](img/kind-resource.png)
2121
1. You can run the `kind` CLI:
22+
2223
```shell-session
2324
$ kind get clusters
2425
```

website/docs/migrating-from-docker/emulating-docker-cli-with-podman.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Consider emulating Docker CLI with Podman to migrate transparently to Podman.
3131

3232
2. (Optional) Create an empty `/etc/containers/nodocker` file to avoid the `Emulate Docker CLI using podman.` message when running the script.
3333

34-
```
34+
```shell-session
3535
# touch /etc/containers/nodocker
3636
```
3737

website/docs/migrating-from-docker/using-podman-mac-helper.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The service redirects `/var/run/docker` to the fixed user-assigned UNIX socket l
4747

4848
Example:
4949

50-
```
50+
```shell-session
5151
$ podman-mac-helper run -it <your_container> bash
5252
```
5353

website/docs/troubleshooting.md

+28-43
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The tool connects to Podman using the socket on the host on macOS and on a named
1616
This is available only on Podman 4.0.2+
1717
So, please check your version and update.
1818

19-
On Windows, the named pipe is `//./pipe/docker_engine` when Docker Desktop is not installed. It will be solved by https://github.com/containers/podman/issues/13502 / https://github.com/containers/podman/pull/13655. During that time, you may start Docker Desktop so the named pipe is the one expected.
19+
On Windows, the named pipe is `//./pipe/docker_engine` when Docker Desktop is not installed. It will be solved by <https://github.com/containers/podman/issues/13502> / <https://github.com/containers/podman/pull/13655>. During that time, you might start Docker Desktop so the named pipe is the one expected.
2020

2121
#### Check connection
2222

@@ -50,17 +50,17 @@ Twitter: @Podman_io
5050
5151
### Unable to locate Podman Engine
5252
53-
#### Issue:
53+
#### Issue
5454
5555
Despite having Podman Engine installed, you may receive an error as follows -
5656
`Error: No such keg: /usr/local/Cellar/podman`
5757
or any similar error denoting that Podman Engine does not exist.
5858
59-
#### Explanation:
59+
#### Explanation
6060
6161
The Podman Installer and Homebrew use different locations to store the Podman Engine files in the file system. For example, Podman Installer installs Podman Engine in the path `/opt/podman` whereas Homebrew uses the path `/usr/local` for macOS Intel, `/opt/homebrew` for Apple Silicon and `/home/linuxbrew/.linuxbrew` for Linux.
6262
63-
#### Solution:
63+
#### Solution
6464
6565
To check where exactly is your Podman Engine installed, run the command-
6666
@@ -88,64 +88,49 @@ You can now proceed for a fresh installation of Podman Desktop
8888
8989
### Unable to see information about active containers
9090
91-
#### Issue:
91+
#### Issue
9292
9393
In this scenario, the screen may be displaying "No Containers" as shown below despite active containers runnning in the background.
9494
![img](img/containers_error.png)
9595
96-
#### Solution:
96+
#### Solution
9797
9898
There are three ways to work this out.
9999
100100
1. To solve this issue, open the Terminal and run the following commands-
101101
102-
```sh
103-
podman machine stop
104-
```
105-
106-
and then,
107-
108-
```sh
109-
podman machine start
110-
```
111-
112-
2. If this does not work for you, you may proceed with the following commands-
113-
114-
```sh
115-
podman machine rm
116-
```
102+
```shell-session
103+
podman machine stop
104+
podman machine start
105+
```
117106
118-
and then,
107+
2. If this does not work for you, you might proceed with the following commands-
119108
120-
```sh
121-
podman machine init
122-
```
109+
```shell-session
110+
$ podman machine rm
111+
$ podman machine init
112+
```
123113
124114
3. If both of the abovementioned steps don't work for you, run the following commands-
125115
126-
```sh
127-
rm -rf ~/.local/share/containers/podman
128-
```
129-
130-
and then,
131-
132-
```sh
133-
rm -rf ~/.config/containers/
134-
```
116+
```shell-session
117+
$ rm -rf ~/.local/share/containers/podman
118+
$ rm -rf ~/.config/containers/
119+
```
135120
136-
After this, you can start off again by initializing a new Podman Machine and loading up the containers.
121+
After this, you can start off again by initializing a new Podman Machine and loading up the containers.
137122
138123
### Unable to set custom binary path for Podman on macOS
139124
140-
#### Issue:
125+
#### Issue
141126
142127
When setting a custom binary path (under Preferences -> Custom binary path), Podman is unable to find `gvproxy` and `podman-mac-helper`:
143128
144129
```sh
145130
Error: unable to start host networking: "could not find \"gvproxy\" in one of [/usr/local/opt/podman/libexec /opt/homebrew/bin /opt/homebrew/opt/podman/libexec /usr/local/bin /usr/local/libexec/podman /usr/local/lib/podman /usr/libexec/podman /usr/lib/podman $BINDIR/../libexec/podman]. To resolve this error, set the helper_binaries_dir key in the `[engine]` section of containers.conf to the directory containing your helper binaries."
146131
```
147132
148-
#### Solution:
133+
#### Solution
149134
150135
1. Download `gvproxy` from the [gvisor-tap-vsock release page](https://github.com/containers/gvisor-tap-vsock/releases).
151136
2. Build the `podman-mac-helper` from the source code on the [Podman GitHub page](https://github.com/containers/podman/tree/main/cmd/podman-mac-helper).
@@ -161,7 +146,7 @@ helper_binaries_dir=["/Users/user/example_directory"]
161146
162147
### Warning about Docker compatibility mode
163148
164-
#### Issue:
149+
#### Issue
165150
166151
When running the Podman provider, a warning shows regarding Docker compatibility mode on the dashboard:
167152
@@ -174,7 +159,7 @@ This may appear when either:
174159
- The Docker socket is not mounted correctly
175160
- Docker Desktop is also being ran at the same time
176161
177-
#### Solution:
162+
#### Solution
178163
179164
**On macOS:**
180165
@@ -239,7 +224,7 @@ This will stop the Podman Machine for you.
239224
240225
If you are using an Apple Silicon and brew, you might encounter the following error when starting Podman from Podman Desktop
241226
242-
```
227+
```shell-session
243228
Error: qemu exited unexpectedly with exit code 1, stderr: qemu-system-x86_64: invalid accelerator hvf
244229
qemu-system-x86_64: falling back to tcg
245230
qemu-system-x86_64: unable to find CPU model 'host'
@@ -260,9 +245,9 @@ Then run a terminal in native mode (default) and install Podman machine `brew in
260245
261246
Finally clean the Podman machine VMs that had been previously created, and create new ones.
262247
263-
```
264-
podman machine rm podman-machine-default
265-
podman machine init
248+
```shell-session
249+
$ podman machine rm podman-machine-default
250+
$ podman machine init
266251
```
267252
268253
You should be a happy camper from here.

website/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
"@docusaurus/module-type-aliases": "2.4.0",
3737
"@tsconfig/docusaurus": "^1.0.7",
3838
"autoprefixer": "^10.4.14",
39+
"markdownlint": "^0.28.2",
40+
"markdownlint-cli2": "^0.7.1",
3941
"postcss": "^8.4.23",
4042
"tailwindcss": "^3.3.2",
4143
"typescript": "^5.0.4"

0 commit comments

Comments
 (0)