Skip to content

Commit 215841a

Browse files
bd808legoktm
authored andcommitted
Make README.md nicer for Doxygen processing
Follow the lead of the changes in I5e1bf85 for the at-ease library to make README.md play nicer with Doxygen's markdown processor: * Images used as the text of a link aren't rendered by Doxygen's markdown processor. Move the image source to a named link to make the output look a little nicer. * Doxygen isn't recognizing "```" as a fenced code block delimiter (even though it is documented as an alternate syntax [0]) so use 4 spaces to mark code blocks instead. [0]: http://michelf.com/projects/php-markdown/extra/#fenced-code-blocks Change-Id: Ifc3b3f1d4f512dd12edd715ca2c2a5682c63a4b0
1 parent 0737f8c commit 215841a

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Latest Stable Version](https://poser.pugx.org/wikimedia/cdb/v/stable.svg)](https://packagist.org/packages/wikimedia/cdb) [![License](https://poser.pugx.org/wikimedia/cdb/license.svg)](https://packagist.org/packages/wikimedia/cdb)
1+
[![Latest Stable Version]](https://packagist.org/packages/wikimedia/cdb) [![License]](https://packagist.org/packages/wikimedia/cdb)
22

33
CDB functions for PHP
44
=====================
@@ -9,29 +9,28 @@ library wraps the CDB functionality exposed in PHP via the `dba_*` functions.
99
In cases where `dba_*` functions are not present or are not compiled with CDB
1010
support, a pure-PHP implementation is provided for falling back.
1111

12-
Additional documentation about the library can be found on [MediaWiki.org](https://www.mediawiki.org/wiki/CDB).
12+
Additional documentation about the library can be found on
13+
[MediaWiki.org](https://www.mediawiki.org/wiki/CDB).
1314

1415

1516
Usage
1617
-----
1718

18-
```
19-
// Reading a CDB file
20-
$cdb = \Cdb\Reader::open( 'db.cdb' );
21-
$foo = $cdb->get( 'somekey' );
19+
// Reading a CDB file
20+
$cdb = \Cdb\Reader::open( 'db.cdb' );
21+
$foo = $cdb->get( 'somekey' );
22+
23+
// Writing to a CDB file
24+
$cdb = \Cdb\Writer::open( 'anotherdb.cdb' );
25+
$cdb->set( 'somekey', $foo );
2226

23-
// Writing to a CDB file
24-
$cdb = \Cdb\Writer::open( 'anotherdb.cdb' );
25-
$cdb->set( 'somekey', $foo );
26-
```
2727

2828
Running tests
2929
-------------
3030

31-
```
32-
composer install --prefer-dist
33-
composer test
34-
```
31+
composer install --prefer-dist
32+
composer test
33+
3534

3635
History
3736
-------
@@ -40,8 +39,11 @@ This library was first introduced in [MediaWiki 1.16][] ([r52203][]). It was
4039
split out of the MediaWiki codebase and published as an independent library
4140
during the [MediaWiki 1.25][] development cycle.
4241

42+
4343
---
4444
[CDB]: https://en.wikipedia.org/wiki/cdb_(software)
4545
[MediaWiki 1.16]: https://www.mediawiki.org/wiki/MediaWiki_1.16
4646
[r52203]: https://www.mediawiki.org/wiki/Special:Code/MediaWiki/52203
4747
[MediaWiki 1.25]: https://www.mediawiki.org/wiki/MediaWiki_1.25
48+
[Latest Stable Version]: https://poser.pugx.org/wikimedia/cdb/v/stable.svg
49+
[License]: https://poser.pugx.org/wikimedia/cdb/license.svg

0 commit comments

Comments
 (0)