nanoc-org-mode 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 022ad8dfc2e91bfd66bee2bd09d5e4afdd34a8c7041d67fdfee843b78f7054b0
4
+ data.tar.gz: 8f18cd9983e2f3e7d56ed54ea47e2814cab169a9e3e6196f3c3f9be295060488
5
+ SHA512:
6
+ metadata.gz: f9b673f4afd3f81976e7c46c5037785c6fb3d04cf14dc1f3e2c44151efd8bfb04ecd063a9a1ca7bd7162100d37328081e79a9904ba5ec42971aaf8fd46ba4a4a
7
+ data.tar.gz: c9cce778abf8f17e2c4dc19b0cd20c8e745cbb15ac7b2d9b3cb3a8be7569d48c9ea0f29a6f2551025637eca88ff51f06ce8233746e029b3a360f91ee37196f1e
data/NEWS.md ADDED
@@ -0,0 +1,5 @@
1
+ # nanoc-org-mode news
2
+
3
+ ## 1.0.0 (2024-03-15)
4
+
5
+ Initial release.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # nanoc-org-mode
2
+
3
+ This provides a filter that allows [Nanoc](https://nanoc.app) to process content via [Org Mode](https://orgmode.org/).
4
+
5
+ ## Installation
6
+
7
+ Add `nanoc-org-mode` to the `nanoc` group of your Gemfile:
8
+
9
+ ```ruby
10
+ group :nanoc do
11
+ gem 'nanoc-org-mode'
12
+ end
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ Call the `:org_mode` filter. For example:
18
+
19
+ ```ruby
20
+ filter :org_mode
21
+ ```
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'org_mode'
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nanoc
4
+ module OrgMode
5
+ class Filter < Nanoc::Filter
6
+ identifier :org_mode
7
+
8
+ # Runs the content through [Org Mode](https://orgmode.org/) via
9
+ # [org-ruby](https://github.com/wallyqs/org-ruby).
10
+ #
11
+ # @param [String] content The content to filter
12
+ #
13
+ # @return [String] The filtered content
14
+ def run(content, _params = {})
15
+ ::Orgmode::Parser.new(content).to_html
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nanoc
4
+ module OrgMode
5
+ VERSION = '1.0.0'
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nanoc
4
+ module OrgMode
5
+ end
6
+ end
7
+
8
+ require 'org-ruby'
9
+
10
+ require 'nanoc/org_mode/version'
11
+ require 'nanoc/org_mode/filter'
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'nanoc/org_mode'
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nanoc-org-mode
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Denis Defreyne
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-03-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nanoc-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.12'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: org-ruby
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.9'
41
+ description: Provides an :org_mode filter for Nanoc
42
+ email: denis+rubygems@denis.ws
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - NEWS.md
48
+ - README.md
49
+ - lib/nanoc-org-mode.rb
50
+ - lib/nanoc/org-mode.rb
51
+ - lib/nanoc/org_mode.rb
52
+ - lib/nanoc/org_mode/filter.rb
53
+ - lib/nanoc/org_mode/version.rb
54
+ homepage: https://nanoc.app/
55
+ licenses:
56
+ - MIT
57
+ metadata:
58
+ rubygems_mfa_required: 'true'
59
+ source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-org-mode-v1.0.0/nanoc-org-mode
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '2.7'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubygems_version: 3.5.3
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: Org Mode filter for Nanoc
79
+ test_files: []