markdowndocs 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/app/controllers/markdowndocs/application_controller.rb +12 -0
- data/lib/markdowndocs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cbc24df1640795c80c5a97707ff06fa696df135596f5698a5148814f7321444e
|
|
4
|
+
data.tar.gz: 3374e07f7af7b08170034250b467929a8644a91e66cd7b514d54ea8afa598eb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ecdbc6e6da6a6e2f787cd9063a57a1b6d4fdfd1e43c4836cdd5682eee5e7c5fc53929ac35b7cd91c05f00282c850bb62718dd4fdfc152b1d51c916483155665
|
|
7
|
+
data.tar.gz: 761c964f789ff77acae0451d0fec857a575fe79608ffa74313dcf5911c438f3bbffa55fc2a8eb750275b0aadcbbc314cbb704354a8ca3fc956a1caa2a7a5e753
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.2] - 2026-02-20
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `root_path` in host app layouts now resolves to the host app's root (`/`) instead of the engine's root (`/docs/`). The engine defines its own `root` route, so the existing `method_missing` delegation couldn't intercept it. Added explicit `root_path`/`root_url` overrides that delegate to `main_app`.
|
|
13
|
+
|
|
8
14
|
## [0.1.1] - 2026-02-20
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
@@ -29,5 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
35
|
- i18n support for all UI strings
|
|
30
36
|
- Install generator (`rails generate markdowndocs:install`)
|
|
31
37
|
|
|
38
|
+
[0.1.2]: https://github.com/dschmura/markdowndocs/releases/tag/v0.1.2
|
|
32
39
|
[0.1.1]: https://github.com/dschmura/markdowndocs/releases/tag/v0.1.1
|
|
33
40
|
[0.1.0]: https://github.com/dschmura/markdowndocs/releases/tag/v0.1.0
|
|
@@ -11,6 +11,18 @@ module Markdowndocs
|
|
|
11
11
|
# against the engine's catch-all :slug route instead. This delegation
|
|
12
12
|
# ensures host app route helpers always work correctly in engine views.
|
|
13
13
|
helper do
|
|
14
|
+
# Explicitly delegate root_path/root_url to the host app.
|
|
15
|
+
# The engine defines its own root route, so these helpers exist in the
|
|
16
|
+
# engine scope and method_missing won't intercept them — but they resolve
|
|
17
|
+
# to /docs/ instead of /. Engine views use markdowndocs.root_path directly.
|
|
18
|
+
def root_path(*args)
|
|
19
|
+
main_app.root_path(*args)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def root_url(*args)
|
|
23
|
+
main_app.root_url(*args)
|
|
24
|
+
end
|
|
25
|
+
|
|
14
26
|
def method_missing(method, *args, &block)
|
|
15
27
|
if main_app.respond_to?(method)
|
|
16
28
|
main_app.send(method, *args, &block)
|
data/lib/markdowndocs/version.rb
CHANGED