Compare commits
6 Commits
a2f9622aaa
...
9075b34ca3
| Author | SHA1 | Date | |
|---|---|---|---|
| 9075b34ca3 | |||
| 7325e3a0c9 | |||
| 34e8ad4eb4 | |||
| 8a6dacf1c8 | |||
|
|
8a65a5e596 | ||
| 47996b81bc |
@@ -1,13 +1,11 @@
|
||||
[package]
|
||||
name = "docki"
|
||||
version = "1.2.1"
|
||||
version = "1.2.2"
|
||||
edition = "2021"
|
||||
description = "cli for building and publishing documentation using asciidoctor"
|
||||
license-file = "LICENSE.txt"
|
||||
authors = ["Quirin Ecker"]
|
||||
exclude = [
|
||||
".gitlab"
|
||||
]
|
||||
exclude = [".gitlab"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
||||
@@ -31,9 +31,6 @@ docki serve
|
||||
|
||||
### Homebrew
|
||||
|
||||
> [!NOTE]
|
||||
> Installing it via homebrew will not include asciidoctor_revealjs. It can be installed afterwards with `docki install-reveal`
|
||||
|
||||
```shell
|
||||
brew tap quirinecker/homebrew-docki https://github.com/quirinecker/homebrew-docki
|
||||
```
|
||||
@@ -50,7 +47,7 @@ If you just want to try it out real quick and the nix package manager is availab
|
||||
nix develop github:quirinecker/docki#preview
|
||||
```
|
||||
|
||||
This will open a shell evnironment with docki installed. If you want to install it permanently with nix, i would recommend following the instructions in the [Nix (Advanced, Flake)](#nix-(advanced%2C-flake)) section.
|
||||
This will open a shell evnironment with docki installed. If you want to install it permanently with nix, i would recommend following the instructions in the [Nix (Advanced, Flake)](#nix-advanced-flake) section.
|
||||
|
||||
### Cargo
|
||||
|
||||
|
||||
@@ -124,6 +124,9 @@
|
||||
docker = pkgs.dockerTools.buildImage {
|
||||
name = "docki";
|
||||
tag = "latest";
|
||||
config = {
|
||||
WorkingDir = "/app";
|
||||
};
|
||||
copyToRoot = pkgs.buildEnv {
|
||||
name = "docki-docker";
|
||||
paths = [
|
||||
|
||||
@@ -59,12 +59,12 @@ fn build_file(paths: Vec<std::path::PathBuf>) {
|
||||
let in_path = paths
|
||||
.first()
|
||||
.expect(invalid_path_message)
|
||||
.to_str()
|
||||
.strip_prefix(¤t_dir())
|
||||
.expect(invalid_path_message)
|
||||
.replace(¤t_dir(), "")
|
||||
.replace("/./", "./");
|
||||
|
||||
.to_str()
|
||||
.expect(invalid_path_message);
|
||||
|
||||
let in_path = format!("./{}", in_path);
|
||||
let result = docki_build(&in_path);
|
||||
|
||||
match result {
|
||||
|
||||
Reference in New Issue
Block a user