Skip to content

Commit f49ee08

Browse files
Add developer instructions (#93)
* Add changelog and NEWS.md * add developer instrautions to the landing page
1 parent 728fb2e commit f49ee08

File tree

5 files changed

+94
-4
lines changed

5 files changed

+94
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
out*/
33
docs/build
44
docs/src/authors.md
5+
docs/src/changelog.md
56
docs/src/code_of_conduct.md
67
docs/src/contributing.md
78
docs/src/index.md

NEWS.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Changelog
2+
3+
HOHQMesh.jl follows the interpretation of
4+
[semantic versioning (semver)](https://julialang.github.io/Pkg.jl/dev/compatibility/#Version-specifier-format-1)
5+
used in the Julia ecosystem. Notable changes will be documented in this file
6+
for human readability.
7+
8+
## Changes in the v0.2 lifecycle
9+
10+
#### Added
11+
12+
- New option and tutorial for a symmetric mesh [#57]
13+
- Optional arguments to `generate_mesh` command [#52]
14+
- Move plotting routines into a package extension [#51]
15+
16+
#### Changed
17+
18+
#### Deprecated
19+
20+
#### Removed
21+
22+
## Changes in the v0.1 lifecycle
23+
24+
#### Added
25+
26+
- Interactive capability via HQMTool and testing [#15]
27+
28+
#### Changed
29+
30+
#### Deprecated
31+
32+
#### Removed

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ If you have not yet installed Julia, please [follow the instructions for your
2424
operating system](https://julialang.org/downloads/platform/). HOHQMesh.jl works
2525
with Julia v1.6 and above.
2626

27-
HOHQMesh.jl is a registered Julia package. Hence, you can install it by executing
28-
the following commands in the Julia REPL:
27+
28+
### For users
29+
HOHQMesh.jl and its related tools are registered Julia packages. Hence, you
30+
can install it by executing the following commands in the Julia REPL:
2931
```julia
3032
julia> import Pkg; Pkg.add("HOHQMesh")
3133
```
@@ -35,6 +37,39 @@ mesh generator, which is available via the Julia package
3537
[HOHQMesh_jll.jl](https://github.com/JuliaBinaryWrappers/HOHQMesh_jll.jl)
3638
and which is automatically installed as a dependency.
3739

40+
The available visualization functionality uses [Makie.jl](https://github.com/JuliaPlots/Makie.jl/).
41+
A Makie backend, such as [GLMakie.jl](https://github.com/JuliaPlots/GLMakie.jl/), can
42+
be installed in addition to HOHQMesh
43+
```julia
44+
julia> using Pkg; Pkg.add("GLMakie")
45+
```
46+
47+
48+
### For developers
49+
If you plan on editing HOHQMesh.jl itself, you can download HOHQMesh.jl
50+
locally and use the code from the cloned directory:
51+
```bash
52+
git clone git@github.com:trixi-framework/HOHQMesh.jl.git
53+
cd HOHQMesh.jl
54+
mkdir run
55+
cd run
56+
julia --project=. -e 'using Pkg; Pkg.develop(PackageSpec(path=".."))' # Install local HOHQMesh.jl clone
57+
julia --project=. -e 'using Pkg; Pkg.add("GLMakie")' # Install additional packages for plotting
58+
```
59+
Note that the additional package is optional and can be omitted.
60+
61+
If you installed HOHQMesh.jl this way, you always have to start Julia with the `--project`
62+
flag set to your `run` directory, e.g.,
63+
```bash
64+
julia --project=.
65+
```
66+
if already inside the `run` directory or
67+
```bash
68+
julia --project=run
69+
```
70+
if inside the repository root directory.
71+
72+
3873
## Usage
3974
In the Julia REPL, you can load HOHQMesh with
4075
```julia

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[deps]
2+
Changelog = "5217a498-cd5d-4ec6-b8c2-9b85a09b6e3e"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
HOHQMesh = "e4f4c7b8-17cb-445a-93c5-f69190ed6c8c"
45

56
[compat]
7+
Changelog = "1.1"
68
Documenter = "1.3"

docs/make.jl

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Documenter
22
import Pkg
33
using HOHQMesh
4+
using Changelog: Changelog
45

56
# Define module-wide setups such that the respective modules are available in doctests
67
DocMeta.setdocmeta!(HOHQMesh, :DocTestSetup, :(using HOHQMesh); recursive=true)
@@ -39,6 +40,24 @@ readme_text = replace(readme_text,
3940
r"\[comment\].*\n" => "") # remove comments
4041
write(joinpath(@__DIR__, "src", "index.md"), readme_text)
4142

43+
# Create changelog
44+
Changelog.generate(Changelog.Documenter(), # output type
45+
joinpath(@__DIR__, "..", "NEWS.md"), # input file
46+
joinpath(@__DIR__, "src", "changelog_tmp.md"); # output file
47+
repo = "trixi-framework/HOHQMesh.jl", # default repository for links
48+
branch = "main",)
49+
# Fix edit URL of changelog
50+
open(joinpath(@__DIR__, "src", "changelog.md"), "w") do io
51+
for line in eachline(joinpath(@__DIR__, "src", "changelog_tmp.md"))
52+
if startswith(line, "EditURL")
53+
line = "EditURL = \"https://github.com/trixi-framework/HOHQMesh.jl/blob/main/NEWS.md\""
54+
end
55+
println(io, line)
56+
end
57+
end
58+
# Remove temporary file
59+
rm(joinpath(@__DIR__, "src", "changelog_tmp.md"))
60+
4261
# Make documentation
4362
makedocs(;
4463
# Specify modules for which docstrings should be shown
@@ -75,11 +94,12 @@ makedocs(;
7594
"GitHub & Git" => "github-git.md",
7695
"Testing" => "testing.md",
7796
],
97+
"Reference" => "reference.md",
98+
"Changelog" => "changelog.md",
7899
"Authors" => "authors.md",
79100
"Contributing" => "contributing.md",
80101
"Code of Conduct" => "code_of_conduct.md",
81-
"License" => "license.md",
82-
"Reference" => "reference.md"])
102+
"License" => "license.md"])
83103

84104
deploydocs(
85105
repo = "github.com/trixi-framework/HOHQMesh.jl",

0 commit comments

Comments
 (0)