jekyll-vitepress-theme 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42919ce1c207d6382f11a8e1c0498525e890b4a6410c7eac2c586698c48c48db
4
- data.tar.gz: f798a8d0367650af91a7948ce6d8847f1c591e227854e8fa393c0220e982a8a2
3
+ metadata.gz: b441f74c3173193c1236784b889d74d8c3d63920b8df58c7a810de72e35d2953
4
+ data.tar.gz: a4ff1d25d78309553f30ea9bf660accbbdad9c4ec5001cd2e25fac63541f7911
5
5
  SHA512:
6
- metadata.gz: f6385ca8d5d4dd0d467659eab817bafc565a9c75d19d250e8b4078f1dd62db105c37147e1238b02866095e2bdc0ac72ad140886f65ca6a245bc17d20634dcb73
7
- data.tar.gz: a30a702ced53838939e95c53593e4a3278f8fffabc6e6ba36ee62978e13812091cae85037e24f239317431bb7b189f0f8c69d8708ddba93211bf3226d69905b7
6
+ metadata.gz: b10e1e1833cac956149bb63b925027950196d9a9bd806a3a51548128083b98d5935a0f4f7da79f86117905e026c12e4b198cd4969fbc3cddd31726c91ef343c2
7
+ data.tar.gz: ac38b254d36662b388cd457872d3d689f6fda67cd6ecbcb499ce00b728d1a576ee31343145d6ad87603ac038aeb633f6978257b5b39eb664c7b6e943d0772945
data/README.md CHANGED
@@ -83,7 +83,7 @@ bundle exec overcommit --run
83
83
 
84
84
  ## Docs deployment (this repo)
85
85
 
86
- - `main` deploys a single docs site at `/`
86
+ - `master` deploys a single docs site at `/`
87
87
  - No secondary version paths are published in default mode (`/latest/`, `/v/*`, `/next/`)
88
88
  - Optional multi-version deployment is documented in [_advanced/deployment.md](_advanced/deployment.md)
89
89
 
@@ -0,0 +1,22 @@
1
+ {% assign alert_type = include.type | default: "tip" %}
2
+ {% assign default_titles = "info:INFO,note:NOTE,tip:TIP,important:IMPORTANT,warning:WARNING,danger:DANGER,caution:CAUTION,details:Details" | split: "," %}
3
+ {% assign alert_title = include.title %}
4
+ {% unless alert_title %}
5
+ {% for pair in default_titles %}
6
+ {% assign kv = pair | split: ":" %}
7
+ {% if kv[0] == alert_type %}
8
+ {% assign alert_title = kv[1] %}
9
+ {% endif %}
10
+ {% endfor %}
11
+ {% endunless %}
12
+ {% if alert_type == "details" %}
13
+ <details class="details custom-block">
14
+ <summary>{{ alert_title }}</summary>
15
+ <p>{{ include.content | markdownify | remove: '<p>' | remove: '</p>' }}</p>
16
+ </details>
17
+ {% else %}
18
+ <div class="{{ alert_type }} custom-block">
19
+ <p class="custom-block-title">{{ alert_title }}</p>
20
+ <p>{{ include.content | markdownify | remove: '<p>' | remove: '</p>' }}</p>
21
+ </div>
22
+ {% endif %}
@@ -54,7 +54,7 @@
54
54
  <div class="content">
55
55
  <div class="content-container">
56
56
  <main class="main">
57
- <div class="vp-doc{% if page.url %} {{ page.url | replace: '/', '_' | replace: '.', '_' }}{% endif %}">
57
+ <div class="vp-doc external-link-icon-enabled{% if page.url %} {{ page.url | replace: '/', '_' | replace: '.', '_' }}{% endif %}">
58
58
  {% assign show_auto_page_title = false %}
59
59
  {% if page.title and page_theme.auto_title != false %}
60
60
  {% unless content contains '<h1' %}
@@ -80,7 +80,7 @@
80
80
  <div class="content">
81
81
  <div class="content-container">
82
82
  <main class="main">
83
- <div class="vp-doc{% if page.url %} {{ page.url | replace: '/', '_' | replace: '.', '_' }}{% endif %}">
83
+ <div class="vp-doc external-link-icon-enabled{% if page.url %} {{ page.url | replace: '/', '_' | replace: '.', '_' }}{% endif %}">
84
84
  {% assign show_auto_page_title = false %}
85
85
  {% if page.title and page_theme.auto_title != false %}
86
86
  {% unless content contains '<h1' %}
@@ -1666,33 +1666,6 @@ html.dark .only-light {
1666
1666
  background: var(--vp-c-danger-soft);
1667
1667
  }
1668
1668
 
1669
- /* Just-the-docs callout class compatibility */
1670
- .vp-doc blockquote.note,
1671
- .vp-doc .note {
1672
- border: 1px solid var(--vp-custom-block-tip-border);
1673
- border-radius: 8px;
1674
- padding: 12px 16px;
1675
- color: var(--vp-custom-block-tip-text);
1676
- background-color: var(--vp-custom-block-tip-bg);
1677
- }
1678
-
1679
- .vp-doc blockquote.warning,
1680
- .vp-doc .warning {
1681
- border: 1px solid var(--vp-custom-block-warning-border);
1682
- border-radius: 8px;
1683
- padding: 12px 16px;
1684
- color: var(--vp-custom-block-warning-text);
1685
- background-color: var(--vp-custom-block-warning-bg);
1686
- }
1687
-
1688
- .vp-doc blockquote.new,
1689
- .vp-doc .new {
1690
- border: 1px solid var(--vp-custom-block-success-border, transparent);
1691
- border-radius: 8px;
1692
- padding: 12px 16px;
1693
- color: var(--vp-c-success-1);
1694
- background-color: var(--vp-c-success-soft);
1695
- }
1696
1669
 
1697
1670
  @media (max-width: 1279px) {
1698
1671
  .VPDoc.has-aside .content-container {
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module VitePressTheme
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.1.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-vitepress-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carmine Paolino
@@ -40,6 +40,7 @@ extra_rdoc_files: []
40
40
  files:
41
41
  - LICENSE
42
42
  - README.md
43
+ - _includes/alert.html
43
44
  - _includes/doc_footer.html
44
45
  - _includes/head.html
45
46
  - _includes/home.html