From 6dedddc545e2f1930bdc2256784eb1551bd4231d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 1 Feb 2026 00:49:15 +0900 Subject: feat(nuldoc): rewrite nuldoc in Ruby --- services/nuldoc/Rakefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 services/nuldoc/Rakefile (limited to 'services/nuldoc/Rakefile') diff --git a/services/nuldoc/Rakefile b/services/nuldoc/Rakefile new file mode 100644 index 00000000..811398f4 --- /dev/null +++ b/services/nuldoc/Rakefile @@ -0,0 +1,22 @@ +require 'rubocop/rake_task' +require_relative 'lib/nuldoc' + +RuboCop::RakeTask.new + +desc 'Build the site' +task :build do + config = Nuldoc::ConfigLoader.load_config(Nuldoc::ConfigLoader.default_config_path) + Nuldoc::Commands::Build.run(config) +end + +desc 'Start development server' +task :serve, [:site] do |_t, args| + config = Nuldoc::ConfigLoader.load_config(Nuldoc::ConfigLoader.default_config_path) + Nuldoc::Commands::Serve.run(config, site_name: args[:site], no_rebuild: false) +end + +desc 'Create new content' +task :new, [:type] do |_t, args| + config = Nuldoc::ConfigLoader.load_config(Nuldoc::ConfigLoader.default_config_path) + Nuldoc::Commands::New.run(config, type: args[:type], date: nil) +end -- cgit v1.3-1-g0d28