Exhort contributors to not edit the generated README.adoc file (#87)

This commit is contained in:
Chin Huang
2019-02-12 12:53:35 -08:00
committed by Spencer Gibb
parent 0b71752b7b
commit 82aa564d22

View File

@@ -24,7 +24,14 @@ attrs = doc.attributes
attrs['allow-uri-read'] = true
puts attrs
out = "// Do not edit this file (e.g. go instead to src/main/asciidoc)\n\n"
out = <<-WARNING
////
DO NOT EDIT THIS FILE. IT WAS GENERATED.
Manual changes to this file will be lost when it is generated again.
Edit the files in the src/main/asciidoc/ directory instead.
////
WARNING
doc = Asciidoctor.load_file file, safe: :unsafe, parse: false, attributes: attrs
out << doc.reader.read