obsidian-parser 0.5.0 → 0.5.1
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 +3 -0
- data/Gemfile.lock +1 -1
- data/lib/obsidian/parser/page.rb +5 -1
- data/lib/obsidian/parser/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: 900eecebc9fbedf86efa15e1913fcdbf661cab7e6cb19453ecbf5b7d956f95b1
|
4
|
+
data.tar.gz: 5bbfdbc5cf83fb3149536b54fb427e44a2d5521ca292d7b97af1345e85fa9779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bac7a436c5a2bb2a8568c4ba306d769584813ac5da89f9d3051c601f347c22abe6b6009dc4ca988912dd13af32d2c25e7dc15943a3032a871b3ba656200271d
|
7
|
+
data.tar.gz: deba24083f278d7c0b060f798f86de8d95a2a451e899577fbcda4f98046c5d0083554c55d8cfd35eedde085c21fde64cc01d6923d3a8f60aa388f4a412f64183
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.5.1] - 2023-07-30
|
4
|
+
- Fix handling of `index.md` at the root level.
|
5
|
+
|
3
6
|
## [0.5.0] - 2023-07-30
|
4
7
|
- Fix ordering of `Page#children` so that index pages come first.
|
5
8
|
- Fix handling of `index.md` documents so that the slug reflects the directory path.
|
data/Gemfile.lock
CHANGED
data/lib/obsidian/parser/page.rb
CHANGED
@@ -47,7 +47,11 @@ module Obsidian
|
|
47
47
|
# are added before their descendents.
|
48
48
|
def add_page(slug, last_modified: nil, content: nil)
|
49
49
|
path_components = slug.split("/")
|
50
|
-
|
50
|
+
|
51
|
+
if path_components.empty?
|
52
|
+
update_content(content: content, last_modified: last_modified)
|
53
|
+
return
|
54
|
+
end
|
51
55
|
|
52
56
|
title = path_components.pop
|
53
57
|
|