Markopolis: A Web Application for Markdown Files

a year ago

What is Markopolis?

Markopolis is a web application and API server designed for hosting Markdown files. It allows you to share your Markdown notes as a website and use APIs to interact with and manipulate the Markdown files. It's similar to Obsidian Publish, but without locking you into the Obsidian ecosystem.

Software Features:

REST API Interface: Provides a REST API to interact with different elements within your notes. Customizable UI: Supports "Bring Your Own UI" by using Markopolis as the backend. Obsidian Markdown Style: Close to Obsidian Markdown flavor, supporting backlinks, todos, and LaTeX equations. Instant Rendering: Push Markdown notes to the server with a single command and have them instantly rendered into simple web pages. Full-Text Search: Implements full-text search. Dark and Light Mode: Supports both dark and light modes. Code Formatting and Todos: Supports code formatting and todo items. Low Maintenance: Requires almost no maintenance. API Documentation: Built-in API documentation generated using FastAPI.

https://appstore.lazycat.cloud/#/shop/detail/wcloud.gblw.app.markopolis

How to Use

After the application is installed, the homepage opens by default, which includes several built-in files.

image.png

From the Lazycat Cloud Drive, you can see an additional markopolis/data folder; all documents are stored here.

image.png

Simply place files into this directory, and the data will become visible. However, please note: the names of the .md files must not contain special symbols, such as -. If they do, the data will not load and an error will occur.

image.png

Markdown files must start with the following header. Otherwise, the file will not be read correctly. The ID, Title, and Tags fields are mandatory, but their specific values can be customized.

ID: 1c Title: Introduction to Deep Learning Tags: #AI #MachineLearning

Example:

image.png

The displayed result will look like this:

image.png

If you want to develop your own application and connect to the server, you can access the API documentation by appending /docs to your domain.

image.png

For example, the first endpoint is "hello world". image.png

Use an App Inspector to obtain the value of the key.

https://appstore.lazycat.cloud/#/shop/detail/top.j0k3r.lpk-inspector

image.png

Enter this value vCUJvtcnsJPxPUHZzNWNquHMzxEYEqoCWEXuwnEBaFFCtduhhTTsmwRKxWHGFvdG and click "Execute".

image.png

You will see a status of 200 and the returned result "hello world", indicating the API endpoint is accessible.

image.png

This allows you to write your own interface, call the API, and push data directly to the server.

image.png

The file will be visible directly in the Cloud Drive. image.png

Similarly, Markdown files created via the API must also adhere to the content rules; otherwise, parsing will fail.

The above covers the basic usage of Markopolis, which serves as a capable Markdown viewer.

Author
天天
Markopolis: A Web Application for Markdown Files