Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement static generation and github hooks #12
Comments
doppioslash
added
the
enhancement
label
Sep 6, 2016
This comment has been minimized.
This comment has been minimized.
|
Turns out by automating we'd get a lot of wrong info, because people don't keep their crates.io library entries up-to-date... |
This comment has been minimized.
This comment has been minimized.
viperscape
commented
Jun 12, 2017
|
Hi, do you have a separate repo containing any automation work for this yet? I had some ideas |
This comment has been minimized.
This comment has been minimized.
|
No, I don't. Only researched how arewewebyet was doing it, and figuring out that cobalt lacks the data files feature that they use from Jekyll. |
This comment has been minimized.
This comment has been minimized.
viperscape
commented
Jul 27, 2017
|
Hey, sorry been super busy but wanted to look at this again :) What do you mean by data files? "Turns out by automating we'd get a lot of wrong info, because people don't keep their crates.io library entries up-to-date..." Also, just saw this pop up on my radar: https://bitbucket.org/Alex_PK/strange/ |
This comment has been minimized.
This comment has been minimized.
|
The data files feature that they use from Jekyll |
This comment has been minimized.
This comment has been minimized.
|
at a first look |
This comment has been minimized.
This comment has been minimized.
viperscape
commented
Aug 1, 2017
|
I have forked and started proceeding on the autogenerating code https://github.com/viperscape/arewegameyet so far it parses crates based on a list, next up it will render the Crate objects into basic html snippets (probably using mustache) |
This comment has been minimized.
This comment has been minimized.
|
Cool! |
This comment has been minimized.
This comment has been minimized.
viperscape
commented
Aug 3, 2017
|
Given this generic crate view: https://github.com/viperscape/arewegameyet/blob/master/views/crates.html I think functionality wise, this is in pretty good shape, I am only taking in these crate attributes from crates.io: #[derive(Debug,RustcEncodable)]
pub struct Crate {
name: String,
version: String,
description: String,
license: String,
repository: String
}So if we want more, we'll have to add them in to the parser. I moved your original site files into static for now, and the output generated goes in to Build. I think it will make more sense to have everything in a subdir called |
This comment has been minimized.
This comment has been minimized.
GloverDonovan
commented
Mar 25, 2018
|
Bumping this. I'd like to see #7 fixed as well! @viperscape I looked through your fork and it seems much better than how things are handled now. Is there any update on whether or not this change is welcome? |
This comment has been minimized.
This comment has been minimized.
viperscape
commented
Mar 26, 2018
|
@GloverDonovan Thanks! No response, my guess is this is low on @doppioslash totem pole |
This comment has been minimized.
This comment has been minimized.
|
Yeah, sorry, it's been busy year. But it's great what you did @viperscape |
doppioslash
changed the title
Move to cobalt-rs
Implement static generation and github hooks
Aug 29, 2018
This comment has been minimized.
This comment has been minimized.
|
Hi! Would you consider using Gutenberg? Its written in Rust and has support for data files. I've been using it for quite some time and love it. https://github.com/Keats/gutenberg/ Here is the PR in question getzola/zola#476 I believe it will be in the next release which should be dropping soon. (Note that it is changing the name to Zola due to wordpress seo stuff). I would be happy to assist. |
This comment has been minimized.
This comment has been minimized.
|
Hey @piedoom, yeah I would consider that. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The order in which crates are listed on the category pages seems quite arbitrary. They appear in the same order they are listed in the data file. It would be nice if there was some consistent order... Does Zola support automatic sorting of items by name or meta data (such as number of downloads)? |
This comment has been minimized.
This comment has been minimized.
|
Good idea. I'll look into it, I think it might be able to be accomplished with this. I'll open up a separate issue. |
doppioslash commentedSep 6, 2016
•
edited
This requires cobalt-rs to support data files.