Skip to content

Commit 95c2a4d

Browse files
author
Mateusz Bronisław Wasilewski
committed
Merge branch 'demo' into 'main'
feat: [demo]: Added demo for dog lovers See merge request mwasilew/2023-ZPRP!22
2 parents 0fcbf8a + 7e33c36 commit 95c2a4d

13 files changed

+85
-14
lines changed

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ clean:
2626
rm -rf .tox
2727
rm -rf .hypothesis
2828

29-
plugin_demo:
30-
cd demo
29+
demo_cats:
30+
cd demo/demo_cats
31+
mkdocs serve
32+
33+
demo_dogs:
34+
cd demo/demo_dogs
3135
mkdocs serve
3236

3337
.PHONY: tests clean pre_commit

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,5 @@ Example:
7171
![MyImage]@small(../images/b.png)
7272
```
7373

74-
#### Info:
75-
If you accidentally use a tag that is not specified in the documentation, the tag will be removed and the image will be displayed with no additional formatting.
76-
77-
7874
### Demo:
79-
You can see the plugin in action after you clone this project to your local repository by executing `make plugin_demo` in the main directory.
75+
You can see the plugin in action after you clone this project to your local repository. Depending on whether you're a dog or a cat person, execute `make demo_dogs` or `make demo_cats`.
File renamed without changes.
File renamed without changes.

demo/mkdocs.yml renamed to demo/demo_cats/mkdocs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ plugins:
1313
- image-formatter:
1414
image_size:
1515
small:
16-
height: 100px
17-
width: 100px
16+
height: 250px
17+
width: 250px
1818
big:
19-
height: 200px
20-
width: 200px
19+
height: 500px
20+
width: 500px
2121

2222
nav:
2323
- Home: index.md
393 KB
Loading

demo/demo_dogs/docs/img/beagle.jpg

307 KB
Loading
38.1 KB
Loading

demo/demo_dogs/docs/index.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Dogs
2+
3+
## Introduction
4+
5+
Dogs, often referred to as "man's best friend," are domesticated mammals known for their loyalty, companionship, and diverse breeds. Here's a glimpse into the fascinating world of dogs.
6+
7+
## Breeds
8+
9+
### 1. Labrador Retriever
10+
11+
Labrador Retrievers are one of the most popular dog breeds known for their friendly nature and intelligence. They come in three colors: chocolate, black, and yellow.
12+
13+
![Labrador Retriever]@small(./img/Labrador-retriever.jpg)
14+
15+
### 2. German Shepherd
16+
17+
German Shepherds are versatile and intelligent working dogs. They are known for their courage, strength, and trainability.
18+
19+
![German Shepherd]@small(./img//german-shepherd-dog.jpeg)
20+
21+
### 3. Beagle
22+
23+
Beagles are small to medium-sized dogs with a keen sense of smell. They are friendly, curious, and make excellent family pets.
24+
25+
![Beagle]@big(./img/beagle.jpg)
26+
27+
## Behavior
28+
29+
Dogs exhibit a wide range of behaviors that endear them to humans.
30+
31+
### 1. Wagging Tails
32+
33+
A wagging tail often indicates a dog's excitement or happiness. Understanding tail movements helps interpret a dog's emotions.
34+
35+
### 2. Fetching
36+
37+
Many dogs love to play fetch, showcasing their natural retrieval instincts. It's an excellent way to engage and exercise them.
38+
39+
### 3. Loyalty
40+
41+
Dogs are known for their unwavering loyalty and devotion to their owners. They form strong bonds with human companions.
42+
43+
## Health
44+
45+
### 1. Common Health Issues
46+
47+
- **Hip Dysplasia:** Larger breeds may be prone to hip dysplasia. Regular exercise and a balanced diet can help prevent this.
48+
49+
- **Dental Care:** Regular

demo/demo_dogs/mkdocs.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
site_name: Test with cats
2+
3+
dev_addr: 127.0.0.1:8002
4+
5+
theme:
6+
name: "material"
7+
8+
markdown_extensions:
9+
- attr_list
10+
11+
plugins:
12+
- mkdocstrings
13+
- image-formatter:
14+
image_size:
15+
small:
16+
height: 50%
17+
width: 50%
18+
big:
19+
height: 80%
20+
width: 80%
21+
22+
nav:
23+
- Home: index.md

docs/index.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,5 @@ Example:
6868
![MyImage]@small(../images/b.png)
6969
```
7070

71-
#### Info:
72-
If you accidentally use a tag that is not specified in the documentation, the tag will be removed and the image will be displayed with no additional formatting.
73-
71+
### Demo:
72+
You can see the plugin in action after you clone this project to your local repository. Depending on whether you're a dog or a cat person, execute `make demo_dogs` or `make demo_cats`.

0 commit comments

Comments
 (0)