Skip to content

Commit

Permalink
fix(documentator): HTML entities encoding for include:document-list
Browse files Browse the repository at this point in the history
… and `include:package-list`
  • Loading branch information
LastDragon-ru committed Oct 19, 2023
1 parent 1db945b commit 0d2bd41
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This package provides a customizable wrapper around [Intl](https://www.php.net/m

## GraphQL Extensions for Lighthouse

This package provides highly powerful `@searchBy` and `@sortBy` directives for [lighthouse-php](https://lighthouse-php.com/). The `@searchBy` directive provides basic conditions like `=`, `>`, `<`, etc, relations, `not (<condition>)`, enums, and custom operators support. All are strictly typed so you no need to use `Mixed` type anymore. The `@sortBy` is not only about standard sorting by columns but also allows use relations. 😎
This package provides highly powerful `@searchBy` and `@sortBy` directives for [lighthouse-php](https://lighthouse-php.com/). The `@searchBy` directive provides basic conditions like `=`, `>`, `<`, etc, relations, `not (<condition>)`, enums, and custom operators support. All are strictly typed so you no need to use `Mixed` type anymore. The `@sortBy` is not only about standard sorting by columns but also allows use relations. 😎

[Read more](<packages/graphql/README.md>).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
?>
@foreach ($documents as $document)
## {{ $document['title'] }}
## {!! $document['title'] !!}
@if($document['summary'])

{{ $document['summary'] }}
{!! $document['summary'] !!}
@endif

[Read more](<{{ $document['path'] }}>).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
?>
@foreach ($packages as $package)
## {{ $package['title'] }}
## {!! $package['title'] !!}
@if($package['summary'])

{{ $package['summary'] }}
{!! $package['summary'] !!}
@endif

[Read more](<{{ $package['path'] }}>).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Document A

Summary text.
Summary text with special characters `<`, `>`, `&`.

Another text.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Document B
# `<` Document B `>`

Summary text.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Document summary.

## Document A

Summary text.
Summary text with special characters `<`, `>`, `&`.

[Read more](<IncludeDocumentListTest/Document A.md>).

## Document B
## `<` Document B `>`

Summary text.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## Document A

Summary text.
Summary text with special characters `<`, `>`, `&`.

[Read more](<Document A.md>).

## Document B
## `<` Document B `>`

Summary text.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!-- markdownlint-disable -->

## The Package
## The Package with custom readme

Summary text.
[Read more](<packages/package custom readme/CUSTOM.md>).

[Read more](<packages/package/README.md>).
## The `<` Package `>`

## The Package with custom readme
Summary text with special characters `<`, `>`, `&`.

[Read more](<packages/package custom readme/CUSTOM.md>).
[Read more](<packages/package/README.md>).
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# The Package
# The `<` Package `>`

Summary text.
Summary text with special characters `<`, `>`, `&`.
14 changes: 7 additions & 7 deletions packages/graphql-printer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ type A
The `$printer->export($type)` is:

```graphql
type A
@a
{
b: [B!]
id: ID!
}

directive @a
on
| OBJECT
Expand All @@ -92,13 +99,6 @@ directive @b
on
| OBJECT

type A
@a
{
b: [B!]
id: ID!
}

type B
@b
{
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ This package is the part of Awesome Set of Packages for Laravel. Please use the

[pkg:graphql#@searchBy]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql/docs/Directives/@searchBy.md

[pkg:graphql#@sortBy]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql/docs/Directives/@sortBy.md
[pkg:graphql#@sortBy]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql/docs/Directives/@sortBy.md

[pkg:graphql-printer]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql-printer
[pkg:graphql-printer]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql-printer

[//]: # (end: d8baa2418c8dbf3ba09f9b223885c4326bee3e69a2dc0873e243f0d34e002a85)
30 changes: 15 additions & 15 deletions packages/graphql/docs/Directives/@stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,33 @@ by an offset or a cursor.
"""
directive @stream(
"""
Overrides default builder. Useful if the standard detection
algorithm doesn't fit/work. By default, the directive will use
the field and its type to determine the Builder to query.
Overrides default searchable status.
"""
builder: StreamBuilder
searchable: Boolean

"""
Overrides default unique key. Useful if the standard detection
algorithm doesn't fit/work. By default, the directive will use
the name of field with `ID!` type.
Overrides default sortable status.
"""
key: String
sortable: Boolean

"""
Overrides default limit.
Overrides default builder. Useful if the standard detection
algorithm doesn't fit/work. By default, the directive will use
the field and its type to determine the Builder to query.
"""
limit: Int
builder: StreamBuilder

"""
Overrides default searchable status.
Overrides default limit.
"""
searchable: Boolean
limit: Int

"""
Overrides default sortable status.
Overrides default unique key. Useful if the standard detection
algorithm doesn't fit/work. By default, the directive will use
the name of field with `ID!` type.
"""
sortable: Boolean
key: String
)
on
| FIELD_DEFINITION
Expand Down Expand Up @@ -181,6 +181,6 @@ Keep in mind:

[pkg:graphql#@searchBy]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql/docs/Directives/@searchBy.md

[pkg:graphql#@sortBy]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql/docs/Directives/@sortBy.md
[pkg:graphql#@sortBy]: https://github.com/LastDragon-ru/lara-asp/tree/main/packages/graphql/docs/Directives/@sortBy.md

[//]: # (end: a170145c7adc0561ead408b0ea3a4b46e2e8f45ebc2744984ceb8c1b49822cd1)
6 changes: 3 additions & 3 deletions packages/serializer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ The `$serialized` is:
The `$deserialized` is:

```plain
User {#810
User {#814
+id: 1
+name: "User"
+created: Illuminate\Support\Carbon @1693125044 {#808
+created: Illuminate\Support\Carbon @1693125044 {#812
#endOfTime: false
#startOfTime: false
#constructedObjectId: "00000000000003280000000000000000"
#constructedObjectId: "000000000000032c0000000000000000"
#localMonthsOverflow: null
#localYearsOverflow: null
#localStrictModeEnabled: null
Expand Down

0 comments on commit 0d2bd41

Please sign in to comment.