sitepress-rails 3.1.2 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sitepress/engine.rb +7 -0
- data/rails/lib/generators/sitepress/install/install_generator.rb +5 -0
- data/sitepress-rails.gemspec +5 -2
- data/spec/dummy/log/test.log +1428 -66
- data/spec/sitepress-rails_spec.rb +0 -6
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e6ef711927c4283d7250f9edcb6efc80118fefdc0f85d0477194a0f363dbb19
|
4
|
+
data.tar.gz: 6430ce2fbd548de7f9a120326ed798a214b433398708830ac0c2d62928a1a42e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a50bbe5b0f97cff4a756da7501dd46656f594fc7a43ca075534dd7d5a1deab925bb51845a1dcdca4e71a44f8c89524cf81b2e83f12a835b157d207f5ce6fbac
|
7
|
+
data.tar.gz: 2b28bf5a1aa4ea05172882b1b12cfc5542cebef15cd5466f3ee05b4431524bf44091930c400b948d8c6b38fcc021451a1cc2800fc57903b295f7cd0bd728111e
|
data/lib/sitepress/engine.rb
CHANGED
@@ -18,6 +18,12 @@ module Sitepress
|
|
18
18
|
load site_file if site_file
|
19
19
|
end
|
20
20
|
|
21
|
+
# Set the path for the site configuration file.
|
22
|
+
paths.add "app/markdown", with: [
|
23
|
+
File.expand_path("./markdown"), # When Sitepress is launched via `sitepress server`.
|
24
|
+
"app/markdown" # When Sitepress is launched embedded in Rails project.
|
25
|
+
], autoload: true
|
26
|
+
|
21
27
|
# Load paths from `Sitepress#site` into rails so it can render views, helpers, etc. properly.
|
22
28
|
initializer :set_sitepress_paths, before: :set_autoload_paths do |app|
|
23
29
|
app.paths["app/helpers"].push site.helpers_path.expand_path
|
@@ -48,6 +54,7 @@ module Sitepress
|
|
48
54
|
end
|
49
55
|
|
50
56
|
private
|
57
|
+
|
51
58
|
def sitepress_configuration
|
52
59
|
Sitepress.configuration
|
53
60
|
end
|
@@ -10,5 +10,10 @@ module Sitepress
|
|
10
10
|
route "sitepress_root"
|
11
11
|
route "sitepress_pages"
|
12
12
|
end
|
13
|
+
|
14
|
+
def append_sitepress_path_to_tailwind_config
|
15
|
+
inject_into_file 'config/tailwind.config.js', ",\n './app/content/**/*.{erb,haml,html,slim,rb}'",
|
16
|
+
after: " './app/views/**/*.{erb,haml,html,slim}'"
|
17
|
+
end
|
13
18
|
end
|
14
19
|
end
|
data/sitepress-rails.gemspec
CHANGED
@@ -9,9 +9,12 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Brad Gessler"]
|
10
10
|
spec.email = ["bradgessler@gmail.com"]
|
11
11
|
spec.licenses = ["MIT"]
|
12
|
-
|
13
12
|
spec.summary = %q{Sitepress rails integration.}
|
14
|
-
spec.homepage = "https://
|
13
|
+
spec.homepage = "https://sitepress.cc/"
|
14
|
+
|
15
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
+
spec.metadata["source_code_uri"] = "https://github.com/sitepress/sitepress"
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/sitepress/sitepress/tags"
|
15
18
|
|
16
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
20
|
spec.bindir = "exe"
|