Sign inSign up

flavienperier/markdown-api

By flavienperier

Updated 10 months ago

API to expose a list of Markdown files with paging.

Image
API management
Web servers
0

2.0K

flavienperier/markdown-api repository overview

license docker pulls ci status

Markdown API

API to expose a list of Markdown files with paging.

You can use the Swagger UI tool to view the API documentation available at https://raw.githubusercontent.com/flavien-perier/markdown-api/master/openapi.yaml.

To use this application, simply add Markdown files to the documents folder and add a header to them.

Here is an example of file :

---
title: Test
type: ARTICLE
description: Test article
categories: 
  - dev
author: Flavien PERIER <[email protected]>
date: 2020-09-24 13:06
---

The content of the article

The type of the article can be: ARTICLE, BLOG or DOCUMENTATION. The date is used to sort the articles.

Ports

  • 8080: HTTP

Volumes

  • /opt/app/documents

Env variables

  • DOMAIN: The server domain.

Docker-compose example

markdown-api:
  image: flavienperier/markdown-api
  container_name: markdown-api
  restart: always
  volumes:
    - ./documents:/opt/app/documents
  ports:
    - 8080:8080
  environment:
    DOMAIN: https://articles.flavien.cc

Tag summary

Content type

Image

Digest

sha256:7419dca9c

Size

5.4 MB

Last updated

10 months ago

docker pull flavienperier/markdown-api