
Markdown‑First Workflow (for Engineers)
Table of Contents
Markdown‑First Workflow (for Engineers)#
This is a professional, Markdown‑first authoring workflow for technical documentation, lectures, blogs, and slides.
All content is written in Markdown, and outputs (PDF, HTML, slides, static site) are generated automatically.
1. Core tools#
- VS Code – main editor.
- Markdown – single source format for docs, lectures, blog posts.
- LaTeX – inline and block math inside Markdown.
- Mermaid – diagrams inside code blocks.
- Marp – Markdown‑based slides.
- Hugo – static site generator for SEO‑friendly blog / docs.
- Pandoc + markdown-pdf – PDF / HTML / DOCX generation from Markdown.
2. Writing layer (what you type)#
All content is written in Markdown:
$$
\ddot{x} + 2\zeta\omega_n\dot{x} + \omega_n^2 x = 0
$$\(\ddot{x} + 2\zeta\omega_n\dot{x} + \omega_n^2 x = 0\)
Diagrams:
graph LR
A[FIXED] --> B[Mermaid Works]graph LR A[FIXED] --> B[Mermaid Works]
Slides (Marp):
---
marp: true
theme: default
paginate: true
math: mathjax
---
# Lecture 1 – Introduction to Robotics3. Editor setup (VS Code)#
Install these (or similar):
- Marp extension – live preview + export of slides.
- Mermaid extensions
Mermaid ChartorMermaid Graphical Editorvscode-mermaid-preview/markdown-mermaid
- Latex‑related
LaTeX Workshop
- Pandoc + PDF
vscode-pandocmarkdown-pdf
- Markdown enhancements
markdown-all-in-onemarkdownlint
You can:
- Edit Markdown + LaTeX + Mermaid in one pane.
- Open a Mermaid‑editing webview attached to any
mermaidblock. - Preview Mermaid and math in the editor or side panel.
4. Outputs (what gets published)#
From the same Markdown, generate:
- Static site / blog
- Hugo builds SEO‑friendly static pages from Markdown + LaTeX + Mermaid.
- PDFs
markdown-pdf→ quick Chromium‑style PDFs.pandoc+ LaTeX backend → high‑quality PDFs (for reports, notes, books).
- DOCX / other formats
pandoccan export to DOCX, EPUB, HTML, etc.
- Slides
- Marp exports the same Markdown file as PDF / HTML slides.
5. Folder structure (example)#
project/
├── docs/ # docs, guides, tutorials
├── lectures/ # Markdown lecture notes
├── slides/ # Marp decks
├── blog/ # Hugo content (or Hugo subdir)
├── pdf/ # output PDFs
├── html/ # output HTML versions
└── .vscode/ # workspace settings + tasks- Git‑native, repo‑first.
- All source is Markdown + LaTeX + Mermaid.
- Generated outputs are not hand‑edited.
6. Bilingual + SEO (Hugo)#
- Use Hugo with
en/ar(or other languages):content/en/posts/... content/ar/posts/... - In Hugo templates, add:
canonicalURLhreflang="en"/hreflang="ar"
- This gives you SEO‑friendly static pages with proper language signals.
7. One‑command workflow#
You can automate with just / make / scripts:
just hugo # build Hugo site
just pdf file.md # build PDF from Markdown
just slideshow.md # export Marp deck to PDFPlus CI/CD (e.g., GitHub Actions) that:
- Builds Hugo site
- Runs
pandoc/markdown-pdf - Deploys static site to GitHub Pages / Netlify.
8. Key philosophy#
- One source format: Markdown + LaTeX + Mermaid.
- Many outputs: HTML, PDF, DOCX, slides, static site.
- Git‑first: all content is in version‑controlled Markdown.
- Tool‑agnostic style: you can swap Hugo ↔ others later; Markdown stays.
There are no articles to list here yet.
