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

Fix links in docs to point to drush 11 #5075

Merged
merged 1 commit into from Feb 16, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Commands/ArtCommands.php
Expand Up @@ -23,7 +23,7 @@
* This file is a good example of the first of those bullets (a commandfile) but
* since it isn't part of a module, it does not implement drush.services.yml.
*
* See [Drush Test Traits](https://github.com/drush-ops/drush/blob/10.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.
* See [Drush Test Traits](https://github.com/drush-ops/drush/blob/11.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.
*/

class ArtCommands extends DrushCommands implements CustomEventAwareInterface
Expand Down
2 changes: 1 addition & 1 deletion examples/Commands/PolicyCommands.php
Expand Up @@ -9,7 +9,7 @@
/**
* Load this commandfile using the --include option - e.g. `drush --include=/path/to/drush/examples`
*
* See [Drush Test Traits](https://github.com/drush-ops/drush/blob/10.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.
* See [Drush Test Traits](https://github.com/drush-ops/drush/blob/11.x/docs/contribute/unish.md#about-the-test-suites) for info on testing Drush commands.
*/

class PolicyCommands extends DrushCommands
Expand Down
4 changes: 1 addition & 3 deletions examples/helloworld.script
Expand Up @@ -2,16 +2,14 @@

//
// This example demonstrates how to write a drush
// script. These scripts are run with the php-script command.
// script. These scripts are run with the php:script command.
//
use Drush\Drush;

$this->output()->writeln("Hello world!");
$this->output()->writeln("The extra options/arguments to this command were:");
$this->output()->writeln(print_r($extra, true));



//
// We can check which site was bootstrapped via
// the '@self' alias, which is defined only if
Expand Down
2 changes: 1 addition & 1 deletion mkdocs_base.yml
Expand Up @@ -18,7 +18,7 @@ theme:
site_url: https://www.drush.org/latest/
repo_url: https://github.com/drush-ops/drush
#Overridden on many pages via edit_uri plugin. See front matter.
edit_uri: blob/10.x/docs
edit_uri: blob/11.x/docs
extra_css:
- css/extra.drush.css
plugins:
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/core/DocsCommands.php
Expand Up @@ -110,7 +110,7 @@ public function siteAliases(): void
* An example Drush script.
*
* @command docs:script
* @aliases docs-scipt
* @aliases docs-script
* @hidden
* @topic ../../../examples/helloworld.script
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/core/MkCommands.php
Expand Up @@ -28,7 +28,7 @@ class MkCommands extends DrushCommands implements SiteAliasManagerAwareInterface
/**
* Build a Markdown document for each Drush command/generator that is available on a site.
*
* This command is an early step when building the www.drush.org static site. Adapt it to build a similar site listing the commands that are available on your site. Also see Drush's [Github Actions workflow](https://github.com/drush-ops/drush/blob/10.x/.github/workflows/main.yml).
* This command is an early step when building the www.drush.org static site. Adapt it to build a similar site listing the commands that are available on your site. Also see Drush's [Github Actions workflow](https://github.com/drush-ops/drush/blob/11.x/.github/workflows/main.yml).
*
* @command mk:docs
* @bootstrap max
Expand Down Expand Up @@ -130,7 +130,7 @@ protected static function appendTopics(AnnotatedCommand $command, string $dir_co
$value = "- [$topic_description]($target_relative) ($name)";
} else {
$rel_from_root = Path::makeRelative($abs, DRUSH_BASE_PATH);
$value = "- [$topic_description](https://raw.githubusercontent.com/drush-ops/drush/10.x/$rel_from_root) ($name)";
$value = "- [$topic_description](https://raw.githubusercontent.com/drush-ops/drush/11.x/$rel_from_root) ($name)";
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Drupal/Commands/sql/SanitizeCommands.php
Expand Up @@ -19,7 +19,7 @@ class SanitizeCommands extends DrushCommands implements CustomEventAwareInterfac
* - `@hook on-event sql-sanitize-confirms`. Display summary to user before confirmation.
* - `@hook post-command sql-sanitize`. Run queries or call APIs to perform sanitizing
*
* Several working commandfiles may be found at https://github.com/drush-ops/drush/tree/10.x/src/Drupal/Commands/sql
* Several working commandfiles may be found at https://github.com/drush-ops/drush/tree/11.x/src/Drupal/Commands/sql
*
* @command sql:sanitize
* @aliases sqlsan,sql-sanitize
Expand Down
2 changes: 1 addition & 1 deletion src/TestTraits/DrushTestTrait.php
Expand Up @@ -6,7 +6,7 @@
* DrushTestTrait provides a `drush()` method that may be
* used to write functional tests for Drush extensions.
*
* More information is available at https://github.com/drush-ops/drush/blob/10.x/docs/contribute/unish.md#drush-test-traits.
* More information is available at https://github.com/drush-ops/drush/blob/11.x/docs/contribute/unish.md#drush-test-traits.
*/
trait DrushTestTrait
{
Expand Down