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

removed show-documentation subcommand #162

Merged
merged 8 commits into from
Nov 13, 2023
Merged
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: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- the spreadsheet importer will use the correct namespace `default_ns` for segmentation ordering relations
- fixed ordering of token nodes in spreadsheet import

### Removed

- removed `show-documentation` subcommand and moved the documentation from mdBook to the crate documentation in the source code

## [0.3.1] - 2023-08-04

### Fixed
Expand Down
18 changes: 4 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,30 @@ version = "0.3.1"
ansi_term = "0.12"
anyhow = "1.0"
csv = "1.1"
encoding_rs_io = "0.1.7"
encoding_rs = "0.8"
encoding_rs_io = "0.1.7"
glob = "0.3"
graphannis = "2.4"
graphannis-core = "2.4"
include_dir = {version = "0.7", optional = true}
indicatif = "0.17"
itertools = "0.11"
log = "0.4"
mime_guess = {version = "2", optional = true}
normpath = "1.1"
open = {version = "5", optional = true}
ordered-float = {version = "3.4.0", default-features = false}
ordered-float = {version = "4.1", default-features = false}
pest = "2.7"
pest_derive = "2.0"
portpicker = {version = "0.1.1", optional = true}
quick-xml = "0.28"
quick-xml = "0.31"
rayon = "1.1"
regex = "1.4"
serde = "1.0"
serde_derive = "1.0"
structopt = "0.3"
tabled = "0.12"
tabled = "0.14"
tempfile = "3"
thiserror = "1.0"
tiny_http = {version = "0.12", optional = true}
toml = "0.8.0"
tracing-subscriber = "0.3"
umya-spreadsheet = "1.0"
url = {version = "2", optional = true}
xml-rs = "0.8"

[dev-dependencies]
Expand All @@ -50,10 +44,6 @@ insta = {version = "1.26.0", features = ["toml", "redactions"]}
pretty_assertions = "1.3"
ureq = {version = "2.7.1", default-features = false}

[features]
default = ["embed-documentation"]
embed-documentation = ["dep:include_dir", "dep:tiny_http", "dep:mime_guess", "dep:portpicker", "dep:open", "dep:url"]

# Compile some of the dependencies in release mode if when we are ourself in
# "dev" mode (like building debug binaries or running tests)
[profile.dev.package]
Expand Down
1 change: 0 additions & 1 deletion docs/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions docs/book.toml

This file was deleted.

2 changes: 0 additions & 2 deletions docs/book/compile.txt

This file was deleted.

140 changes: 0 additions & 140 deletions docs/src/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/src/SUMMARY.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/src/compile.txt

This file was deleted.

7 changes: 0 additions & 7 deletions docs/src/exporter/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions docs/src/graph_op/README.md

This file was deleted.

58 changes: 0 additions & 58 deletions docs/src/importer/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/src/test.txt

This file was deleted.

14 changes: 0 additions & 14 deletions src/bin/annatto.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#[cfg(feature = "embed-documentation")]
use annatto::documentation_server;
use annatto::{
error::AnnattoError,
workflow::{execute_from_file, StatusMessage, Workflow},
StepID,
};
#[cfg(feature = "embed-documentation")]
use anyhow::anyhow;
use indicatif::{ProgressBar, ProgressStyle};

use std::{collections::HashMap, convert::TryFrom, path::PathBuf, sync::mpsc, thread};
Expand All @@ -30,9 +26,6 @@ enum Cli {
#[structopt(parse(from_os_str))]
workflow_file: std::path::PathBuf,
},
#[cfg(feature = "embed-documentation")]
/// Show the documentation for this version of Annatto in the browser.
ShowDocumentation,
}

pub fn main() -> anyhow::Result<()> {
Expand All @@ -41,13 +34,6 @@ pub fn main() -> anyhow::Result<()> {
let args = Cli::from_args();
match args {
Cli::Run { workflow_file, env } => convert(workflow_file, env)?,
#[cfg(feature = "embed-documentation")]
Cli::ShowDocumentation => {
let (_, _, handle) = documentation_server::start_server(true)?;
handle
.join()
.map_err(|_e| anyhow!("Waiting for documentation server thread failed"))??;
}
Cli::Validate { workflow_file } => {
Workflow::try_from((workflow_file, false))?;
}
Expand Down
Loading