这是项目X的文档。
include::basics.adoc[]
include::installation.adoc[]
include::example.adoc[]
include::filename.txt[lines=5..10]
include::filename.txt[lines="1..10,15..20"]
include::filename.txt[lines=7;14..25;28..43]
include::filename.txt[lines=12..-1]
include::filename.txt[tag=definition]
// tag::tag-co[]
# tag::timings[] # (1) (2)
if timings
timings.record :read
timings.start :parse
end
# end::timings[] # (3) (4)
# tag::parse[] # (5)
doc = (options[:parse] == false ? (Document.new lines, options) :
(Document.new lines,options).parse)
timings.record :parse if timings
doc
# end::parse[] # (6)
// end::tag-co[]
include::core.rb[tag=parse] (1)
include::core.rb[tags=timings;parse]
include::example.groovy[tag=classdef]
导入 foo class Bar { // … }
class Bar {
// ...
}
include::https://raw.githubusercontent.com/asciidoctor/asciidoctor/main/README.adoc[]