Sécjirutka/asciidoctor-html5s
Semantic HTML5 converter (backend) for Asciidoctor
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tháng
#1 Repository của tháng
#2 Repository của tháng
📄 asciidoctor-html5s — Backend HTML5 ngữ nghĩa cho Asciidoctor
Chuyển đổi AsciiDoc thành HTML5 sạch, có ngữ nghĩa, tuân thủ chuẩn truy cập — không rác, không phụ thuộc CSS framework.
asciidoctor-html5s là một backend (converter) cho Asciidoctor, được viết bởi Jakub Jirutka. Thay vì xuất HTML mặc định của Asciidoctor (thường chứa nhiều thẻ div, class tự sinh, cấu trúc ít ngữ nghĩa), backend này sinh ra HTML5 thuần túy, dùng đúng các thẻ <article>, <section>, <nav>, <aside>, <figure>, <figcaption>, <header>, <footer>… phù hợp với văn bản kỹ thuật, tài liệu, sách, bài blog. Dự án nhấn mạnh semantics (ngữ nghĩa) và accessibility (khả năng truy cập) — output sẵn sàng cho screen reader, SEO, và dễ style bằng CSS tùy ý mà không phải ghi đè class mặc định.
✨ Điểm nổi bật
- HTML5 ngữ nghĩa thuần túy: xuất thẻ
<section>,<article>,<nav>,<aside>,<figure>,<figcaption>… thay vì div/class soup. - Tuân thủ khả năng truy cập (a11y): cấu trúc heading đúng cấp độ, landmark roles, alt text cho hình ảnh, bảng có caption/summary.
- Không phụ thuộc CSS framework: output sạch, không chèn class Bootstrap/Tailwind, tự do style theo ý muốn.
- Hỗ trợ đầy đủ AsciiDoc: admonitions, callouts, tables, footnotes, cross-references, include, diagram (kroki/plantuml), math (MathJax/KaTeX).
- Tùy biến qua template Slim: dùng ngôn ngữ template Slim (Ruby) để override từng phần HTML nếu cần.
- Plugin Asciidoctor chuẩn: cài gem
asciidoctor-html5svà dùng-b html5shoặcbackend: html5strong API. - Nhẹ, không runtime JS: chỉ là backend Ruby, không cần Node, webpack, hay build step phức tạp.
- Tương thích Asciidoctor 2.x: cập nhật thường xuyên theo upstream.
💡 Vì sao đáng chú ý
Nhiều dự án docs dùng Asciidoctor nhưng output HTML mặc định khó style, kém ngữ nghĩa, gây vướng mắc cho SEO và screen reader. asciidoctor-html5s giải quyết triệt để: output HTML5 chuẩn W3C, heading outline đúng, landmark đầy đủ, table/figure có caption — mọi thứ "just works" khi đưa vào static site generator (Jekyll, Hugo, VitePress, Astro…) hoặc deploy thẳng lên Netlify/GitHub Pages. Nếu bạn viết tài liệu kỹ thuật, sách, spec, RFC bằng AsciiDoc và quan tâm đến chất lượng HTML đầu ra, backend này là lựa chọn hợp lý thay cho backend built-in.
#Asciidoctor #AsciiDoc #HTML5 #SemanticHTML #Accessibility #Documentation #OpenSource #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
:crystal_ball: A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!
:gem: A fast, open source text processor and publishing toolchain, written in Ruby, for converting AsciiDoc content to HTML 5, DocBook 5, and other formats.
:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
Java based open source static site/blog generator for developers & designers.
:scroll: A JavaScript port of Asciidoctor, a modern implementation of AsciiDoc
Convert AsciiDoc documents to PDF using web technologies
A Live Preview Plugin for Neovim that allows you to view Markdown, HTML (along with CSS, JavaScript), AsciiDoc, SVG files in a web browser with live updates.
AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)