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