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

Consider generating a website #23

Closed
madebr opened this issue Nov 19, 2020 · 8 comments
Closed

Consider generating a website #23

madebr opened this issue Nov 19, 2020 · 8 comments

Comments

@madebr
Copy link
Contributor

madebr commented Nov 19, 2020

The more functionality you/we add to conan-center-bot, the more the reports at at #1 and conan-io/conan-center-index#3470 will get more complicated.

That's why I suggest to create a webpage.

I have good experience with lektor.
This is a python static website generator.
(I don't know much about css+html+javascript though)

If the backend creates a python object with all the information,
then the frontends can generate a website and issue markdown.
By using github pages, the site can be published at e.g. https://qchateau.github.io/conan-center-bot.

@qchateau
Copy link
Owner

That can be the next step.

But instead of generating the website, I'd just write the website, which would load data from a JSON. Then CCB can simply re-generate and update the JSON file when it runs. We just need to refresh the data, not the whole website.

@madebr
Copy link
Contributor Author

madebr commented Nov 19, 2020

Generating these (and more) artefacts will also make it easier for people to create extensions.
If loading would be non-trivial, it would be nice if ccbot would provide a loader/class of some sort.

@qchateau
Copy link
Owner

If loading would be non-trivial, it would be nice if ccbot would provide a loader/class of some sort.

What do you mean ?

What I have in mind is just a JSON file deployed to github pages (which means available through HTTPS to anyone) which CCB will keep up-to-date

@madebr
Copy link
Contributor Author

madebr commented Nov 19, 2020

JSON files can sometimes be quite complex containing cross references.
Also your ccbot library will probably contain util functions/classes to make working with repos easier. I was asking to consider serializing and deserializing the data.

@qchateau
Copy link
Owner

Ok, there we go: https://qchateau.github.io/conan-center-bot

It's pretty much the same thing that we have in the issue atm, but as you said it's easier to add features.

The problem is that it has even less visibility than the issue in CCI

@madebr
Copy link
Contributor Author

madebr commented Nov 20, 2020

Very nice!
Somebody in this thread had very little sleep 😄

I would let the CCI issue consist of a table with the basic data and link back to the issue.
Right now, the bot only checks for newer versions.
But it can check many more things, such as outdated dependencies, violations against the hooks, ...
The website is more welcoming to adding this information as the issue will feel overcrowded quickly.

@qchateau
Copy link
Owner

Yeah I've got plenty of free time atm, but it's not gonna last :)

I guess I'll just link the website in the issue then

@qchateau
Copy link
Owner

I'm closing this issue now that there is a website. We can always create more issues to add features to it

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