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

#[docify::hidden] #10

Open
kianenigma opened this issue Oct 13, 2023 · 1 comment
Open

#[docify::hidden] #10

kianenigma opened this issue Oct 13, 2023 · 1 comment

Comments

@kianenigma
Copy link

within any span of code that is being rendered, the item following this should become hidden. This item could itself contain #[docify::export], so you could do:

#[docify::export]
fn foo() {
    let a = 10;
    #[docify::hidden] // makes this item hidden in the parent 
    #[docify::export] // makes this item individually reachable via `#[docify::embed("..", bar)]`
    let bar = 15;
}
kianenigma added a commit to kianenigma/docify that referenced this issue Oct 13, 2023
@sam0x17
Copy link
Owner

sam0x17 commented Oct 30, 2023

First portion of this is adding support for #[docify::export] on expr-position items via outer macro pattern of the enclosing #[docify::export] on the parent, then we can hit the other stuff once that capability is in place.

Have that WIP on allow-expr-exports branch

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