Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reify changelog #521

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
if: matrix.os == 'macos-latest'
run: |
brew install help2man
cargo run --package gen -- --bin target/debug/imdl all --no-changelog
cargo run --package gen -- --bin target/debug/imdl all
git diff --no-ext-diff --exit-code

- name: Install `mdbook`
Expand All @@ -110,7 +110,7 @@ jobs:
- name: Build Book
if: matrix.os != 'windows-latest'
run: |
cargo run --package gen -- --bin target/debug/imdl book --no-changelog
cargo run --package gen -- --bin target/debug/imdl book
mdbook build book --dest-dir ../www/book

- name: Record Git Revision
Expand Down
338 changes: 338 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

114 changes: 0 additions & 114 deletions bin/gen/src/changelog.rs

This file was deleted.

19 changes: 7 additions & 12 deletions bin/gen/src/common.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub(crate) use std::{
cmp::{Ord, PartialOrd},
collections::{BTreeMap, BTreeSet},
collections::BTreeSet,
env,
fmt::{self, Display, Formatter},
fs::{self, File},
Expand All @@ -13,19 +13,15 @@ pub(crate) use std::{

pub(crate) use ansi_term::Style;
pub(crate) use askama::Template;
pub(crate) use cargo_toml::Manifest;
pub(crate) use chrono::{DateTime, NaiveDateTime, Utc};
pub(crate) use fehler::{throw, throws};
pub(crate) use git2::{Commit, Oid, Repository};
pub(crate) use git2::{Oid, Repository};
pub(crate) use libc::EXIT_FAILURE;
pub(crate) use log::info;
pub(crate) use regex::Regex;
pub(crate) use serde::{Deserialize, Serialize};
pub(crate) use serde::Deserialize;
pub(crate) use snafu::{ResultExt, Snafu};
pub(crate) use std::string::FromUtf8Error;
pub(crate) use structopt::StructOpt;
pub(crate) use strum::VariantNames;
pub(crate) use strum_macros::{EnumVariantNames, IntoStaticStr};
pub(crate) use url::Url;

// modules
Expand All @@ -36,9 +32,8 @@ pub(crate) use crate::{command_ext::CommandExt, row::Row, slug::Slug, template_e

// structs and enums
pub(crate) use crate::{
arguments::Arguments, bin::Bin, bin_subcommand::BinSubcommand, changelog::Changelog,
config::Config, entry::Entry, error::Error, example::Example, faq::Faq, faq_entry::FaqEntry,
introduction::Introduction, kind::Kind, metadata::Metadata, options::Options, package::Package,
project::Project, readme::Readme, reference::Reference, reference_section::ReferenceSection,
release::Release, subcommand::Subcommand, summary::Summary, table::Table,
arguments::Arguments, bin::Bin, bin_subcommand::BinSubcommand, config::Config, error::Error,
example::Example, faq::Faq, faq_entry::FaqEntry, introduction::Introduction, options::Options,
package::Package, project::Project, readme::Readme, reference::Reference,
reference_section::ReferenceSection, subcommand::Subcommand, summary::Summary, table::Table,
};
1 change: 0 additions & 1 deletion bin/gen/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const PATH: &str = "bin/gen/config.yaml";

#[derive(Debug, Deserialize)]
pub(crate) struct Config {
pub(crate) changelog: BTreeMap<String, Metadata>,
pub(crate) examples: Vec<Example>,
pub(crate) packages: Vec<Package>,
pub(crate) references: Vec<ReferenceSection>,
Expand Down
102 changes: 0 additions & 102 deletions bin/gen/src/entry.rs

This file was deleted.

70 changes: 0 additions & 70 deletions bin/gen/src/kind.rs

This file was deleted.

5 changes: 0 additions & 5 deletions bin/gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@ mod cmd;
mod arguments;
mod bin;
mod bin_subcommand;
mod changelog;
mod command_ext;
mod common;
mod config;
mod entry;
mod error;
mod example;
mod faq;
mod faq_entry;
mod introduction;
mod kind;
mod metadata;
mod options;
mod package;
mod project;
mod readme;
mod reference;
mod reference_section;
mod release;
mod row;
mod slug;
mod subcommand;
Expand Down
Loading
Loading