]> git.ardis.lu - ardislu.dev/commitdiff
Add section in README describing marked
authorArdis Lu <ardisglu@gmail.com>
Sat, 26 Jun 2021 03:20:42 +0000 (20:20 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 26 Jun 2021 03:20:42 +0000 (20:20 -0700)
README.md

index 573aa91f8423940b0d3ff89ed091258823cd05aa..3ec8d9c548a695726a3d550fef339b9b56bc1b0f 100644 (file)
--- 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:
This page took 0.039417 seconds and 4 git commands to generate.