Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Serve Asciidoc as HTML with live-reload support

Notifications You must be signed in to change notification settings

fardjad/deno-asciidoctor-server

Repository files navigation

deno-asciidoctor-server

deno-asciidoctor-server is a minimal server built with Deno that serves Asciidoc documents as HTML

I’ve made an "always-fresh" Deno port of Asciidoctor.js to make this project possible. Make sure to check out the port here.

Features

  • Can be compiled to a self-contained executable

  • Serve Asciidoc documents as HTML

  • Directory indexes

  • Live-reload on save

Install

deno install --allow-net --allow-read -n deno-asciidoctor-server https://cdn.jsdelivr.net/gh/fardjad/deno-asciidoctor-server/app.ts

Development

Instructions

  1. Clone the repository

  2. Run pre-commit install to install/configure git hooks

  3. Make your changes and submit a PR

Updating dependencies

pre-commit repos

pre-commit autoupdate

Deno dependencies

See the Todo section

Todo

  • ❏ Refactor server-utils.ts and make it more modular

  • ❏ Improve live-reload implementation

  • ❏ Implement a simple middleware/plugin architecture for the server

  • ❏ Make a CLI with Cliffy

  • ❏ Setup udd

  • ❏ Add Asciidoctor.js plugin support

About

Serve Asciidoc as HTML with live-reload support

Resources

Stars

Watchers

Forks

Packages

No packages published