Skip to content

Commit

Permalink
start moving off observable
Browse files Browse the repository at this point in the history
  • Loading branch information
shanamatthews committed Oct 3, 2024
1 parent 7173685 commit d5cd3f7
Show file tree
Hide file tree
Showing 33 changed files with 24 additions and 40 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ This is a super simple static site generator written with `pandoc` and a few lin

The [`build`](https://github.com/shanamatthews/static-site-generator/blob/main/build) script generates the site using `pandoc`. This script must be run after any changes & before pushing to GitHub.

Posts with `draft: true` in the frontmatter will be ignored by the build script.

Idea inspired by [rwxrob](https://github.com/rwxrob/).

### how to run locally

You can preview this locally with my [`preview`](https://github.com/shanamatthews/dotfiles/blob/main/scripts/preview) script.

This is hosted using [Azure Static Webapps](https://learn.microsoft.com/azure/static-web-apps/getting-started?tabs=vanilla-javascript) because it's free 🎉 and uses the associated GitHub plugin for CI/CD.
### Hosting

Posts with `draft: true` in the frontmatter will be ignored by the build script.
This is hosted using [Azure Static Webapps](https://learn.microsoft.com/azure/static-web-apps/getting-started?tabs=vanilla-javascript) because it's free 🎉 and uses the associated GitHub plugin for CI/CD.

Idea inspired by [rwxrob](https://github.com/rwxrob/).
Currently hosted at [shana.codes](https://shana.codes/).
1 change: 0 additions & 1 deletion about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@ <h2 id="where-to-find-me">Where to find me</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion assets/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ <h1 class="title">$title$</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ for md in **/*.md; do
--variable assets-folder="${assets_folder}" || \
echo "Error: failed to build ${md}"
done

1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,4 @@ <h2 id="small-redemption">Small redemption</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion portfolio/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,4 @@ <h3 id="coinbase-1">Coinbase</h3>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/chatgpt-site-improvements.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,4 @@ <h2 id="small-redemption">Small redemption</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/does-socialism-lead-to-autoritarianism.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@ <h3 id="notes">Notes</h3>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/goodreads-to-open-library.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,4 @@ <h4 id="update">Update!!</h4>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/i-joined-sentry.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,4 @@ <h2 id="what-will-i-be-doing">What will I be doing?</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@ <h2 id="latest-posts">Latest posts:</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/profiling-101-pt-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,4 @@ <h2 id="conclusion">Conclusion</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/profiling-101-pt-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,4 @@ <h2 id="conclusion">Conclusion</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/python-311.html
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,4 @@ <h2 id="wrap-up">Wrap Up</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/spine-generator-open-library-edition.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,4 @@ <h3 id="more-apis">More APIs</h3>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/static-site-generator-with-bash.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ <h1 class="title">Static site generator with <code>pandoc</code> +
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/visualizing-my-2019-carbon-choices.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,4 @@ <h2 id="i-try-to-cite-my-sources">I (try to) cite my sources</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-2-27-23.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,4 @@ <h2 id="reading">Reading</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-3-19-23.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,4 @@ <h3 id="books">Books</h3>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-3-6-23.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,4 @@ <h2 id="reading">Reading</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-4-03-23.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,4 @@ <h3 id="books">Books</h3>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-5-31-20.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,4 @@ <h1 class="title">week notes 5/31/2020</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-6-14-20.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,4 @@ <h2 id="reading">Reading</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-6-21-20.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,4 @@ <h1 id="i-liked-this">i liked this</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-6-6-20.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,4 @@ <h1 id="i-liked-this">I liked this</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-7-26-20.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,4 @@ <h1 id="i-liked-this">I liked this</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-7-5-20.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,4 @@ <h1 id="i-liked-this">I liked this</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/week-notes-maybe.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ <h1 class="title">week notes?</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
1 change: 0 additions & 1 deletion posts/workout-tracker.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,4 @@ <h1 class="title">Workout Tracker</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
3 changes: 3 additions & 0 deletions reading/get-book-data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
console.log(d3);

console.log('youre on the books page')
11 changes: 5 additions & 6 deletions reading/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
</nav>
</header>
<h1 class="title">What am I reading?</h1>
<div id="observablehq-52db9cf9">
<div class="observablehq-books2">

</div>
<script src="//d3js.org/d3.v4.min.js"></script>
<script src = "./get-book-data.js"></script>
<!-- <div id="observablehq-52db9cf9">
<div class="observablehq-books2"></div>
</div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@shanamatthews/spine-generator-open-library-edition.js?v=3";
(new Runtime).module(define, name => {
if (name === "books2") return Inspector.into("#observablehq-52db9cf9 .observablehq-books2")();
});
</script>
</script> -->
<p>I made this with D3 on <a
href="https://observablehq.com/">Observable</a>. I’ve written a
couple posts about how I made it:</p>
Expand All @@ -61,5 +61,4 @@ <h1 class="title">What am I reading?</h1>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>
9 changes: 7 additions & 2 deletions reading/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ author: 'Shana'
keywords: [reading]
---

<div id="observablehq-52db9cf9">
<script src="//d3js.org/d3.v4.min.js"></script>
<script src = "./get-book-data.js"></script>



<!-- <div id="observablehq-52db9cf9">
<div class="observablehq-books2"></div>
</div>
<script type="module">
Expand All @@ -13,7 +18,7 @@ keywords: [reading]
(new Runtime).module(define, name => {
if (name === "books2") return Inspector.into("#observablehq-52db9cf9 .observablehq-books2")();
});
</script>
</script> -->

I made this with D3 on [Observable](https://observablehq.com/). I've written a couple posts about how I made it:

Expand Down
1 change: 0 additions & 1 deletion talks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,4 @@ <h2 id="short-form-videos">Short-form videos</h2>
<a rel="me" href="https://hachyderm.io/@shanacodes"></a>
</footer>
<script src="/assets/main.js"></script>

</html>

0 comments on commit d5cd3f7

Please sign in to comment.