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

Add <-> (for class Block rw signature introducer) to Search box #4440

Open
librasteve opened this issue Mar 20, 2024 · 1 comment
Open

Add <-> (for class Block rw signature introducer) to Search box #4440

librasteve opened this issue Mar 20, 2024 · 1 comment

Comments

@librasteve
Copy link
Contributor

Problem or new feature

Typing <-> into the search box only shows results for infix:<-> (ie subtracttion operator)

It should also facilitate discovery of the class Block syntax set out here https://docs.raku.org/type/Block

A block can have a Signature between -> or <-> and the block:

Suggestions

Please add a new entry for <-> to the search box

I also suggest an additional -> entry that also points to the class Block page

@coke coke transferred this issue from Raku/doc Mar 20, 2024
@finanalyst
Copy link
Collaborator

@coke @librasteve IMHO this is a content issue, not a build issue. The desired behaviour can be achieved by adding X<> to type/Block eg

between X« -> | Block argument pointy» or X«<->| Block argument rw pointy» and the block 

All X<> markup is then picked up automatically and inserted in to the search data and into the Index

finanalyst referenced this issue in Raku/doc-website Mar 21, 2024
- Indexed data is automatically collected, but was not used in the original website. I think this was a mistake.
- Not all pages have much indexing, but recently Issue #350 shows that there is room for more.
- I have been running this patch on new-raku, and it is fairly useful on pages like [new-raku operators](https://new-raku.finanalyst.org/language/operators)
@coke coke transferred this issue from Raku/doc-website Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants