Skip to content

Commit

Permalink
Removed \texttt in docstrings (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulStraus authored Apr 18, 2024
1 parent 09f9947 commit a324adf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Release notes

## Unversioned
## Version 0.6.8 (2024-04-18)

* Added potential for negative emissions.
This change requires the user to always constrain the variable `emissions_node`, if it is defined by the user.
By default, this is achieved in the developed packages through `EmissionsData` or the addition of additional bounds on
the variable `:emissions_node` through the JuMP function [`set_lower_bound`](https://jump.dev/JuMP.jl/stable/api/JuMP/#set_lower_bound).
* Provided a contribution section in the documentation.
* Minor changes in the naming convention in the documentation.
* Removed `\texttt{}` from docstrings.

## Version 0.6.7 (2024-03-21)

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "EnergyModelsBase"
uuid = "5d7e687e-f956-46f3-9045-6f5a5fd49f50"
authors = ["Lars Hellemo <[email protected]>, Julian Straus <[email protected]>"]
version = "0.6.7"
version = "0.6.8"

[deps]
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
Expand Down
8 changes: 6 additions & 2 deletions src/structures/resource.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ abstract type Resource end
Base.show(io::IO, r::Resource) = print(io, "$(r.id)")

"""
ResourceEmit{T<:Real} <: Resource
Resources that can can be emitted (e.g., CO₂, CH₄, NOₓ).
These resources can be included as resources that are emitted, *e.g*, in the variable \
[``\\texttt{emissions\\_strategic}``](@ref var_emission).
[`emissions_strategic`](@ref var_emission).
# Fields
- **`id`** is the name/identifyer of the resource.\n
Expand All @@ -20,9 +22,11 @@ struct ResourceEmit{T<:Real} <: Resource
end

"""
ResourceCarrier{T<:Real} <: Resource
Resources that can be transported and converted.
These resources cannot be included as resources that are emitted, *e.g*, in the variable \
[``\\texttt{emissions\\_strategic}``](@ref var_emission).
[`emissions_strategic`](@ref var_emission).
# Fields
- **`id`** is the name/identifyer of the resource.\n
Expand Down

2 comments on commit a324adf

@JulStraus
Copy link
Member Author

Choose a reason for hiding this comment

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

@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 created: JuliaRegistries/General/105151

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.6.8 -m "<description of version>" a324adf670f7791eafa81e84569409d2a64d4961
git push origin v0.6.8

Please sign in to comment.