git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
3dea106d00385ee51649647d5fc5321d45249ec2 blob 881 bytes (raw)

 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
 
require 'asciidoctor/extensions'

module Git
  module Documentation
    class LinkGitProcessor < Asciidoctor::Extensions::InlineMacroProcessor
      def process(parent, target, attrs)
        prefix = parent.document.attr('git-relative-html-prefix')
        if parent.document.doctype == 'book'
          "<ulink url=\"#{prefix}#{target}.html\">" \
          "#{target}(#{attrs[1]})</ulink>"
        elsif parent.document.basebackend? 'html'
          %(<a href="#{prefix}#{target}.html">#{target}(#{attrs[1]})</a>)
        elsif parent.document.basebackend? 'docbook'
          "<citerefentry>\n" \
            "<refentrytitle>#{target}</refentrytitle>" \
            "<manvolnum>#{attrs[1]}</manvolnum>\n" \
          "</citerefentry>"
        end
      end
    end
  end
end

Asciidoctor::Extensions.register do
  inline_macro Git::Documentation::LinkGitProcessor, :linkgit
end
debug log:

solving 3dea106d00 ...
found 3dea106d00 in https://public-inbox.org/git/20210608090026.1737348-7-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210525104802.158336-7-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210521223701.526547-7-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210515115653.922902-7-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210621163110.1074145-7-felipe.contreras@gmail.com/
found 423450392d in https://public-inbox.org/git/20210515115653.922902-6-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210608090026.1737348-6-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210525104802.158336-6-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210521223701.526547-6-felipe.contreras@gmail.com/ ||
	https://public-inbox.org/git/20210621163110.1074145-6-felipe.contreras@gmail.com/
found 70a0956663 in git.git.git
preparing index
index prepared:
100644 70a09566630ce07317fd1928bce126300e0b5dc8	Documentation/asciidoctor-extensions.rb

applying [1/10] https://public-inbox.org/git/20210515115653.922902-6-felipe.contreras@gmail.com/
diff --git a/Documentation/asciidoctor-extensions.rb b/Documentation/asciidoctor-extensions.rb
index 70a0956663..423450392d 100644

Checking patch Documentation/asciidoctor-extensions.rb...
Applied patch Documentation/asciidoctor-extensions.rb cleanly.

skipping https://public-inbox.org/git/20210608090026.1737348-6-felipe.contreras@gmail.com/ for 423450392d
skipping https://public-inbox.org/git/20210525104802.158336-6-felipe.contreras@gmail.com/ for 423450392d
skipping https://public-inbox.org/git/20210521223701.526547-6-felipe.contreras@gmail.com/ for 423450392d
skipping https://public-inbox.org/git/20210621163110.1074145-6-felipe.contreras@gmail.com/ for 423450392d
index at:
100644 423450392d24c70dafe3f412df1004d098c7a847	Documentation/asciidoctor-extensions.rb

applying [2/10] https://public-inbox.org/git/20210608090026.1737348-7-felipe.contreras@gmail.com/
diff --git a/Documentation/asciidoctor-extensions.rb b/Documentation/asciidoctor-extensions.rb
index 423450392d..3dea106d00 100644

Checking patch Documentation/asciidoctor-extensions.rb...
Applied patch Documentation/asciidoctor-extensions.rb cleanly.

skipping https://public-inbox.org/git/20210525104802.158336-7-felipe.contreras@gmail.com/ for 3dea106d00
skipping https://public-inbox.org/git/20210521223701.526547-7-felipe.contreras@gmail.com/ for 3dea106d00
skipping https://public-inbox.org/git/20210515115653.922902-7-felipe.contreras@gmail.com/ for 3dea106d00
skipping https://public-inbox.org/git/20210621163110.1074145-7-felipe.contreras@gmail.com/ for 3dea106d00
index at:
100644 3dea106d00385ee51649647d5fc5321d45249ec2	Documentation/asciidoctor-extensions.rb

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git