Skip to content

Commit d0c4ea2

Browse files
Update changelog and docs
1 parent bc06b74 commit d0c4ea2

12 files changed

+186
-68
lines changed

.clintonrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"src/**",
66
"lib/**",
77
"examples/**",
8+
"docs/**",
89
".idea/**",
910
"*.{html,jpg}",
1011
"cache.json"

changelog.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.0.0-beta.4 (2022-10-23)
2+
3+
* Refactor with underscore.js
4+
* Optionally set attributes to any nodes not only the first one
5+
* Added more docs
6+
7+
## 1.0.0-beta.3 (2022-10-21)
8+
9+
* Apply additional plugins to tree
10+
111
## 1.0.0-beta.2 (2022-10-20)
212

313
* First beta release

docs/docs.html

+23-6
Original file line numberDiff line numberDiff line change
@@ -1442,12 +1442,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
14421442
</div>
14431443
<!-- /.modal-header -->
14441444
<div class="modal-body">
1445-
<p>
1446-
All notable changes to this project will be documented in this file.
1447-
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
1448-
</p>
1449-
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
1450-
<p>Initial release.</p>
1445+
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
1446+
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1447+
1.0.0-beta.4 (2022-10-23)
1448+
</h3>
1449+
<ul>
1450+
<li>Refactor with underscore.js</li>
1451+
<li>Optionally set attributes to any nodes not only the first one</li>
1452+
<li>Added more docs</li>
1453+
</ul>
1454+
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
1455+
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1456+
1.0.0-beta.3 (2022-10-21)
1457+
</h3>
1458+
<ul>
1459+
<li>Apply additional plugins to tree</li>
1460+
</ul>
1461+
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
1462+
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1463+
1.0.0-beta.2 (2022-10-20)
1464+
</h3>
1465+
<ul>
1466+
<li>First beta release</li>
1467+
</ul>
14511468
</div>
14521469
<!-- /.modal-body -->
14531470
<div class="modal-footer">

docs/index.html

+23-6
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
9696
</div>
9797
<!-- /.modal-header -->
9898
<div class="modal-body">
99-
<p>
100-
All notable changes to this project will be documented in this file.
101-
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
102-
</p>
103-
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
104-
<p>Initial release.</p>
99+
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
100+
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
101+
1.0.0-beta.4 (2022-10-23)
102+
</h3>
103+
<ul>
104+
<li>Refactor with underscore.js</li>
105+
<li>Optionally set attributes to any nodes not only the first one</li>
106+
<li>Added more docs</li>
107+
</ul>
108+
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
109+
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
110+
1.0.0-beta.3 (2022-10-21)
111+
</h3>
112+
<ul>
113+
<li>Apply additional plugins to tree</li>
114+
</ul>
115+
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
116+
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
117+
1.0.0-beta.2 (2022-10-20)
118+
</h3>
119+
<ul>
120+
<li>First beta release</li>
121+
</ul>
105122
</div>
106123
<!-- /.modal-body -->
107124
<div class="modal-footer">

docs/test.html

+23-6
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
194194
</div>
195195
<!-- /.modal-header -->
196196
<div class="modal-body">
197-
<p>
198-
All notable changes to this project will be documented in this file.
199-
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
200-
</p>
201-
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
202-
<p>Initial release.</p>
197+
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
198+
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
199+
1.0.0-beta.4 (2022-10-23)
200+
</h3>
201+
<ul>
202+
<li>Refactor with underscore.js</li>
203+
<li>Optionally set attributes to any nodes not only the first one</li>
204+
<li>Added more docs</li>
205+
</ul>
206+
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
207+
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
208+
1.0.0-beta.3 (2022-10-21)
209+
</h3>
210+
<ul>
211+
<li>Apply additional plugins to tree</li>
212+
</ul>
213+
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
214+
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
215+
1.0.0-beta.2 (2022-10-20)
216+
</h3>
217+
<ul>
218+
<li>First beta release</li>
219+
</ul>
203220
</div>
204221
<!-- /.modal-body -->
205222
<div class="modal-footer">

examples/dist/docs.html

+23-6
Original file line numberDiff line numberDiff line change
@@ -1442,12 +1442,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
14421442
</div>
14431443
<!-- /.modal-header -->
14441444
<div class="modal-body">
1445-
<p>
1446-
All notable changes to this project will be documented in this file.
1447-
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
1448-
</p>
1449-
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
1450-
<p>Initial release.</p>
1445+
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
1446+
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1447+
1.0.0-beta.4 (2022-10-23)
1448+
</h3>
1449+
<ul>
1450+
<li>Refactor with underscore.js</li>
1451+
<li>Optionally set attributes to any nodes not only the first one</li>
1452+
<li>Added more docs</li>
1453+
</ul>
1454+
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
1455+
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1456+
1.0.0-beta.3 (2022-10-21)
1457+
</h3>
1458+
<ul>
1459+
<li>Apply additional plugins to tree</li>
1460+
</ul>
1461+
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
1462+
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1463+
1.0.0-beta.2 (2022-10-20)
1464+
</h3>
1465+
<ul>
1466+
<li>First beta release</li>
1467+
</ul>
14511468
</div>
14521469
<!-- /.modal-body -->
14531470
<div class="modal-footer">

examples/dist/index.html

+23-6
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
9696
</div>
9797
<!-- /.modal-header -->
9898
<div class="modal-body">
99-
<p>
100-
All notable changes to this project will be documented in this file.
101-
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
102-
</p>
103-
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
104-
<p>Initial release.</p>
99+
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
100+
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
101+
1.0.0-beta.4 (2022-10-23)
102+
</h3>
103+
<ul>
104+
<li>Refactor with underscore.js</li>
105+
<li>Optionally set attributes to any nodes not only the first one</li>
106+
<li>Added more docs</li>
107+
</ul>
108+
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
109+
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
110+
1.0.0-beta.3 (2022-10-21)
111+
</h3>
112+
<ul>
113+
<li>Apply additional plugins to tree</li>
114+
</ul>
115+
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
116+
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
117+
1.0.0-beta.2 (2022-10-20)
118+
</h3>
119+
<ul>
120+
<li>First beta release</li>
121+
</ul>
105122
</div>
106123
<!-- /.modal-body -->
107124
<div class="modal-footer">

examples/dist/test.html

+23-6
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
194194
</div>
195195
<!-- /.modal-header -->
196196
<div class="modal-body">
197-
<p>
198-
All notable changes to this project will be documented in this file.
199-
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
200-
</p>
201-
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
202-
<p>Initial release.</p>
197+
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
198+
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
199+
1.0.0-beta.4 (2022-10-23)
200+
</h3>
201+
<ul>
202+
<li>Refactor with underscore.js</li>
203+
<li>Optionally set attributes to any nodes not only the first one</li>
204+
<li>Added more docs</li>
205+
</ul>
206+
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
207+
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
208+
1.0.0-beta.3 (2022-10-21)
209+
</h3>
210+
<ul>
211+
<li>Apply additional plugins to tree</li>
212+
</ul>
213+
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
214+
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
215+
1.0.0-beta.2 (2022-10-20)
216+
</h3>
217+
<ul>
218+
<li>First beta release</li>
219+
</ul>
203220
</div>
204221
<!-- /.modal-body -->
205222
<div class="modal-footer">

examples/src/layouts/body.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<body>
22
<yield></yield>
3-
<stack name="modals"></stack>
43
<stack name="scripts"></stack>
54
</body>

examples/src/layouts/page.html

+23-31
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,29 @@
3030
in Swiss Alp by <a href="https://github.com/thewebartisan7" class="text-muted text-decoration-none fst-italic" target="_blank">@thewebartisan7</a>
3131
</div>
3232
</x-footer>
33+
34+
<x-modal
35+
id="modalWithComponents"
36+
backdrop="true"
37+
computed:keyboard="true"
38+
computed:scrollable="false"
39+
computed:centered="true"
40+
computed:size="lg"
41+
computed:fullscreen="lg"
42+
aware:close="true"
43+
dialogClass="modal-dialog-custom"
44+
contentClass="modal-content-custom"
45+
>
46+
<x-modal.header>
47+
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
48+
</x-modal.header>
49+
50+
<x-modal.body>
51+
<markdown src="changelog.md"></markdown>
52+
</x-modal.body>
53+
54+
<x-modal.footer></x-modal.footer>
55+
</x-modal>
3356
</x-body>
3457
</x-html>
3558

@@ -47,34 +70,3 @@
4770
<push name="scripts">
4871
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>
4972
</push>
50-
51-
<push name="modals">
52-
<x-modal
53-
id="modalWithComponents"
54-
backdrop="true"
55-
computed:keyboard="true"
56-
computed:scrollable="false"
57-
computed:centered="true"
58-
computed:size="lg"
59-
computed:fullscreen="lg"
60-
aware:close="true"
61-
dialogClass="modal-dialog-custom"
62-
contentClass="modal-content-custom"
63-
>
64-
<x-modal.header>
65-
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
66-
</x-modal.header>
67-
68-
<x-modal.body>
69-
<p>
70-
All notable changes to this project will be documented in this file.
71-
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
72-
</p>
73-
74-
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
75-
<p>Initial release.</p>
76-
</x-modal.body>
77-
78-
<x-modal.footer></x-modal.footer>
79-
</x-modal>
80-
</push>

examples/src/md/changelog.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### 1.0.0-beta.4 (2022-10-23)
2+
3+
* Refactor with underscore.js
4+
* Optionally set attributes to any nodes not only the first one
5+
* Added more docs
6+
7+
### 1.0.0-beta.3 (2022-10-21)
8+
9+
* Apply additional plugins to tree
10+
11+
### 1.0.0-beta.2 (2022-10-20)
12+
13+
* First beta release

src/stacks.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function processPushes(tree, content, push) {
2323

2424
const pushContent = render(pushNode.content);
2525

26+
// Review as rendered content is not anymore processable by others plugin
2627
if (typeof pushNode.attrs.once === 'undefined' || !content[pushNode.attrs.name].includes(pushContent)) {
2728
if (typeof pushNode.attrs.prepend === 'undefined') {
2829
content[pushNode.attrs.name].push(pushContent);

0 commit comments

Comments
 (0)