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

FR: A helper function for the reference index that will catch all not otherwise captured. #2098

Closed
Moohan opened this issue May 31, 2022 · 2 comments

Comments

@Moohan
Copy link

Moohan commented May 31, 2022

It would be great to have a helper function e.g. everything() which could be used as a catch-all for anything not otherwise captured by the reference index. At present, it throws a warning (or error in an action) if a function is missing from the reference. I would ideally have a yml as follows.

url: ~
template:
  bootstrap: 5

reference:
  - title: Some functions
    desc: Functions which do `a`
  - contents:
    - starts_with("do_a")
 
  - title: Some other functions
    desc: Functions which do `b` 
  - contents:
    - starts_with("do_b")

  - title: Everything else
  - desc: Functions which don't fall into the other categories
  - contents:
    - everything()
@maelle
Copy link
Collaborator

maelle commented May 31, 2022

Duplicate of #1964

@maelle maelle marked this as a duplicate of #1964 May 31, 2022
@maelle maelle closed this as completed May 31, 2022
@maelle
Copy link
Collaborator

maelle commented May 31, 2022

Thanks @Moohan! It sure looks like a popular feature request!

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