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

Is there a particular reason why when I search the docs for seeing where a file it is defined in, I am getting a 404? #64

Open
UltimaTerra opened this issue Dec 11, 2023 · 3 comments
Labels

Comments

@UltimaTerra
Copy link

Hi, I am trying to make a GUI game engine with Crystal, and I wanted to use this library for GTK bindings. I am not trying to make an efficient 2-D/3-D engine, just one that works with simple design. I was browsing the docs for seeing where what is defined where and a lot come up with 404. I was wondering if it was normal: https://hugopl.github.io/gtk4.cr/

Thank you, otherwise keep up the great work! I love the idea of this project, regardless if I use GTK for my Game Engine.

@hugopl hugopl added the doc gen label Dec 11, 2023
@hugopl
Copy link
Owner

hugopl commented Dec 11, 2023

Hi, it's a known issue.

The API is generated from source files generated by the binding generator, so they aren't on github. If you look at the links you will see things like:

https://github.com/hugopl/gtk4.cr/blob/729b9a3ea5294ad559b0647e8850c43dbee6fe58/lib/gi-crystal/src/auto/g_object-2.0/object.cr#L250

Everything inside lib/gi-crystal/src/auto is generated.

A solution would be to git add the generated files in the gh-pages repository and maybe play with crysal doc options like --source-url-pattern and --canonical-base-url.

I would love to have this fixed but I probably wont be fixing that. The reason is simple: lack of time, so I prefer to use my limited time to work on bug fixes despite of the importance of having good docs.

If you are interested in fix that the docs are generated by this github action: https://github.com/hugopl/gtk4.cr/blob/main/.github/workflows/gh-pages.yml it just call make doc, you can find what it does by looking at https://github.com/hugopl/gtk4.cr/blob/main/Makefile

@UltimaTerra
Copy link
Author

UltimaTerra commented Dec 15, 2023

Screenshot from 2023-12-14 23-25-26

Hi, so I did that I think. I cloned the repo in vs code (I used solarized light mode because I code at night, fair warning). Here is my output.
I did this because I noticed the github workflows uses the same Ubuntu as I use, I am just on Pop OS. I generated the docs without a problem I believe, but here is my full output. BUT, as far as I can tell, the docs generated just fine.

I am inclined to believe it might be an issue with the github action, but I would be lying if I said I knew what was going on, I will try to see if I can make the github action to work on my end. Any other troubleshooting steps I should take?

Also, If I can make it work, I assume I can just submit a pull request with the changes?

Edit: Docs generated with the make command, but if you try to open the html in the browser, it does get a 404 again. I guess that is expected, I am going to do some troubleshooting best as I can.

@hugopl
Copy link
Owner

hugopl commented Dec 17, 2023

Yes, a PR is welcome.

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

No branches or pull requests

2 participants