Markdown Docs Static Site Generator

Posted on  by admin

Learn what a static site generator is and why you might choose a static site generator, such as Gatsby, over other publishing tools.

A static site generator is a software application that creates HTML pages from templates or components and a given content source. Most static site generators, including Gatsby, accept Markdown-formatted text files as a source, although Gatsby is not limited to Markdown.

What Is a Static Site Generator?

Why Use a Static Site Generator (Pros and Cons)

Static site generators are an alternative to database-driven content management systems, such as WordPress and Drupal. In such systems, content is managed and stored in a database.

What is a Static Site Generator?

When the server receives a request for a particular URL, a software layer retrieves data from the database, merges it with template files, and generates an HTML page as its response.

Adding Markdown Support to My SSG

Static site generators, on the other hand, generate HTML pages during a build process. Gatsby, for example, loads JSON from GraphQL, and merges that data with components to create HTML pages.

Static Sites vs Dynamic Sites

These generated pages are then deployed to a web server. When the server receives a request, it responds with rendered HTML.