/usr/share/doc/libghc-hakyll-doc/html/Hakyll-Web-Html-RelativizeUrls.html is in libghc-hakyll-doc 4.9.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Hakyll.Web.Html.RelativizeUrls</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Hakyll-Web-Html-RelativizeUrls.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Hakyll-Web-Html-RelativizeUrls.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hakyll-4.9.2.0: A static website compiler library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Hakyll.Web.Html.RelativizeUrls</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module exposes a function which can relativize URL's on a webpage.</p><p>This means that one can deploy the resulting site on
<code>http://example.com/</code>, but also on <code>http://example.com/some-folder/</code>
without having to change anything (simply copy over the files).</p><p>To use it, you should use absolute URL's from the site root everywhere. For
example, use</p><pre><img src="/images/lolcat.png" alt="Funny zomgroflcopter" /></pre><p>in a blogpost. When running this through the relativize URL's module, this
will result in (suppose your blogpost is located at <code>/posts/foo.html</code>:</p><pre><img src="../images/lolcat.png" alt="Funny zomgroflcopter" /></pre></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:relativizeUrls">relativizeUrls</a> :: <a href="Hakyll-Core-Item.html#t:Item">Item</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Hakyll-Core-Compiler.html#t:Compiler">Compiler</a> (<a href="Hakyll-Core-Item.html#t:Item">Item</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:relativizeUrlsWith">relativizeUrlsWith</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:relativizeUrls" class="def">relativizeUrls</a> :: <a href="Hakyll-Core-Item.html#t:Item">Item</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Hakyll-Core-Compiler.html#t:Compiler">Compiler</a> (<a href="Hakyll-Core-Item.html#t:Item">Item</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>) <a href="src/Hakyll-Web-Html-RelativizeUrls.html#relativizeUrls" class="link">Source</a> <a href="#v:relativizeUrls" class="selflink">#</a></p><div class="doc"><p>Compiler form of <code><a href="Hakyll-Web-Html-RelativizeUrls.html#v:relativizeUrls">relativizeUrls</a></code> which automatically picks the right root
path</p></div></div><div class="top"><p class="src"><a id="v:relativizeUrlsWith" class="def">relativizeUrlsWith</a> <a href="src/Hakyll-Web-Html-RelativizeUrls.html#relativizeUrlsWith" class="link">Source</a> <a href="#v:relativizeUrlsWith" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Path to the site root</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>HTML to relativize</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Resulting HTML</p></td></tr></table></div><div class="doc"><p>Relativize URL's in HTML</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|