-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite-to-md.gemspec
42 lines (34 loc) · 1.54 KB
/
site-to-md.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# frozen_string_literal: true
require_relative 'lib/site_to_md/version'
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
spec.name = 'site-to-md'
spec.version = SiteToMd::VERSION
spec.authors = ['maier.io']
spec.email = ['[email protected]']
spec.summary = 'Convert static site HTML to a single markdown file'
spec.description = <<~DESC
A tool that extracts and combines text from HTML files into a single, streamlined markdown document.
It provides a command-line interface for easy usage, removes unnecessary HTML elements to reduce
token usage, and creates an easily uploadable format for AI tools like Claude AI or ChatGPT.
The tool preserves document structure and includes frontmatter metadata.
DESC
spec.homepage = 'https://github.com/tmaier/site-to-md'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.2.0'
spec.metadata = {
'homepage_uri' => spec.homepage,
'source_code_uri' => spec.homepage,
'changelog_uri' => "#{spec.homepage}/blob/main/CHANGELOG.md",
'bug_tracker_uri' => "#{spec.homepage}/issues",
'documentation_uri' => "#{spec.homepage}/blob/main/README.md",
'rubygems_mfa_required' => 'true'
}
spec.files = Dir.glob('{exe,lib,test}/**/*') +
%w[README.md LICENSE CHANGELOG.md]
spec.bindir = 'exe'
spec.executables = ['site-to-md']
spec.require_paths = ['lib']
spec.add_dependency 'nokogiri', '~> 1.18'
spec.add_dependency 'reverse_markdown', '~> 3.0'
spec.add_dependency 'thor', '~> 1.3'
end