Skip to content

Commit

Permalink
Update changelog and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thewebartisan7 committed Oct 23, 2022
1 parent bc06b74 commit d0c4ea2
Show file tree
Hide file tree
Showing 12 changed files with 186 additions and 68 deletions.
1 change: 1 addition & 0 deletions .clintonrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"src/**",
"lib/**",
"examples/**",
"docs/**",
".idea/**",
"*.{html,jpg}",
"cache.json"
Expand Down
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 1.0.0-beta.4 (2022-10-23)

* Refactor with underscore.js
* Optionally set attributes to any nodes not only the first one
* Added more docs

## 1.0.0-beta.3 (2022-10-21)

* Apply additional plugins to tree

## 1.0.0-beta.2 (2022-10-20)

* First beta release
29 changes: 23 additions & 6 deletions docs/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1442,12 +1442,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</div>
<!-- /.modal-header -->
<div class="modal-body">
<p>
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
</p>
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
<p>Initial release.</p>
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1.0.0-beta.4 (2022-10-23)
</h3>
<ul>
<li>Refactor with underscore.js</li>
<li>Optionally set attributes to any nodes not only the first one</li>
<li>Added more docs</li>
</ul>
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1.0.0-beta.3 (2022-10-21)
</h3>
<ul>
<li>Apply additional plugins to tree</li>
</ul>
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1.0.0-beta.2 (2022-10-20)
</h3>
<ul>
<li>First beta release</li>
</ul>
</div>
<!-- /.modal-body -->
<div class="modal-footer">
Expand Down
29 changes: 23 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</div>
<!-- /.modal-header -->
<div class="modal-body">
<p>
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
</p>
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
<p>Initial release.</p>
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1.0.0-beta.4 (2022-10-23)
</h3>
<ul>
<li>Refactor with underscore.js</li>
<li>Optionally set attributes to any nodes not only the first one</li>
<li>Added more docs</li>
</ul>
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1.0.0-beta.3 (2022-10-21)
</h3>
<ul>
<li>Apply additional plugins to tree</li>
</ul>
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1.0.0-beta.2 (2022-10-20)
</h3>
<ul>
<li>First beta release</li>
</ul>
</div>
<!-- /.modal-body -->
<div class="modal-footer">
Expand Down
29 changes: 23 additions & 6 deletions docs/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</div>
<!-- /.modal-header -->
<div class="modal-body">
<p>
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
</p>
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
<p>Initial release.</p>
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1.0.0-beta.4 (2022-10-23)
</h3>
<ul>
<li>Refactor with underscore.js</li>
<li>Optionally set attributes to any nodes not only the first one</li>
<li>Added more docs</li>
</ul>
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1.0.0-beta.3 (2022-10-21)
</h3>
<ul>
<li>Apply additional plugins to tree</li>
</ul>
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1.0.0-beta.2 (2022-10-20)
</h3>
<ul>
<li>First beta release</li>
</ul>
</div>
<!-- /.modal-body -->
<div class="modal-footer">
Expand Down
29 changes: 23 additions & 6 deletions examples/dist/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1442,12 +1442,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</div>
<!-- /.modal-header -->
<div class="modal-body">
<p>
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
</p>
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
<p>Initial release.</p>
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1.0.0-beta.4 (2022-10-23)
</h3>
<ul>
<li>Refactor with underscore.js</li>
<li>Optionally set attributes to any nodes not only the first one</li>
<li>Added more docs</li>
</ul>
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1.0.0-beta.3 (2022-10-21)
</h3>
<ul>
<li>Apply additional plugins to tree</li>
</ul>
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1.0.0-beta.2 (2022-10-20)
</h3>
<ul>
<li>First beta release</li>
</ul>
</div>
<!-- /.modal-body -->
<div class="modal-footer">
Expand Down
29 changes: 23 additions & 6 deletions examples/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</div>
<!-- /.modal-header -->
<div class="modal-body">
<p>
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
</p>
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
<p>Initial release.</p>
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1.0.0-beta.4 (2022-10-23)
</h3>
<ul>
<li>Refactor with underscore.js</li>
<li>Optionally set attributes to any nodes not only the first one</li>
<li>Added more docs</li>
</ul>
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1.0.0-beta.3 (2022-10-21)
</h3>
<ul>
<li>Apply additional plugins to tree</li>
</ul>
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1.0.0-beta.2 (2022-10-20)
</h3>
<ul>
<li>First beta release</li>
</ul>
</div>
<!-- /.modal-body -->
<div class="modal-footer">
Expand Down
29 changes: 23 additions & 6 deletions examples/dist/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,29 @@ <h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</div>
<!-- /.modal-header -->
<div class="modal-body">
<p>
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
</p>
<h5>[1.0.0-beta.2] - 2022.10.20</h5>
<p>Initial release.</p>
<h3 id="1.0.0-beta.4-(2022-10-23)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.4-(2022-10-23)">#</a>
1.0.0-beta.4 (2022-10-23)
</h3>
<ul>
<li>Refactor with underscore.js</li>
<li>Optionally set attributes to any nodes not only the first one</li>
<li>Added more docs</li>
</ul>
<h3 id="1.0.0-beta.3-(2022-10-21)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.3-(2022-10-21)">#</a>
1.0.0-beta.3 (2022-10-21)
</h3>
<ul>
<li>Apply additional plugins to tree</li>
</ul>
<h3 id="1.0.0-beta.2-(2022-10-20)" tabindex="-1">
<a class="header-anchor" href="#1.0.0-beta.2-(2022-10-20)">#</a>
1.0.0-beta.2 (2022-10-20)
</h3>
<ul>
<li>First beta release</li>
</ul>
</div>
<!-- /.modal-body -->
<div class="modal-footer">
Expand Down
1 change: 0 additions & 1 deletion examples/src/layouts/body.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<body>
<yield></yield>
<stack name="modals"></stack>
<stack name="scripts"></stack>
</body>
54 changes: 23 additions & 31 deletions examples/src/layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@
in Swiss Alp by <a href="https://github.com/thewebartisan7" class="text-muted text-decoration-none fst-italic" target="_blank">@thewebartisan7</a>
</div>
</x-footer>

<x-modal
id="modalWithComponents"
backdrop="true"
computed:keyboard="true"
computed:scrollable="false"
computed:centered="true"
computed:size="lg"
computed:fullscreen="lg"
aware:close="true"
dialogClass="modal-dialog-custom"
contentClass="modal-content-custom"
>
<x-modal.header>
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</x-modal.header>

<x-modal.body>
<markdown src="changelog.md"></markdown>
</x-modal.body>

<x-modal.footer></x-modal.footer>
</x-modal>
</x-body>
</x-html>

Expand All @@ -47,34 +70,3 @@
<push name="scripts">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</push>

<push name="modals">
<x-modal
id="modalWithComponents"
backdrop="true"
computed:keyboard="true"
computed:scrollable="false"
computed:centered="true"
computed:size="lg"
computed:fullscreen="lg"
aware:close="true"
dialogClass="modal-dialog-custom"
contentClass="modal-content-custom"
>
<x-modal.header>
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
</x-modal.header>

<x-modal.body>
<p>
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
</p>

<h5>[1.0.0-beta.2] - 2022.10.20</h5>
<p>Initial release.</p>
</x-modal.body>

<x-modal.footer></x-modal.footer>
</x-modal>
</push>
13 changes: 13 additions & 0 deletions examples/src/md/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### 1.0.0-beta.4 (2022-10-23)

* Refactor with underscore.js
* Optionally set attributes to any nodes not only the first one
* Added more docs

### 1.0.0-beta.3 (2022-10-21)

* Apply additional plugins to tree

### 1.0.0-beta.2 (2022-10-20)

* First beta release
1 change: 1 addition & 0 deletions src/stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function processPushes(tree, content, push) {

const pushContent = render(pushNode.content);

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

0 comments on commit d0c4ea2

Please sign in to comment.