Skip to content

Incorrect code on capy-ui.org #4

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Ace-h121 opened this issue Feb 17, 2025 · 3 comments
Open

Incorrect code on capy-ui.org #4

Ace-h121 opened this issue Feb 17, 2025 · 3 comments

Comments

@Ace-h121
Copy link

Where was it found

I found this issue in the hello world section of the documentation

What is the bug

for some reason, on the webpage the documentation reads like this

pub usingnamespace capy.cross_platform;

pub fn main() !void {
    window.resize(800, 600);
    try window.set(
        capy.Button(.{ .label = "A Button" })
    );
    window.show();
}

the problem here is the capital B on Button, it causes the program not to compile as its referring to the struct instead of the function. In the .md file for this page it is correct, however on the webpage it is wrong.

@Ace-h121
Copy link
Author

If needed, I can investigate and help fix this bug.

@Ace-h121
Copy link
Author

After doing a bit of research, it seems that the local build of the repo is just find, the website seems to not be updating based on the repository. Running a push of the current codebase to the website should fix it.

@Eloitor
Copy link

Eloitor commented Feb 23, 2025

This is also an issue here: https://capy-ui.org/docs/api-reference/components/button

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants