From f58c9dcf19f5da4256a9a56d3ebe8370b6b335b3 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 25 Jun 2021 20:20:42 -0700 Subject: [PATCH] Add section in README describing marked --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.47.3