tirix / metamath-web

Metamath web server
http://metamath.tirix.org/mpeuni/toc
MIT License
4 stars 0 forks source link

metamath-web

A simple Metamath web server for Rust, displaying proofs in the most basic way.

View these Metamath pages in action here.

How-to

Installation

First, install rust if you don't have it yet on your system.

Clone this repository, and set.mm or the database you want to work with:

git clone https://github.com/metamath/set.mm.git –-depth 1
git clone https://github.com/tirix/metamath-web.git

Running the server

The following commands can then be used to launch the server:

cd metamath-web
cargo run ../set.mm/set.mm

Viewing the pages

Once the server is started, it will parse the metamath database. Wait until it displays the "Ready" message: it shall be a few seconds. You can then switch to a browser and visit for example http://localhost:3030/mpeascii/o2p2e4 or the table of content and start navigating. The port 3030 is the default, see usage for configuration of the server address and port.

Stopping the server

Just hit CTRL+C to stop the server once you're done browsing!

Features and roadmap

Here are some features implemented, and some which are still lacking:

Additional feature

It is possible to serve pages formatted using structured typesetting, by activating the sts feature, and browsing pages in the mpests path.

cargo run --features sts ../set.mm/set.mm

Libraries used