Skip to content

Instantly share code, notes, and snippets.

@ohno
Last active September 9, 2025 15:32
Show Gist options
  • Select an option

  • Save ohno/f3b1eb2c8f3a7e6803c34c8aab56e869 to your computer and use it in GitHub Desktop.

Select an option

Save ohno/f3b1eb2c8f3a7e6803c34c8aab56e869 to your computer and use it in GitHub Desktop.
# Options
user = "JuliaFewBody"
authors = ["Shuhei Ohno", "Martin Mikkelsen"]
repo = "FewBodyHamiltonians.jl"
# Package Template
using PkgTemplates
template = Template(;
dir = @__DIR__,
user = user,
authors = authors,
julia = v"1.11",
plugins = [
# https://juliaci.github.io/PkgTemplates.jl/stable/user/#Default-Plugins
ProjectFile(; version = v"0.0.1"),
SrcDir(),
Tests(; project = true),
Readme(),
License(),
Git(; ignore = ["*/Manifest.toml"]),
GitHubActions(; extra_versions = ["1.11"]),
CompatHelper(),
TagBot(),
# Secret(),
Dependabot(),
# https://juliaci.github.io/PkgTemplates.jl/stable/user/#Code-Coverage
Codecov(),
# https://juliaci.github.io/PkgTemplates.jl/stable/user/#Documentation
Documenter{GitHubActions}(),
# https://juliaci.github.io/PkgTemplates.jl/stable/user/#Miscellaneous
Citation(; readme = true),
Formatter(),
],
)
template(repo)
# Deploy Keys
using DocumenterTools
DocumenterTools.genkeys(;
user = user,
repo = repo,
)
@ohno
Copy link
Author

ohno commented Sep 9, 2025

Usage

Add keys and secrets:

  • Deploy keys Documenter
  • Repository secrets CODECOV_TOKEN
  • Repository secrets DOCUMENTER_KEY

Fix version number:

  • version = {v1.0.0-DEV} in CITATION.bib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment