Skip to content

Commit 5c057e3

Browse files
Merge #1010
1010: Readme rendering - only rerender older than a date, only rerender for a crate r=carols10cents Only rerender in a `Box<T>`, only rerender in Firefox :) These changes add some arguments to the render-readmes script to make it easier to restart a failed run only with those readmes that have not been rendered since a particular date, and to rerender one particular crate's readmes. By default, the render-readmes script still rerenders all readmes of all versions. But if the script is killed partway through, it doesn't need to be completely restarted-- you can grab the time that the script printed out that it started, then rerun with `--older-than thattime`, and it'll only try and render the ones it hasn't gotten to yet! Another thing I've wanted is the ability to render one particular crate's readmes, so that I don't have to scroll through all the logs to see why a particular crate failed. So I added the `--crate` argument too. I'd like to get this into the same deploy as #981 since that requires rerendering everything again. @kureuil, could you look over this and see if it looks like I might be breaking anything?
2 parents 0a01fcc + eee6c09 commit 5c057e3

File tree

8 files changed

+208
-54
lines changed

8 files changed

+208
-54
lines changed

Cargo.lock

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ clippy = { version = "=0.0.142", optional = true }
5050
chrono = "0.4.0"
5151
comrak = { version = "0.1.8", default-features = false }
5252
ammonia = "0.5.0"
53+
docopt = "0.8.1"
54+
itertools = "0.6.0"
5355

5456
conduit = "0.8"
5557
conduit-conditional-get = "0.8"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE readme_rendering;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CREATE TABLE readme_rendering (
2+
version_id INTEGER NOT NULL PRIMARY KEY,
3+
rendered_at TIMESTAMP WITHOUT TIME ZONE
4+
);
5+
6+
ALTER TABLE readme_rendering
7+
ADD CONSTRAINT "fk_readme_rendering_version_id"
8+
FOREIGN KEY (version_id)
9+
REFERENCES versions(id)
10+
ON DELETE CASCADE;

0 commit comments

Comments
 (0)