diff --git a/docs/config/init.md b/docs/config/setup.md similarity index 85% rename from docs/config/init.md rename to docs/config/setup.md index 18105e19..f57fe628 100644 --- a/docs/config/init.md +++ b/docs/config/setup.md @@ -1,8 +1,18 @@ +++ -title = "Init" +title = "Setup" idx = 0 +++ +## Installing + +While `bough` is still in alpha, the recommended way to install it is directly via `cargo`: + +```bash +cargo install --locked --git https://github.com/CodeEnPlace/bough --bin bough +``` + +## Configuring + `bough` reads config formatted as `toml`, `yaml`, and `json`. We will use `toml` for the rest of this tutorial `bough` looks for config files in the current dir, and parent dirs, in the locations: @@ -19,7 +29,7 @@ bough show config in an uninitialized project to see the full ordered list of config search paths. -## Minimal Config +### Minimal Config ```toml base_root_dir = "." diff --git a/docs/mutations/index.md b/docs/mutations/index.md new file mode 100644 index 00000000..5c829850 --- /dev/null +++ b/docs/mutations/index.md @@ -0,0 +1,5 @@ ++++ +title = "Mutations" ++++ + +Reference for the mutations provided for each language diff --git a/docs/setup/index.md b/docs/setup/index.md deleted file mode 100644 index 8728630a..00000000 --- a/docs/setup/index.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Setup" -idx = 1 -+++ - -`bough` follows a principle of config over plugins. To get `bough` to mutate your files you have to tell it what language you're using and how to find your files using globs. - -We provide a menu of configs for languages `bough` supports. - -- [JavaScript] -- [TypeScript] - -[JavaScript]: /setup/javascript -[TypeScript]: /setup/typescript diff --git a/docs/setup/installation.md b/docs/setup/installation.md deleted file mode 100644 index 50204df9..00000000 --- a/docs/setup/installation.md +++ /dev/null @@ -1,10 +0,0 @@ -+++ -title = "Installing Bough" -idx = 1 -+++ - -While `bough` is still in alpha, the recommended way to install it is directly via `cargo`: - -```bash -cargo install --locked --git https://github.com/CodeEnPlace/bough --bin bough -```