Skip to content

Commit a98f3a4

Browse files
committed
Fix adding outdated note to old docs versions.
1 parent a724095 commit a98f3a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

proptest/gen-docs.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ mkdir -p ~/p/misc/altsysrq.github.io/rustdoc/$crate
3434
cd ~/p/misc/altsysrq.github.io/rustdoc/$crate
3535
if test -e latest; then
3636
rm latest
37-
sed -ri~ '/docblock/s?<p>Proptest is?<p><strong>This documentation is for an old version of proptest. <a href="../../latest/proptest">Click here</a> to see the latest version.</strong></p>\
38-
<p>Proptest is?' */$crate/index.html
37+
sed -ri~ '/docblock.*>Proptest Reference Documentation/a\
38+
<p><strong>This documentation is for an old version of proptest. <a href="../../latest/proptest">Click here</a> to see the latest version.</strong></p>
39+
//s/>Proptest/>Outdated Proptest/' */proptest/index.html
3940
fi
4041
cp -a ~/p/rs/proptest/target/doc $version
4142
ln -s $version latest

0 commit comments

Comments
 (0)