org: fix two links
Fixes #150. * doc/org/tut.org: Fix links to notebooks. * tests/sanity/ipynb.pl: Catch this type of errors in the future.
This commit is contained in:
parent
199e5fd2e0
commit
26d7264717
2 changed files with 11 additions and 6 deletions
|
|
@ -44,13 +44,18 @@ my $exit_status = 0;
|
|||
my %seen;
|
||||
while (<FD>)
|
||||
{
|
||||
if (m:\]\[=([\w-]+\.ipynb)=\]\]:)
|
||||
if (m:/([\w-]+)\.html\]\[=([\w-]+\.ipynb)=\]\]:)
|
||||
{
|
||||
# print "$1 documented";
|
||||
$seen{$1} = 1;
|
||||
unless (-f "$dir/$1")
|
||||
$seen{$2} = 1;
|
||||
unless (-f "$dir/$2")
|
||||
{
|
||||
print STDERR "notebook $1 mentioned in tut.org does not exist";
|
||||
print STDERR "notebook $2 mentioned in tut.org does not exist";
|
||||
$exit_status = 1;
|
||||
}
|
||||
if ("$1.ipynb" ne "$2")
|
||||
{
|
||||
print STDERR "in tut.org, notebook $2 links to $1.html";
|
||||
$exit_status = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue