From: Ardis Lu Date: Sat, 26 Jun 2021 03:20:42 +0000 (-0700) Subject: Add section in README describing marked X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=f58c9dcf19f5da4256a9a56d3ebe8370b6b335b3;p=ardislu.dev Add section in README describing marked --- diff --git a/README.md b/README.md index 573aa91..3ec8d9c 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ Also check out my [main website](https://ardis.lu)! I'm using Google Sheets and Google Docs as the CMS for this website. A Google Sheet stores the content for the cards on the homepage. Then, each blog post is contained in its own separate Google Doc. Both the Google Sheet and the Google Docs are queried through a Google Apps Script proxy web server ([google-api-proxy](https://github.com/ardislu/google-api-proxy)). The proxy allows anonymous queries to the Google Sheets/Docs APIs (which normally require OAuth 2.0 authorization, even for publicly available documents). +## Google Doc -> markdown -> HTML + +Once I fetch an article from the Google Docs API, the article is converted into markdown then converted into HTML using [marked](marked.js.org). + ## 404.html as a router GitHub Pages automatically redirects any `HTTP 404 Not Found` to `404.html` if it exists. I'm using `404.html` as a router for the blog posts dynamically fetched from the Google Sheet. Here's how to replicate GitHub Pages' treatment of `404.html` on a local development server: