Browse Source

put `README.md' in code brackets

master
Jonathan Strong 2 years ago
parent
commit
b0e5b354db
  1. 2
      Cargo.lock
  2. 6
      doc/README.tera.md
  3. 7
      justfile

2
Cargo.lock generated

@ -1310,7 +1310,7 @@ checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244"
[[package]] [[package]]
name = "registry-backup" name = "registry-backup"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"chrono", "chrono",
"clap", "clap",

6
doc/README.tera.md

@ -37,13 +37,13 @@ $ just --list
The commands that mirror cargo commands (e.g. `just test`) are included for the purpose of convenience, so that various options (e.g. `RUSTFLAGS='-C target-cpu=native`) can be included without typing them out each time. The commands that mirror cargo commands (e.g. `just test`) are included for the purpose of convenience, so that various options (e.g. `RUSTFLAGS='-C target-cpu=native`) can be included without typing them out each time.
## Generating README.md ## Generating `README.md`
This file is generated using a template (`doc/README.tera.md`) rendered using updated outputs of the CLI menu, config sample, and other values. This file is generated using a template (`doc/README.tera.md`) rendered using updated outputs of the CLI menu, config sample, and other values.
This version of README.md was generated at `{{ generation_time }}` based on git commit `{{ git_commit }}`. This version of `README.md` was generated at `{{ generation_time }}` based on git commit `{{ git_commit }}`.
To (re-)generate the README.md file, use the justfile command: To (re-)generate the `README.md` file, use the justfile command:
```console ```console
$ just generate-readme $ just generate-readme

7
justfile

@ -56,10 +56,15 @@ release-prep:
just pre-release just pre-release
VERSION=$(just get-crate-version) \ VERSION=$(just get-crate-version) \
&& test -z "$(git tag | rg \"v${VERSION}\")" # Error: tag appears to exist already && test -z "$(git tag | rg \"v${VERSION}\")" # Error: tag appears to exist already
just update-readme
# re-generate README.md and commit changes
update-readme:
just generate-readme just generate-readme
git add README.md doc/*.txt
git commit -m 're-generate docs'
release: release-prep release: release-prep
just verify-clean-git || ( git add README.md doc/*.txt && git commit -m 'update docs' )
git tag "v$(just get-crate-version)" git tag "v$(just get-crate-version)"
git push && git push --tags git push && git push --tags

Loading…
Cancel
Save