Skip to content

Commit c6901e3

Browse files
author
Marek Suchánek
committed
Update the version to 2.12.0
1 parent db78254 commit c6901e3

File tree

5 files changed

+23
-30
lines changed

5 files changed

+23
-30
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
The following is a summary of changes in each `newdoc` release, which is also a Git tag by the same name in this repository.
44

5+
## v2.12.0
6+
7+
* Deprecate the `--validate` (`-l`) option. Please use `enki` instead: <https://github.com/Levi-Leah/enki/>.
8+
* Switch to the `bpaf` command-line argument parser.
9+
510
## v2.11.0
611

712
* Separate options for the module type prefix in IDs (anchors) and file names.

Cargo.lock

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "newdoc"
3-
version = "2.11.0"
3+
version = "2.12.0"
44
description = "Generate pre-populated module files formatted with AsciiDoc that are used in Red Hat and Fedora documentation."
55
authors = ["Marek Suchánek <[email protected]>"]
66
license = "GPL-3.0-or-later"
77
edition = "2021"
88
# Check the Rust version using `cargo msrv verify`.
9-
rust-version = "1.60"
9+
rust-version = "1.62"
1010
documentation = "https://docs.rs/newdoc"
1111
readme = "README.md"
1212
repository = "https://github.com/redhat-documentation/newdoc/"
@@ -25,6 +25,8 @@ askama = "0.11"
2525
# Disable support for tracing_error and SpanTrace in eyre
2626
color-eyre = { version = "0.6", default-features = false }
2727
dialoguer = "0.10"
28+
# Preserve MSRV at 1.62:
29+
time = "=0.3.19"
2830

2931
[build-dependencies]
3032
bpaf = { version = "0.7", features = ["derive", "manpage"]}

PACKAGING.md

+7-19
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,19 @@ The following are instructions for the maintainers of `newdoc` to package and di
44

55
## Packaging and distributing newdoc as an RPM package
66

7-
1. Install the `cargo` package manager. For details, see <https://rustup.rs/>.
7+
1. Log into the Copr repository administration: <https://copr.fedorainfracloud.org/coprs/mareksu/newdoc-rs/>.
88

9-
2. Install the `cargo-rpm` extension:
9+
2. Go to the **Builds** tab.
1010

11-
```
12-
$ cargo install cargo-rpm
13-
```
14-
15-
3. In the `newdoc` project directory, build RPM packages:
16-
17-
```
18-
$ cargo rpm build
19-
```
20-
21-
This command build packages in the `target/release/rpmbuild/` directory.
22-
23-
4. Log into the Copr repository administration: <https://copr.fedorainfracloud.org/coprs/mareksu/newdoc-rs/>.
11+
3. Click **New Build**.
2412

25-
5. Go to the **Builds** tab.
13+
4. Select **SCM**.
2614

27-
6. Click **New Build** and select **Upload**.
15+
5. In the **Clone url** field, paste `https://github.com/redhat-documentation/newdoc`.
2816

29-
7. In the **Provide the source** section, upload the most recent SRPM package from the `target/release/rpmbuild/SRPMS/` directory.
17+
6. In the **Spec File** field, use `newdoc.spec`.
3018

31-
8. Click **Build**.
19+
7. Click **Build**.
3220

3321
## Packaging and distributing newdoc on Crates.io
3422

newdoc.spec

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: newdoc
22
Summary: Generate an AsciiDoc file using a modular template
3-
Version: 2.11.0
3+
Version: 2.12.0
44
Release: 1%{?dist}
55
License: GPLv3+
66
URL: https://github.com/redhat-documentation/newdoc
@@ -45,9 +45,6 @@ gzip -c target/release/build/%{name}-*/out/%{name}.1 > %{name}.1.gz
4545
# Install the man page into the chroot environment.
4646
install -m 0644 %{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
4747

48-
%clean
49-
rm -rf %{buildroot}
50-
5148
%files
5249
# Pick documentation and license files from the source directory.
5350
%doc README.md

0 commit comments

Comments
 (0)