Skip to content

Commit

Permalink
Update the version to 2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchane committed Feb 27, 2023
1 parent db78254 commit c6901e3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 30 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## v2.12.0

* Deprecate the `--validate` (`-l`) option. Please use `enki` instead: <https://github.com/Levi-Leah/enki/>.
* Switch to the `bpaf` command-line argument parser.

## v2.11.0

* Separate options for the module type prefix in IDs (anchors) and file names.
Expand Down
11 changes: 6 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "newdoc"
version = "2.11.0"
version = "2.12.0"
description = "Generate pre-populated module files formatted with AsciiDoc that are used in Red Hat and Fedora documentation."
authors = ["Marek Suchánek <[email protected]>"]
license = "GPL-3.0-or-later"
edition = "2021"
# Check the Rust version using `cargo msrv verify`.
rust-version = "1.60"
rust-version = "1.62"
documentation = "https://docs.rs/newdoc"
readme = "README.md"
repository = "https://github.com/redhat-documentation/newdoc/"
Expand All @@ -25,6 +25,8 @@ askama = "0.11"
# Disable support for tracing_error and SpanTrace in eyre
color-eyre = { version = "0.6", default-features = false }
dialoguer = "0.10"
# Preserve MSRV at 1.62:
time = "=0.3.19"

[build-dependencies]
bpaf = { version = "0.7", features = ["derive", "manpage"]}
26 changes: 7 additions & 19 deletions PACKAGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,19 @@ The following are instructions for the maintainers of `newdoc` to package and di

## Packaging and distributing newdoc as an RPM package

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

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

```
$ cargo install cargo-rpm
```
3. In the `newdoc` project directory, build RPM packages:
```
$ cargo rpm build
```
This command build packages in the `target/release/rpmbuild/` directory.
4. Log into the Copr repository administration: <https://copr.fedorainfracloud.org/coprs/mareksu/newdoc-rs/>.
3. Click **New Build**.

5. Go to the **Builds** tab.
4. Select **SCM**.

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

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

8. Click **Build**.
7. Click **Build**.

## Packaging and distributing newdoc on Crates.io

Expand Down
5 changes: 1 addition & 4 deletions newdoc.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: newdoc
Summary: Generate an AsciiDoc file using a modular template
Version: 2.11.0
Version: 2.12.0
Release: 1%{?dist}
License: GPLv3+
URL: https://github.com/redhat-documentation/newdoc
Expand Down Expand Up @@ -45,9 +45,6 @@ gzip -c target/release/build/%{name}-*/out/%{name}.1 > %{name}.1.gz
# Install the man page into the chroot environment.
install -m 0644 %{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz

%clean
rm -rf %{buildroot}

%files
# Pick documentation and license files from the source directory.
%doc README.md
Expand Down

0 comments on commit c6901e3

Please sign in to comment.