Module: Bhook

Extended by:
T::Sig
Defined in:
lib/bhook/theme.rb,
lib/bhook.rb,
lib/bhook/logger.rb,
lib/bhook/md_file.rb,
lib/bhook/version.rb,
lib/bhook/directory.rb,
lib/bhook/workspace.rb,
lib/bhook/workspaces.rb,
lib/bhook/args_parser.rb,
lib/bhook/source_config.rb,
lib/bhook/converter/html.rb,
lib/bhook/root_directory.rb,
lib/bhook/theme_generator.rb

Overview

typed: strict frozen_string_literal: true

Defined Under Namespace

Modules: Converter Classes: ArgsParser, Directory, Error, MdFile, RootDirectory, SourceConfig, Theme, ThemeGenerator, Workspace, Workspaces

Constant Summary collapse

THEME_DIR_PATH =
T.let(File.join(File.dirname(__FILE__), 'bhook', 'theme'), String)
PAGE_TEMPLATE_PATH =
T.let(File.join(THEME_DIR_PATH, 'page.erb'), String)
AFTER_H1_TEMPLATE_PATH =
T.let(File.join(THEME_DIR_PATH, '_after_h1.erb'), String)
LOG_FORMATTER =
proc { |_severity, _datetime, _progname, msg|
  "#{Thread.current.object_id} #{msg}\n"
}
L =
Logger.new($stdout, formatter: LOG_FORMATTER)
VERSION =
'0.3.2'