Skip to content

Commit ab624ca

Browse files
committed
chore(docs): support definition of image sizes
1 parent 8f2222d commit ab624ca

File tree

6 files changed

+27
-3
lines changed

6 files changed

+27
-3
lines changed

packages/docs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"homepage": "https://docs.statusfy.co",
3232
"devDependencies": {
3333
"@statusfy/common": "^0.0.1-alpha.1",
34+
"markdown-it-block-image": "0.0.3",
35+
"markdown-it-imsize": "^2.0.1",
3436
"vuepress": "^0.14.4"
3537
}
3638
}

packages/docs/src/.vuepress/config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ module.exports = {
99
postcss: {
1010
puglins: postcss.plugins()
1111
},
12+
markdown: {
13+
config: md => {
14+
md.use(require('markdown-it-imsize'));
15+
md.use(require("markdown-it-block-image"), {
16+
outputContainer: 'p',
17+
containerClassName: 'img-container'
18+
});
19+
}
20+
},
1221
head: [
1322
['link', { rel: 'manifest', href: '/manifest.json' }],
1423
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/assets/icons/favicon-16x16.png' }],

packages/docs/src/.vuepress/style.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
.sidebar
1515
background-color #fafbfc !important
16+
17+
.img-container
18+
text-align: center

packages/docs/src/es/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Esta documentación está en desarrollo
66

77

88

9-
![An image](/assets/img/statusfy-home-es.png)
9+
![Página de Inicio de Statusfy](/assets/img/statusfy-home-es.png =1280x829)
1010

1111
## How It Works
1212

packages/docs/src/guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Statusfy is a simple open source Status Page system designed to be built and maintained with minimum effort. You can easily create a fast Status Page Website either [**Static Generated**](../guide/deploy.md#static-generated) or [**Server Rendered**](../guide/deploy.md#server-rendered) and easily deploy it to a variety of [hosting services](../guide/deploy.md#services).
44

5-
![An image](/assets/img/statusfy-home-en.png)
5+
![Statusfy Homepage](/assets/img/statusfy-home-en.png =1280x829)
66

77
## How It Works
88

@@ -32,6 +32,6 @@ Statusfy is still a work in progress. There are a few things that are not curren
3232
- RSS
3333
- Plugins support
3434
- Custom Themes support
35-
- Different Data Sources: MySQL, PostgreSQL, NoSQL alternatives, etc.
35+
- Different Data Sources: MySQL, PostgreSQL, SQLite, etc.
3636

3737
[Contributions are welcome!](https://github.com/bazzite/statusfy)

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9624,6 +9624,11 @@ markdown-it-anchor@^5.0.2:
96249624
resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-5.0.2.tgz#cdd917a05b7bf92fb736a6dae3385c6d0d0fa552"
96259625
integrity sha512-AFM/woBI8QDJMS/9+MmsBMT5/AR+ImfOsunQZTZhzcTmna3rIzAzbOh5E0l6mlFM/i9666BpUtkqQ9bS7WApCg==
96269626

9627+
markdown-it-block-image@0.0.3:
9628+
version "0.0.3"
9629+
resolved "https://registry.yarnpkg.com/markdown-it-block-image/-/markdown-it-block-image-0.0.3.tgz#d3fe650ebf2215ea2c7afb577b394e5f7ffc12ca"
9630+
integrity sha1-0/5lDr8iFeosevtXezlOX3/8Eso=
9631+
96279632
markdown-it-container@^2.0.0:
96289633
version "2.0.0"
96299634
resolved "https://registry.yarnpkg.com/markdown-it-container/-/markdown-it-container-2.0.0.tgz#0019b43fd02eefece2f1960a2895fba81a404695"
@@ -9634,6 +9639,11 @@ markdown-it-emoji@^1.4.0:
96349639
resolved "https://registry.yarnpkg.com/markdown-it-emoji/-/markdown-it-emoji-1.4.0.tgz#9bee0e9a990a963ba96df6980c4fddb05dfb4dcc"
96359640
integrity sha1-m+4OmpkKljupbfaYDE/dsF37Tcw=
96369641

9642+
markdown-it-imsize@^2.0.1:
9643+
version "2.0.1"
9644+
resolved "https://registry.yarnpkg.com/markdown-it-imsize/-/markdown-it-imsize-2.0.1.tgz#cca0427905d05338a247cb9ca9d968c5cddd5170"
9645+
integrity sha1-zKBCeQXQUziiR8ucqdloxc3dUXA=
9646+
96379647
markdown-it-table-of-contents@^0.4.0:
96389648
version "0.4.3"
96399649
resolved "https://registry.yarnpkg.com/markdown-it-table-of-contents/-/markdown-it-table-of-contents-0.4.3.tgz#6453925a76e49b9b3d9569a0d89f1c2168b46982"

0 commit comments

Comments
 (0)