Static Site Generator

  • ISR (incremental static regeneration)
  • CSR(client-side rendering)
  • SSG (Static Site Generation)
  • SSR (server-side rendering)

https://github.com/myles/awesome-static-generators

Docusaurus - React

for Wiki

Sphinx - Python

reStructuredText -> HTML, PDF, plain text, EPUB, TeX - Start: https://www.sphinx-doc.org/en/master/tutorial/getting-started.html - toctree options: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html

GraphiQL: https://github.com/hasura/sphinx-graphiql

Themes

Builtin: https://www.sphinx-doc.org/en/master/usage/theming.html#builtin-themes - only the Alabaster and Scrolls themes are mobile-optimated

Templating/blocks: https://www.sphinx-doc.org/en/master/development/templating.html#blocks

Read the Docs theme with custom footer: https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/footer.html

html_show_sphinx = False # conf.py

# %templates_path%/footer.html    
{% extends "!footer.html" %}
{%- block extrafooter %}

{% endblock %}

Static Files

https://www.sphinx-doc.org/en/master/usage/configuration.html - html_static_path / html_css_files / html_js_files - html_additional_pages: .html files

Table

https://docs.espressif.com/projects/esp-docs/en/latest/writing-documentation/table.html - span: https://return42.github.io/linuxdoc/linuxdoc-howto/table-markup.html#flat-table

Diagrams

https://chiplicity.readthedocs.io/en/latest/Using_Sphinx/UsingGraphicsAndDiagramsInSphinx.html

MkDocs - Python

mkdocs.yml

for Blogs

Pelican - Python

Markdown, reStructuredText, and HTML - default theme -> blog : https://www.smashingmagazine.com/ - https://github.com/getpelican/pelican - https://docs.getpelican.com/en/latest/index.html#documentation

Cloudflare Pages

.pages.dev: https://developers.cloudflare.com/pages/platform/build-configuration/#framework-presets - Static: Framework presets = None - Vue 3: env NODE_VERSION>14.18

1 github repo => 1 cf project = 1 build kernel (ref)

Github pages

CNAME: .github.io

Gihub token: https://github.com/settings/tokens

Github Actions - SSR

https://docs.github.com/en/actions/quickstart

.github/workflows

check usage: https://github.com/settings/billing

Issue Blog

Vue + JS: https://github.com/Yidadaa/Issue-Blog-With-Github-Action

Free Hosting

Free Storage month
Github 500 MB 2000 min
Cloudflare 25MiB/site 500 times
vercel 100GB b/w
netlify 500 sites 100GB b/w(then $55 per 100GB)

Demos