diff --git a/docs/_data/packages.yml b/docs/_data/packages.yml index 8378295e..30198aaf 100644 --- a/docs/_data/packages.yml +++ b/docs/_data/packages.yml @@ -1,16 +1,16 @@ package: 'uri': name: 'uri' - version: '5.0' - latest: '5.3.0' + version: '6.0' + latest: '6.0.0' documentation: - '6.0' - '5.0' - '4.0' 'components': name: 'uri-components' - version: '1.0' - latest: '1.8.2' + version: '2.0' + latest: '2.0.0' documentation: - '2.0' - '1.0' diff --git a/docs/_data/project.yml b/docs/_data/project.yml index 6b3ff50b..4cfb0184 100644 --- a/docs/_data/project.yml +++ b/docs/_data/project.yml @@ -8,3 +8,9 @@ author: name: 'Ignace Nyamagana Butera' twitter_account: 'nyamsprod' support: 'Once a new major version is released, the previous stable release remains supported for six more months through patches and security fixes.' +deprecated: + 'schemes': 'uri' + 'manipulations': 'components' + 'domain-parser': '' + 'parser': 'uri' + 'query-parser': 'components' diff --git a/docs/_includes/building-block.md b/docs/_includes/building-block.md new file mode 100644 index 00000000..9b839b66 --- /dev/null +++ b/docs/_includes/building-block.md @@ -0,0 +1,15 @@ +
use League\Uri\Components\Query;
+use League\Uri\Uri;
+use League\Uri\UriModifier;
+
+$uri = Uri::createFromString('http://example.com?q=value#fragment');
+$newUri = UriModifier::appendQuery($uri, 'q=new.Value');
+echo $newUri; // 'http://example.com?q=value&q=new.Value#fragment';
+
+$query = Query::createFromUri($newUri);
+$newQuery->get('q');    // returns 'value'
+$newQuery->getAll('q'); // returns ['value', 'new.Value']
+$newQuery->params('q'); // returns 'new.Value'
+
+ +

The libraries manipulate URIs and their components using a simple yet expressive code.

diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index bfebad38..3f9346c9 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -79,6 +79,13 @@

{{ section[0] }}

{% if version != site.data.packages.package[package].version %}

Please consider using the the latest stable version for any production code.

{% endif %} + + {% for deprecated in site.data.project.deprecated %} +{% if deprecated[0] == package %} +

This package is deprecated Please consider using an stable alternative for any production code.

+{% endif %} + {% endfor %} + {{ content }} diff --git a/docs/_layouts/homepage.html b/docs/_layouts/homepage.html index dd9dd9a0..712eb307 100644 --- a/docs/_layouts/homepage.html +++ b/docs/_layouts/homepage.html @@ -9,7 +9,7 @@ - +