Skip to content

Commit 11af33a

Browse files
authored
[AutoBuild] Add Documentation section to generated README (#1170)
The line about documentation currently appears in the `Bug Repors` section, which looks odd. Also, removed an extra newline.
1 parent e5c1222 commit 11af33a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/AutoBuild.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,8 +1340,9 @@ function build_jll_package(src_name::String,
13401340
if is_yggdrasil()
13411341
println(io, "[![deps](https://juliahub.com/docs/$(src_name)_jll/deps.svg)](https://juliahub.com/ui/Packages/$(src_name)_jll/$(Base.package_slug(BinaryBuilder.jll_uuid("$(src_name)_jll"), 5))?page=2)\n")
13421342
end
1343-
print(io, """
1344-
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl).""")
1343+
println(io, """
1344+
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl).
1345+
""")
13451346
if is_yggdrasil()
13461347
println(io, """
13471348
The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/$(yggdrasil_head())/$(ENV["PROJECT"])/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree.")
@@ -1351,10 +1352,11 @@ function build_jll_package(src_name::String,
13511352
If you have any issue, please report it to the Yggdrasil [bug tracker](https://github.com/JuliaPackaging/Yggdrasil/issues).
13521353
""")
13531354
end
1354-
println(io)
1355-
println(io)
1356-
println(io,"For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://docs.binarybuilder.org/stable/jll/).")
1357-
println(io)
1355+
println(io, """
1356+
## Documentation
1357+
1358+
For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://docs.binarybuilder.org/stable/jll/).
1359+
""")
13581360
if length(sources) > 0
13591361
# `sources` can be empty, and it is for some HelloWorld examples
13601362
println(io, """

0 commit comments

Comments
 (0)