You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a hacky script to look for dead links. Open a console and cd path/to/fundamentals_of_interferometry. Then fire up ipython and copy the below code (ctrl-c):
So this says that in folder 2_Mathematical_Groundwork there are files with the following bad links. You can cd into that folder and use ack-grep to find them like this: ack-grep "2_2_important_functions.ipynb#math:sec:Rectangle_function"
with output:
2_4_the_fourier_transform.ipynb
428: "Remember the [rectangle function ➞](2_2_important_functions.ipynb#math:sec:Rectangle_function) <!--\\ref{math:sec:Rectangle_function}--> $\\Pi(x) = \n",
so now you know where the bad link is. Hopefully this helps.
The text was updated successfully, but these errors were encountered:
Oh - and "Wrong URL" means the file doesn't exist, while "Wrong ID" means the id (the part after the #) doesn't exist (ie, that text doesn't appear in the file).
jfunction
changed the title
Dead Links
(Some code to find) Dead Links
Feb 6, 2017
I have written a hacky script to look for dead links. Open a console and
cd path/to/fundamentals_of_interferometry
. Then fire up ipython and copy the below code (ctrl-c):Now go into your ipython console and type
%paste
Look for whatever folder you care about, eg if you are on Chapter 2 look for something like this:
So this says that in folder
2_Mathematical_Groundwork
there are files with the following bad links. You cancd
into that folder and useack-grep
to find them like this:ack-grep "2_2_important_functions.ipynb#math:sec:Rectangle_function"
with output:
so now you know where the bad link is. Hopefully this helps.
The text was updated successfully, but these errors were encountered: