mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
20 lines
437 B
Ruby
20 lines
437 B
Ruby
#!/usr/bin/env ruby
|
|
#
|
|
# https://github.com/cirosantilli/linux-kernel-module-cheat#asciidoctor-link-target-up-rb
|
|
|
|
require 'asciidoctor'
|
|
require 'asciidoctor/extensions'
|
|
|
|
require_relative 'link-target-up.rb'
|
|
|
|
class LinkTargetGitHub < LinkTargetUp
|
|
named :link
|
|
def target_base
|
|
'https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/'
|
|
end
|
|
end
|
|
|
|
Asciidoctor::Extensions.register do
|
|
inline_macro LinkTargetGitHub
|
|
end
|