From 4f7e7ca88fee3677a64b08d2658cf7ba68352257 Mon Sep 17 00:00:00 2001 From: Alec Reynolds Date: Tue, 13 Feb 2024 13:24:23 -0800 Subject: [PATCH] Update netlify.toml (#61) * Update netlify.toml to use /plugins prefix. * Update doc plugin paths. * Update all docs to use /plugins prefix in links. --- docs/config.md | 12 ++++++------ docs/tooling.md | 4 ++-- netlify.toml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/config.md b/docs/config.md index 8bcf5ad..f456f6e 100644 --- a/docs/config.md +++ b/docs/config.md @@ -29,7 +29,7 @@ Note that if the above config options are not enough, all Lando recipes can be f ## Choosing a php version -You can set `php` to any version that is available in our [php service](https://docs.lando.dev/php). However, you should consult the [WordPress requirements](https://wordpress.org/about/requirements/) to make sure that version is actually supported by WordPress itself. +You can set `php` to any version that is available in our [php service](https://docs.lando.dev/plugins/php). However, you should consult the [WordPress requirements](https://wordpress.org/about/requirements/) to make sure that version is actually supported by WordPress itself. The [recipe config](https://docs.lando.dev/core/v3/recipes.html#config) to set the WordPress recipe to use `php` version `7.1` is shown below: @@ -40,7 +40,7 @@ config: ``` ## Choosing a composer version -You can set `composer_version` to any version that is available in our [php service](https://docs.lando.dev/php/config.html#installing-composer). +You can set `composer_version` to any version that is available in our [php service](https://docs.lando.dev/plugins/php/config.html#installing-composer). ```yaml recipe: wordpress @@ -50,7 +50,7 @@ config: ## Choosing a web server -By default, this recipe will be served by the default version of our [apache](https://docs.lando.dev/apache) service but you can also switch this to use [`nginx`](https://docs.lando.dev/nginx). We *highly recommend* you check out both the [apache](https://docs.lando.dev/apache) and [nginx](https://docs.lando.dev/nginx) services before you change the default `via`. +By default, this recipe will be served by the default version of our [apache](https://docs.lando.dev/plugins/apache) service but you can also switch this to use [`nginx`](https://docs.lando.dev/plugins/nginx). We *highly recommend* you check out both the [apache](https://docs.lando.dev/plugins/apache) and [nginx](https://docs.lando.dev/plugins/nginx) services before you change the default `via`. #### With Apache (default) @@ -70,9 +70,9 @@ config: ## Choosing a database backend -By default, this recipe will use the default version of our [mysql](https://docs.lando.dev/mysql) service as the database backend but you can also switch this to use [`mariadb`](https://docs.lando.dev/mariadb) or ['postgres'](https://docs.lando.dev/postgres) instead. Note that you can also specify a version *as long as it is a version available for use with lando* for either `mysql`, `mariadb` or `postgres`. +By default, this recipe will use the default version of our [mysql](https://docs.lando.dev/plugins/mysql) service as the database backend but you can also switch this to use [`mariadb`](https://docs.lando.dev/plugins/mariadb) or ['postgres'](https://docs.lando.dev/plugins/postgres) instead. Note that you can also specify a version *as long as it is a version available for use with lando* for either `mysql`, `mariadb` or `postgres`. -If you are unsure about how to configure the `database`, we *highly recommend* you check out the [mysql](https://docs.lando.dev/mysql), [mariadb](https://docs.lando.dev/mariadb)and ['postgres'](https://docs.lando.dev/postgres) services before you change the default. +If you are unsure about how to configure the `database`, we *highly recommend* you check out the [mysql](https://docs.lando.dev/plugins/mysql), [mariadb](https://docs.lando.dev/plugins/mariadb)and ['postgres'](https://docs.lando.dev/plugins/postgres) services before you change the default. Also note that like the configuration of the `php` version you should consult the [WordPress requirements](https://wordpress.org/about/requirements/) to make sure the `database` and `version` you select is actually supported by WordPress itself. @@ -193,7 +193,7 @@ You may need to override our [default WordPress config](https://github.com/lando If you do this, you must use files that exist inside your application and express them relative to your project root as shown below: -Note that the default files may change based on how you set both `ssl` and `via`. Also note that the `vhosts` and `server` config will be either for `apache` or `nginx` depending on how you set `via`. We *highly recommend* you check out both the [apache](https://docs.lando.dev/apache/config.html) and [nginx](https://docs.lando.dev/nginx/config.html) if you plan to use a custom `vhosts` or `server` config. +Note that the default files may change based on how you set both `ssl` and `via`. Also note that the `vhosts` and `server` config will be either for `apache` or `nginx` depending on how you set `via`. We *highly recommend* you check out both the [apache](https://docs.lando.dev/plugins/apache/config.html) and [nginx](https://docs.lando.dev/plugins/nginx/config.html) if you plan to use a custom `vhosts` or `server` config. **A hypothetical project** diff --git a/docs/tooling.md b/docs/tooling.md index cc5fd94..73fdacf 100644 --- a/docs/tooling.md +++ b/docs/tooling.md @@ -38,7 +38,7 @@ You can also run `lando` from inside your app directory for a complete list of c ## Using xdebug -This is just a passthrough option to the [xdebug setting](https://docs.lando.dev/php/config.html#using-xdebug) that exists on all our [php services](https://docs.lando.dev/php). The `tl;dr` is `xdebug: true` enables and configures the php xdebug extension and `xdebug: false` disables it. +This is just a passthrough option to the [xdebug setting](https://docs.lando.dev/plugins/php/config.html#using-xdebug) that exists on all our [php services](https://docs.lando.dev/plugins/php). The `tl;dr` is `xdebug: true` enables and configures the php xdebug extension and `xdebug: false` disables it. ```yaml recipe: wordpress @@ -46,7 +46,7 @@ config: xdebug: true|false ``` -However, for more information we recommend you consult the [php service documentation](https://docs.lando.dev/php). +However, for more information we recommend you consult the [php service documentation](https://docs.lando.dev/plugins/php). ## Importing Your Database diff --git a/netlify.toml b/netlify.toml index 9cdacbf..42e1e58 100644 --- a/netlify.toml +++ b/netlify.toml @@ -39,9 +39,9 @@ # We need this so preview environments and the base site look ok on their own [[redirects]] from = "/" - to = "/wordpress" + to = "/plugins/wordpress" status = 200 [[redirects]] - from = "/wordpress/*" + from = "/plugins/wordpress/*" to = "/:splat" status = 200 \ No newline at end of file