-
Notifications
You must be signed in to change notification settings - Fork 0
skogshjort/skogshjort.github.io
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> <head> <meta charset="utf-8" /> <link rel="shortcut icon" href="images/favicon5.png"> <script> let book_animation_index = -1; const last_index = 5; document.querySelector("link").href = "images/favicon0.png"; var book_animation = window.setInterval(() => { let url = "images/favicon" + Math.max(0, book_animation_index) + ".png"; console.log(url) document.querySelector("link").href = url; book_animation_index += 1; if (book_animation_index > last_index) { window.clearInterval(book_animation); } }, 75) </script> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> <title>readme</title> <style> code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} div.columns{display: flex; gap: min(4vw, 1.5em);} div.column{flex: auto; overflow-x: auto;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} /* The extra [class] is a hack that increases specificity enough to override a similar rule in reveal.js */ ul.task-list[class]{list-style: none;} ul.task-list li input[type="checkbox"] { font-size: inherit; width: 0.8em; margin: 0 0.8em 0.2em -1.6em; vertical-align: middle; } .display.math{display: block; text-align: center; margin: 0.5rem auto;} </style> <link rel="stylesheet" href="style.css" /> </head> <body> <header id="title-block-header"> <h1 class="title">readme</h1> </header> <p><em>blog using pandoc and tup</em></p> <h2 id="building">building</h2> <p>The dates functionality depends on <code>git log</code>ing, and since tup ignores everything inside <code>.git</code> changes to dates (by <code>git commit</code>ing files for example, giving them a date) doesn’t cause git to rebuild the metadata files. To circumvent this I am depending on a dummy file. Do the following to set up the project:</p> <ul class="incremental"> <li>hard link <code>.git/logs/HEAD</code> to a local file <code>gitlog</code></li> <li>install dependencies <ul class="incremental"> <li>pandoc</li> <li>tup</li> </ul></li> </ul> <p>and you’re good to go!</p> <h2 id="todo">todo</h2> <p>A better workaround would be to have a dummy file for the results of the <code>git log</code> commands, and have a wrapper that removes that file before running <code>tup</code>. Another copy would then be created using the ^o flag in tup, to protect against further recompiles.</p> <ul class="incremental"> <li>wrapper <ul class="incremental"> <li>deletes <code>git_log_output_regen</code></li> <li>runs tup <ul class="incremental"> <li>tup regenerates <code>git_log_output_regen</code></li> <li>tup copies <code>git_log_output_regen</code> to <code>git_log_output</code> with the ^o flag</li> <li>if <code>git_log_output</code> did change, then any rules depending on it also runs</li> </ul></li> </ul></li> </ul> <p>Back to <a href="index.html">wikiblogarden</a>.</p> </body> <script> if (localStorage.backgroundcolor) { document.getElementsByTagName("body")[0].style.background = localStorage.backgroundcolor; } </script> </html>
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published