-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootstrap Stimulus and Strada documentation pages
- Loading branch information
Showing
11 changed files
with
162 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Stimulus Guides | ||
library: stimulus | ||
breadcrumb: Guides | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
<h3 class="font-bold text-lg">Guides</h3> | ||
|
||
<% site.resources.glob("documentation/stimulus/guides/*.html.*").sort_by(&:request_path).each do |page| %> | ||
<li> | ||
<a href="<%= page.request_path %>"> <%= page.data.fetch("title") %></a> | ||
</li> | ||
<% end %> | ||
<% end %> |
10 changes: 10 additions & 0 deletions
10
app/content/pages/documentation/stimulus/guides/dont-use-inline-scripts.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Don't use inline script tags | ||
library: stimulus | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
<%= render Page::ContributeComponent.new(file: current_page.asset.path.path) %> | ||
<% end %> |
10 changes: 10 additions & 0 deletions
10
app/content/pages/documentation/stimulus/guides/importing-controllers-form-packages.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Importing Stimulus controllers from NPM packages | ||
library: stimulus | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
<%= render Page::ContributeComponent.new(file: current_page.asset.path.path) %> | ||
<% end %> |
13 changes: 13 additions & 0 deletions
13
app/content/pages/documentation/stimulus/guides/testing-stimulus-controllers.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Testing Stimulus Controllers | ||
library: stimulus | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
https://github.com/symfony/stimulus-testing | ||
https://modern-web.dev/docs/test-runner/overview | ||
|
||
<%= render Page::ContributeComponent.new(file: current_page.asset.path.path) %> | ||
<% end %> |
10 changes: 10 additions & 0 deletions
10
app/content/pages/documentation/stimulus/guides/using-stimulus-with-typescript.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Using Stimulus with TypeScript | ||
library: stimulus | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
<%= render Page::ContributeComponent.new(file: current_page.asset.path.path) %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Strada Guides | ||
library: strada | ||
breadcrumb: Guides | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
<h3 class="font-bold text-lg">Guides</h3> | ||
|
||
<% site.resources.glob("documentation/strada/guides/*.html.*").sort_by(&:request_path).each do |page| %> | ||
<li> | ||
<a href="<%= page.request_path %>"> <%= page.data.fetch("title") %></a> | ||
</li> | ||
<% end %> | ||
<% end %> |
10 changes: 10 additions & 0 deletions
10
app/content/pages/documentation/strada/guides/setup-strada.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Setup Strada | ||
library: strada | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
<%= render Page::ContributeComponent.new(file: current_page.asset.path.path) %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Turbo Guides | ||
library: turbo | ||
breadcrumb: Guides | ||
--- | ||
|
||
<%= render Page::ContainerComponent.new(page: current_page) do |page| %> | ||
<% page.with_title(title: current_page.data.fetch("title")) %> | ||
|
||
<h3 class="font-bold text-lg">Guides</h3> | ||
|
||
<% site.resources.glob("documentation/turbo/guides/*.html.*").sort_by(&:request_path).each do |page| %> | ||
<li> | ||
<a href="<%= page.request_path %>"> <%= page.data.fetch("title") %></a> | ||
</li> | ||
<% end %> | ||
<% end %> |