Skip to content

Commit

Permalink
Adds package UUID to generate
Browse files Browse the repository at this point in the history
  • Loading branch information
cadojo committed Jan 4, 2025
1 parent 728f076 commit 351a1ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DocumenterQuarto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ Generate a documentation site from a default template.
function generate(; title=nothing, type="book", api="api")

name::Union{String,Nothing} = nothing
uuid::Union{String,Nothing} = nothing
if isnothing(title)
if isfile("Project.toml")
name = TOML.parsefile("Project.toml")["name"]
project = TOML.parsefile("Project.toml")
name = project["name"]
uuid = project["uuid"]
end

title = isnothing(name) ? "Documentation" : name
Expand Down Expand Up @@ -162,6 +165,7 @@ function generate(; title=nothing, type="book", api="api")
Quarto = "d7167be5-f61b-4dc9-b75c-ab62374668c5"
DocumenterQuarto = "73f83fcb-c367-40db-89b6-8fd94701aaf2"
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
$name = "$uuid"
"""
)
end
Expand Down

2 comments on commit 351a1ae

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register"

This comment was generated with commit-comment and Register.yml.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/122330

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 351a1aeb3cce33acad503a1622c2598489381450
git push origin v0.1.0

Please sign in to comment.