As you evolve your site, you might end up with broken links!
https://mycoolsite.com/aboot.html
404 not found ☹️
Origami’s audit function scans your site and lists any pages with broken internal links.
site.ori
{
index.html: `
<h1>Home</h1>
<a href="aboot.html">About</a>
`
about.html: `<h1>About Us</h1>`
}
$ ori audit site.ori
index.html:
- aboot.html
$
Oops, a typo.
Fix the links and audit again to confirm all links work.
site.ori
{
index.html: `
<h1>Home</h1>
<a href="about.html">About</a>
`
about.html: `<h1>About Us</h1>`
}
$ ori audit site.ori
$
All good!
You can even audit a public site!
$ ori "audit('https://www.spacejam.com/1996/')"
cmp/lineup/lineupnoframes.html:
- cmp/lineup/triviaframes.html
cmp/junior/juniornoframes.html:
- bin/junior.map><img src=
cmp/lineup/quiz6.html:
- cmp/lineup/quiz6b.html
- cmp/lineup/quiz6d.html
cmp/behind/characters/void4.html:
- cmp/behind/characters/img/bg-behind.gif
bin/behind.map:
- bin/..cmp/behind/behind.html
- bin/..cmp/behind/sketches.html
- bin/..cmp/behind/chardevelopment.html
- bin/..cmp/behind/tech.html
- bin/..cmp/behind/broll.html
cmp/lineup/quiz4.html:
- cmp/lineup/img/quiz/q4.gif
Read more: Origami's Dev.audit function