Skip to content

Commit

Permalink
more logical doc mapping (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers authored Oct 19, 2021
1 parent ef02151 commit 4ba1da2
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/plugins/builders/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def docs_in_category(category)
end

def indexed_docs_by_category(category)
docs_in_category(category).sort_by { |doc| doc.data.doc_order }
docs_in_category(category).sort_by { |doc| doc.data.slug }
end

def on_github(page)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Make Every Form a Remote Form in Rails
doc_order: 40
permalink: /make-every-form-remote-in-rails
---

Rails has a special configuration for remote forms as of `v6.1` that
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Programmatically Fetch with events
permalink: /programmatic-fetching-with-events
---

Remember how I said earlier its just fetch? Well there are 3 additional
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Using .js.erb
doc_order: 40
permalink: /use-js-erb
---

## [Rails Configuration](#rails-configuration)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Prefetching
doc_order: 20
permalink: /prefetching
---

## [Why should I prefetch?](#why-should-i-prefetch)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Integrate CableCar
doc_order: 10
permalink: /integrate-cablecar
---

## [CableCar](#cablecar)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Integrate Turbo Streams with mrujs
doc_order: 50
title: Integrate Turbo with mrujs
permalink: /integrate-turbo
---

Mrujs ships with a plugin to automatically handle TurboStream responses.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Using Shoelace with Mrujs
doc_order: 70
title: Using Shoelace with mrujs
permalink: /using-shoelace-with-mrujs
---

Mrujs ships with a Shoelace plugin. Currently this plugin is fairly minimal. At its
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Comparison to UJS
doc_order: 10
permalink: /comparison-to-ujs
---

Before we start comparing, let's start with why.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Understanding Remote Forms and Links
doc_order: 20
permalink: /remote-forms-and-links
---
What are remote forms and links? When you see the word "Remote" referencing forms or links,
it means the element is submitting its contents via "AJAX".
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Ajax Lifecycle
doc_order: 30
permalink: /ajax-lifecycle
---

## Events
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: (Experimental) MimeTypes
doc_order: 80
permalink: /mime-types
---

mrujs comes with a set of predefined MimeTypes for `AcceptHeaders`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: The Fetch API
doc_order: 50
permalink: /fetch
---

## [Fetch](#fetch)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: (Experimental) QuerySelectors
doc_order: 80
permalink: /query-selectors
---

mrujs comes with a number of preconstructed querySelectors. These can be
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Integrations
doc_order: 90
permalink: /integrations
---

## [Navigation](#navigation)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: (Experimental) Plugins
doc_order: 60
permalink: /plugins
---

## [Plugin Interface](#plugin-interface)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Known Issues
doc_order: 100
permalink: /known-issues
---

## [Turbolinks Gem](#turbolinks-gem)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
---
title: (Experimental) Async Confirm Dialogs
doc_order: 120
title: (Deprecated) Async Confirm Dialogs
permalink: /async-confirms
---

<%= render(Alert.new(title: "Warning:", type: :warning)) do %>
<p>
Async confirms in their current state are deprecated until a more
stable API is put into place.
</p>
<% end %>

Mrujs offers an alternative to `window.confirm()` dialogs in the form of
`data-async-confirm="<text>"` which will display a modal which will not block the
main thread.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Understanding Method Masking
doc_order: 85
permalink: /understanding-method-masking
---

Mrujs has a special technique it uses for all links to use
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Getting Started
doc_order: 10
permalink: /getting-started
---

## [1. Install Mrujs](#1-install-mrujs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Practical Guide to mrujs
doc_order: 20
permalink: /practical-guide-to-mrujs
---

If you're new to the concept of UJS, or want a practical example of what
Expand Down

0 comments on commit 4ba1da2

Please sign in to comment.