paulremo / NRPMHandbook

Repository to store and track the development on the ADS/Matrisk project for developing a jupyter book of the NRPM handbook.
Other
1 stars 1 forks source link

Fix broken links in digital handbook #50

Closed paulremo closed 2 years ago

paulremo commented 2 years ago

The following message is displayed by linkchecker on the current version of the digital handbook:

URL        `../../../_static/interactivity/html/meca_table4_11.html'
Parent URL file:///C|/02_NRPMHandbook/_build/html/mechanical/handbook/reliability_prediction/structural_models_equations.html, line 1014, col 25
Real URL   file:///C|/02_NRPMHandbook/_build/html/_static/interactivity/html/meca_table4_11.html
Result     Error: URLError: <urlopen error [WinError 2] The system cannot find the file specified: '02_NRPMHandbook\\_build\\html\\_static\\interactivity\\html\\meca_table4_11.html'...

URL        `../../../_static/interactivity/html/meca_table4_12.html'
Parent URL file:///C|/02_NRPMHandbook/_build/html/mechanical/handbook/reliability_prediction/structural_models_equations.html, line 1104, col 25
Real URL   file:///C|/02_NRPMHandbook/_build/html/_static/interactivity/html/meca_table4_12.html
Result     Error: URLError: <urlopen error [WinError 2] The system cannot find the file specified: '02_NRPMHandbook\\_build\\html\\_static\\interactivity\\html\\meca_table4_12.html'...

URL        `../../../_static/interactivity/html/meca_table4_13.html'
Parent URL file:///C|/02_NRPMHandbook/_build/html/mechanical/handbook/reliability_prediction/structural_models_equations.html, line 1180, col 25
Real URL   file:///C|/02_NRPMHandbook/_build/html/_static/interactivity/html/meca_table4_13.html
Check time 0.007 seconds
Result     Error: URLError: <urlopen error [WinError 2] The system cannot find the file specified: '02_NRPMHandbook\\_build\\html\\_static\\interactivity\\html\\meca_table4_13.html'...

URL        `../../../_static/interactivity/html/meca_table4_14.html'
Parent URL file:///C|/02_NRPMHandbook/_build/html/mechanical/handbook/reliability_prediction/structural_models_equations.html, line 1294, col 25
Real URL   file:///C|/02_NRPMHandbook/_build/html/_static/interactivity/html/meca_table4_14.html
Check time 0.001 seconds
Result     Error: URLError: <urlopen error [WinError 2] The system cannot find the file specified: '02_NRPMHandbook\\_build\\html\\_static\\interactivity\\html\\meca_table4_14.html'...

URL        `../../../_static/interactivity/html/meca_table4_17.html'
Parent URL file:///C|/02_NRPMHandbook/_build/html/mechanical/handbook/reliability_prediction/structural_models_equations.html, line 1744, col 25
Real URL   file:///C|/02_NRPMHandbook/_build/html/_static/interactivity/html/meca_table4_17.html
Result     Error: URLError: <urlopen error [WinError 2] The system cannot find the file specified: '02_NRPMHandbook\\_build\\html\\_static\\interactivity\\html\\meca_table4_17.html'...

URL        `../../../_static/interactivity/html/meca_table4_15.html'
Parent URL file:///C|/02_NRPMHandbook/_build/html/mechanical/handbook/reliability_prediction/structural_models_equations.html, line 1389, col 25
Real URL   file:///C|/02_NRPMHandbook/_build/html/_static/interactivity/html/meca_table4_15.html
Check time 0.005 seconds
Result     Error: URLError: <urlopen error [WinError 2] The system cannot find the file specified: '02_NRPMHandbook\\_build\\html\\_static\\interactivity\\html\\meca_table4_15.html'...

URL        `../../../_static/interactivity/html/meca_table4_16.html'
Parent URL file:///C|/02_NRPMHandbook/_build/html/mechanical/handbook/reliability_prediction/structural_models_equations.html, line 1651, col 25
Real URL   file:///C|/02_NRPMHandbook/_build/html/_static/interactivity/html/meca_table4_16.html
Check time 0.002 seconds
Result     Error: URLError: <urlopen error [WinError 2] The system cannot find the file specified: '02_NRPMHandbook\\_build\\html\\_static\\interactivity\\html\\meca_table4_16.html'...

Please fix those broken links and commit the changes.

paulremo commented 2 years ago

@csxADS thanks for fixing the broken links, unfortunately there are now 3 new broken links. Please fix them and let me know once you did:

URL        `../../picture/table4_4.png'
Name       `Table 4 Miscellaneous'
Parent URL file:///02_NRPMHandbook/_build/html/miscellaneous/handbook/reliability_prediction/process_reliability_modelling.html, line 1043, col 13
Real URL   file:///02_NRPMHandbook/_build/html/miscellaneous/picture/table4_4.png
Result     Error: URLError: <urlopen error [WinError 3] The system cannot find the path specified: '02_NRPMHandbook\\_build\\html\\miscellaneous\\picture\\table4_4.png'>

URL        `../../picture/table4_5.png'
Name       `Table 5 Miscellaneous'
Parent URL file:///02_NRPMHandbook/_build/html/miscellaneous/handbook/reliability_prediction/process_reliability_modelling.html, line 1193, col 13
Real URL   file:///02_NRPMHandbook/_build/html/miscellaneous/picture/table4_5.png
Check time 0.001 seconds
Result     Error: URLError: <urlopen error [WinError 3] The system cannot find the path specified: '02_NRPMHandbook\\_build\\html\\miscellaneous\\picture\\table4_5.png'>

URL        `../../picture/table4_6.png'
Name       `Table 6 Miscellaneous'
Parent URL file:///02_NRPMHandbook/_build/html/miscellaneous/handbook/reliability_prediction/basic_fr_derivation_nsm.html, line 904, col 13
Real URL   file:///02_NRPMHandbook/_build/html/miscellaneous/picture/table4_6.png
Check time 0.001 seconds
Result     Error: URLError: <urlopen error [WinError 3] The system cannot find the path specified: '02_NRPMHandbook\\_build\\html\\miscellaneous\\picture\\table4_6.png'>
csxADS commented 2 years ago

Are the errors remaining ? I added the files yesterday

paulremo commented 2 years ago

Yes, they remain. The problem is that Jupyter Book does not detect the images when they are included inside HTML and, consequently, doesn't include them inside the _build folder. I fixed this in d8aca3265a00d2440eb4e186212d4bb040fae2c7 by including images inside list-table directives with:

* - ![Table 4 Miscellaneous](../../picture/table4_4.png)

instead of

* - <table id="misc-tabletest" class="myTable">
        <tr>
            <td><img src="../../picture/table4_4.png" alt="Table 4 Miscellaneous" style="height: 600px;"></td>
        </tr>
    </table>

Please confirm that this doesn't cause any further issues and then close this ticket.

P.S.: I also fixed three broken links in the bibliography. Don't forget the https://... prefix when writing URLs, otherwise the browser will think this is a local file.

csxADS commented 2 years ago

Fixed during referencing