Skip to content

Commit 995f6ed

Browse files
authored
Merge pull request #507 from dabutvin/update-docs-with-wiki-support
Updated docs regarding wiki compression
2 parents 6e0e360 + fa199f5 commit 995f6ed

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

Docs/compress-wiki.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Compress Wiki
2+
3+
If your repository has a wiki with images, you can opt in to optimize these images as well as your code repo.
4+
5+
All of the images in the wiki will be updated directly on the default branch. This is due to the lack of branch management and no pull requests available within GitHub wikis.
6+
7+
By adding `compressWiki` in the `.imgbotconfig` file as displayed below, you will enable this feature.
8+
9+
```
10+
{
11+
"schedule": "daily", // daily|weekly|monthly
12+
"ignoredFiles": [
13+
"*.jpg", // ignore by extension
14+
"image1.png", // ignore by filename
15+
"public/special_images/*", // ignore by folderpath
16+
],
17+
"aggressiveCompression": "true" // true|false
18+
"compressWiki": "true" // true|false
19+
}
20+
```

Docs/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Here is an example .imgbotconfig setup that shows some of the options.
1515
"public/special_images/*", // ignore by folderpath
1616
],
1717
"aggressiveCompression": "true" // true|false
18+
"compressWiki": "true" // true|false
1819
}
1920
```
2021

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ This file should be placed in the root of the repository and set to your liking.
1919
"image1.png", // by filename
2020
"public/special_images/*", // by folderpath
2121
],
22-
"aggressiveCompression": true // true|false
22+
"aggressiveCompression": "true", // true|false
23+
"compressWiki": "true" // true|false
2324
}
2425
```
2526

@@ -49,6 +50,14 @@ to help@imgbot.net
4950
- Opt in to use lossy compression algorithms
5051
- The default behavior without this setting is lossless compression
5152

53+
**compressWiki**
54+
55+
- optional
56+
- Accepts: true|false
57+
- Opt in to also compress wiki repo
58+
- Example: `https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.wiki.git`
59+
- The default behavior is opt out
60+
5261
Find out more: https://imgbot.net/docs
5362

5463
## Contributing

Web/src/docs/metadata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"slug": "aggressive-compression",
2828
"title": "Aggressive compression"
2929
},
30+
{
31+
"slug": "compress-wiki",
32+
"title": "Compress wiki"
33+
},
3034
{
3135
"slug": "authorization",
3236
"title": "Authorization"

0 commit comments

Comments
 (0)