mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Make headings style consistent, remove blank lines.
This commit is contained in:
51
README.md
51
README.md
@ -1,5 +1,4 @@
|
|||||||
LinkTitles
|
# LinkTitles
|
||||||
==========
|
|
||||||
|
|
||||||
[MediaWiki extension](https://www.mediawiki.org/wiki/Extension:LinkTitles) that
|
[MediaWiki extension](https://www.mediawiki.org/wiki/Extension:LinkTitles) that
|
||||||
automatically adds links to words that match titles of existing pages.
|
automatically adds links to words that match titles of existing pages.
|
||||||
@ -7,9 +6,7 @@ automatically adds links to words that match titles of existing pages.
|
|||||||
Minimum requirement: MediaWiki 1.28. Source code documentation can be
|
Minimum requirement: MediaWiki 1.28. Source code documentation can be
|
||||||
found at the [Github project pages](https://bovender.github.io/LinkTitles).
|
found at the [Github project pages](https://bovender.github.io/LinkTitles).
|
||||||
|
|
||||||
|
## Table of contents
|
||||||
Table of contents
|
|
||||||
-----------------
|
|
||||||
|
|
||||||
1. [Oveview](#overview)
|
1. [Oveview](#overview)
|
||||||
- [Versions](#versions)
|
- [Versions](#versions)
|
||||||
@ -43,9 +40,7 @@ Table of contents
|
|||||||
- [Testing](#testing)
|
- [Testing](#testing)
|
||||||
7. [License](#license)
|
7. [License](#license)
|
||||||
|
|
||||||
|
## Overview
|
||||||
Overview
|
|
||||||
--------
|
|
||||||
|
|
||||||
The **LinkTitles** extension automatically adds links to existing page titles
|
The **LinkTitles** extension automatically adds links to existing page titles
|
||||||
that occur on a given page. This will automatically cross-reference your wiki
|
that occur on a given page. This will automatically cross-reference your wiki
|
||||||
@ -65,7 +60,6 @@ original content will not be modified.
|
|||||||
once. Batch processing can either be started from a special page, or from the
|
once. Batch processing can either be started from a special page, or from the
|
||||||
server's command line (see [below](#batch-processing)).
|
server's command line (see [below](#batch-processing)).
|
||||||
|
|
||||||
|
|
||||||
### Versions
|
### Versions
|
||||||
|
|
||||||
This extension is [semantically versioned](http://semver.org). In short, this
|
This extension is [semantically versioned](http://semver.org). In short, this
|
||||||
@ -92,9 +86,7 @@ Version | Date | Major changes ||
|
|||||||
For more details, click the 'Details' links, see the `NEWS.md` file in the
|
For more details, click the 'Details' links, see the `NEWS.md` file in the
|
||||||
repository for a user-friendly changelog, or study the commit messages.
|
repository for a user-friendly changelog, or study the commit messages.
|
||||||
|
|
||||||
|
## Installation
|
||||||
Installation
|
|
||||||
------------
|
|
||||||
|
|
||||||
To obtain the extension, you can either download a compressed archive from the
|
To obtain the extension, you can either download a compressed archive from the
|
||||||
[Github releases page](https://github.com/bovender/LinkTitles/releases): Choose
|
[Github releases page](https://github.com/bovender/LinkTitles/releases): Choose
|
||||||
@ -115,9 +107,7 @@ Do not forget to adjust the [configuration](#configuration) to your needs.
|
|||||||
If your MediaWiki version is really old (1.24 and older), you need to use
|
If your MediaWiki version is really old (1.24 and older), you need to use
|
||||||
a [different mechanism](https://www.mediawiki.org/wiki/Manual:Extensions#Installing_an_extension).
|
a [different mechanism](https://www.mediawiki.org/wiki/Manual:Extensions#Installing_an_extension).
|
||||||
|
|
||||||
|
## Important note for MediaWiki versions 1.32 and newer
|
||||||
Important note for MediaWiki versions 1.32 and newer
|
|
||||||
----------------------------------------------------
|
|
||||||
|
|
||||||
**Links can no longer be automatically added when a page is saved with
|
**Links can no longer be automatically added when a page is saved with
|
||||||
MediaWiki versions 1.32 and newer.** This is because MediaWiki changed the
|
MediaWiki versions 1.32 and newer.** This is because MediaWiki changed the
|
||||||
@ -138,8 +128,7 @@ A workaround is to set up a cron job for the command-line tool, e.g.
|
|||||||
[T222413]: https://phabricator.wikimedia.org/T222413
|
[T222413]: https://phabricator.wikimedia.org/T222413
|
||||||
[467308]: https://gerrit.wikimedia.org/r/467308
|
[467308]: https://gerrit.wikimedia.org/r/467308
|
||||||
|
|
||||||
Usage
|
## Usage
|
||||||
-----
|
|
||||||
|
|
||||||
### Editing a page
|
### Editing a page
|
||||||
|
|
||||||
@ -248,9 +237,7 @@ See all available options with:
|
|||||||
|
|
||||||
php linktitles-cli.php -h
|
php linktitles-cli.php -h
|
||||||
|
|
||||||
|
## Configuration
|
||||||
Configuration
|
|
||||||
-------------
|
|
||||||
|
|
||||||
To change the configuration, set the variables in your `LocalSettings.php` file.
|
To change the configuration, set the variables in your `LocalSettings.php` file.
|
||||||
The code lines below show the default values of the configuration variables.
|
The code lines below show the default values of the configuration variables.
|
||||||
@ -459,9 +446,7 @@ The `LinkTitles:Special` page performs batch processing of pages by repeatedly
|
|||||||
calling itself. This happens to prevent timeouts on your server. The default
|
calling itself. This happens to prevent timeouts on your server. The default
|
||||||
reload interval is 1 second.
|
reload interval is 1 second.
|
||||||
|
|
||||||
|
## Development
|
||||||
Development
|
|
||||||
-----------
|
|
||||||
|
|
||||||
If you wish to contribute, please issue pull requests against the `develop`
|
If you wish to contribute, please issue pull requests against the `develop`
|
||||||
branch, as I roughly follow Vincent Driessen's advice on [A successful Git
|
branch, as I roughly follow Vincent Driessen's advice on [A successful Git
|
||||||
@ -471,7 +456,6 @@ branching model](http://nvie.com/git-model) (knowing that there are
|
|||||||
The `master` branch contains stable releases only, so it is safe to pull the
|
The `master` branch contains stable releases only, so it is safe to pull the
|
||||||
master branch if you want to install the extension for your own Wiki.
|
master branch if you want to install the extension for your own Wiki.
|
||||||
|
|
||||||
|
|
||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
- Daniel Kraus (@bovender), main developer
|
- Daniel Kraus (@bovender), main developer
|
||||||
@ -482,13 +466,26 @@ master branch if you want to install the extension for your own Wiki.
|
|||||||
- Caleb Mingle (@dentafrice), bug fix
|
- Caleb Mingle (@dentafrice), bug fix
|
||||||
- @paladox, bug fixes
|
- @paladox, bug fixes
|
||||||
|
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
Starting from version 5, LinkTitles finally comes with phpunit tests. The code
|
Starting from version 5, LinkTitles finally comes with phpunit tests. The code
|
||||||
is not 100% covered yet. If you find something does not work as expected, let me
|
is not 100% covered yet. If you find something does not work as expected, let me
|
||||||
know and I will try to add unit tests and fix it.
|
know and I will try to add unit tests and fix it.
|
||||||
|
|
||||||
|
#### Testing with Docker
|
||||||
|
|
||||||
|
If you have [Docker](https://www.docker.com) available, simply to this:
|
||||||
|
|
||||||
|
docker build -t bovender/linktitles .
|
||||||
|
docker run -it --rm bovender/linktitles # repeat as necessary
|
||||||
|
|
||||||
|
Or:
|
||||||
|
|
||||||
|
make build-test-container
|
||||||
|
make test # repeat as necessary
|
||||||
|
|
||||||
|
#### The Olde Way
|
||||||
|
|
||||||
Here's how I set up the testing environment. This may not be the canonical way
|
Here's how I set up the testing environment. This may not be the canonical way
|
||||||
to do it. Basic information on testing MediaWiki can be found
|
to do it. Basic information on testing MediaWiki can be found
|
||||||
[here](https://www.mediawiki.org/wiki/Manual:PHP_unit_testing).
|
[here](https://www.mediawiki.org/wiki/Manual:PHP_unit_testing).
|
||||||
@ -547,9 +544,7 @@ use Ubuntu).
|
|||||||
If you linked just the LinkTitles extension in step 5, only this extension
|
If you linked just the LinkTitles extension in step 5, only this extension
|
||||||
will be tested.
|
will be tested.
|
||||||
|
|
||||||
|
## License
|
||||||
License
|
|
||||||
-------
|
|
||||||
|
|
||||||
Copyright 2012-2020 Daniel Kraus <mailto:bovender@bovender.de> (GitHub: @bovender)
|
Copyright 2012-2020 Daniel Kraus <mailto:bovender@bovender.de> (GitHub: @bovender)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user