Do you want your own tech blog or documentation site? EasyDoc helps you generate pure static blogs and documentation portals that you can deploy anywhere with zero fuss.
The tool works as a command-line utility and will be published on both npm and nuget.
Demo: NilTor's Blog
Note
Version V1.0 is no longer maintained—V2 brings richer features and more flexibility.
Compared with similar tools, EasyDoc offers:
- Minimal configuration to get started quickly
- Unified generation of homepage, blog, documentation, and about pages for a complete personal tech site
- Blog search plus category and archive filtering out of the box
- Support for local image paths inside documentation
- Light and dark themes that follow the system preference while staying mobile-friendly
- Enhanced markdown rendering with TOC, mermaid, nomnoml, Math, plus code highlighting and copy controls
- Render multiple documentation projects within the same site
- Publish multiple versions per documentation
- Deliver documentation in multiple languages
EasyDoc is distributed on nuget. Run the following command to install it globally:
dotnet tool install -g Ater.EasyDocsAfter installation, use the ezdoc command to operate the tool.
Pick a repository to store your markdown documents—assume it is located in the folder MyDocs. Open a terminal inside MyDocs to work in that workspace.
Run ezdoc init or create webinfo.json manually with the structure below:
{
"Name": "Niltor Blog",
"Description": "🗽 for freedom",
"AuthorName": "Ater",
"BaseHref": "/blazor-blog/",
"Domain": "https://aterdev.github.io",
"DocInfos": [
{
"Name": "EasyDoc",
"Languages": [
"zh-cn",
"en-us"
],
"Versions": [
"2.0"
]
},
{
"Name": "example",
"Languages": [
"zh-cn"
],
"Versions": [
"1.0"
]
}
]
}The DocInfos array tells EasyDoc which documentation projects to render and which languages/versions each project supports. Always keep a trailing / on BaseHref; set it to / when publishing from a root domain with no subfolder.
Create a content directory (for example Content) containing the following:
blogs: all markdown files here become blog postsdocs: documentation files organized asdocs/<DocName>/<language>/<version>/...about.md: markdown for the about page
The docs folder must mirror the structure defined in DocInfos. For example:
- docs
- EasyDoc
- zh-cn
- 2.0
- doc1.md
- doc2.md
- 2.0
- en-us
- 2.0
- doc1.md
- 2.0
- zh-cn
- EasyDoc
- example
- zh-cn
- 1.0
- doc.md
- 1.0
- zh-cn
From the repository root run:
ezdoc build .\Content .\WebAppThis command converts every markdown file inside Content into a static site under WebApp. Preview with http-server, then deploy the resulting WebApp folder anywhere you host static content.
More details: Official documentation