From 9f0dec9535c3d3e94558c7130d6c34ef0cc3c7b6 Mon Sep 17 00:00:00 2001
From: Domizio Demichelis
Date: Thu, 7 Jun 2018 14:48:05 +0700
Subject: [PATCH] fix for broken links in docs
---
docs/extras/bootstrap.md | 6 +++---
docs/extras/compact.md | 2 +-
docs/extras/responsive.md | 2 +-
docs/how-to.md | 12 ++++++------
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/docs/extras/bootstrap.md b/docs/extras/bootstrap.md
index 5ec818e8d..267688cbe 100644
--- a/docs/extras/bootstrap.md
+++ b/docs/extras/bootstrap.md
@@ -27,9 +27,9 @@ or with a template:
This extra is composed of 4 files:
- [bootstrap.rb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/bootstrap.rb)
-- [nav_bootstrap.html.erb](https://github.com/ddnexus/pagy/blob/master/lib/templates/nav_bootstrap.html.erb) (optional template)
-- [nav_bootstrap.html.haml](https://github.com/ddnexus/pagy/blob/master/lib/templates/nav_bootstrap.html.haml) (optional template)
-- [nav_bootstrap.html.slim](https://github.com/ddnexus/pagy/blob/master/lib/templates/nav_bootstrap.html.slim) (optional template)
+- [nav_bootstrap.html.erb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav_bootstrap.html.erb) (optional template)
+- [nav_bootstrap.html.haml](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav_bootstrap.html.haml) (optional template)
+- [nav_bootstrap.html.slim](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav_bootstrap.html.slim) (optional template)
## Methods
diff --git a/docs/extras/compact.md b/docs/extras/compact.md
index ba56922d1..4ae573ff3 100644
--- a/docs/extras/compact.md
+++ b/docs/extras/compact.md
@@ -41,7 +41,7 @@ Then use the responsive helper(s) in any view:
This extra is composed of 2 small files:
-- [compact.rb](https://github.com/ddnexus/pagy/blob/master/lib/pagyextras/compact.rb)
+- [compact.rb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/compact.rb)
- [pagy-compact.js](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/javascripts/pagy-compact.js)
## Methods
diff --git a/docs/extras/responsive.md b/docs/extras/responsive.md
index 7bdaf2cd2..f1fa3e687 100644
--- a/docs/extras/responsive.md
+++ b/docs/extras/responsive.md
@@ -44,7 +44,7 @@ Then use the responsive helper(s) in any view:
This extra is composed of 2 small files:
- [responsive.rb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/responsive.rb)
-- [pagy-responsive.js](https://github.com/ddnexus/extras/blob/master/lib/pagy/extras/javascripts/pagy-responsive.js)
+- [pagy-responsive.js](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/javascripts/pagy-responsive.js)
## Variables
diff --git a/docs/how-to.md b/docs/how-to.md
index aeef5ff6b..24bd7582c 100644
--- a/docs/how-to.md
+++ b/docs/how-to.md
@@ -296,13 +296,13 @@ Pagy provides the replacement templates for the `pagy_nav` and the `pagy_nav_boo
They produce exactly the same output of the helpers, but they are slower, so use them only if you need to edit something. In that case customize a copy in your app, then use it as any other template: just remember to pass the `:pagy` local set to the `@pagy` object. Here are the links to the sources to copy:
- `pagy`
- - [nav.html.erb](https://github.com/ddnexus/pagy/blob/master/lib/extras/templates/nav.html.erb)
- - [nav.html.haml](https://github.com/ddnexus/pagy/blob/master/lib/extras/templates/nav.html.haml)
- - [nav.html.slim](https://github.com/ddnexus/pagy/blob/master/lib/extras/templates/nav.html.slim)
+ - [nav.html.erb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav.html.erb)
+ - [nav.html.haml](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav.html.haml)
+ - [nav.html.slim](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav.html.slim)
- `bootstrap`
- - [nav_bootstrap.html.erb](https://github.com/ddnexus/pagy/blob/master/lib/extras/templates/nav_bootstrap.html.erb)
- - [nav_bootstrap.html.haml](https://github.com/ddnexus/pagy/blob/master/lib/extras/templates/nav_bootstrap.html.haml)
- - [nav_bootstrap.html.slim](https://github.com/ddnexus/pagy/blob/master/lib/extras/templates/nav_bootstrap.html.slim)
+ - [nav_bootstrap.html.erb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav_bootstrap.html.erb)
+ - [nav_bootstrap.html.haml](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav_bootstrap.html.haml)
+ - [nav_bootstrap.html.slim](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/templates/nav_bootstrap.html.slim)
If you need to try/compare an unmodified built-in template, you can render it right from the Pagy gem with: