Skip to content

Latest commit



154 lines (85 loc) · 4.24 KB


File metadata and controls

154 lines (85 loc) · 4.24 KB


Title: FarBox Doc


This is a template for, a site built by about 60 lines code (in Jade template syntax), but with lots of amazing features.

This template also means a documentation generator, turns a directory into a powerful website to render your documents.

If you installed the APP from FarBox named FarBox Editor, you can also export a directory into a PDF document, same contents to your website.

How to use?


  1. make sure you had an account in, which means installed a Dropbox APP named FarBox
  2. copy the template folder into the site folder <your site folder named in Domain format> (also a sub folder of FarBox).
  3. login into, you will find the site you created.


  1. put your documents into the docs directory.
  2. put a index.txt(/.md/.mk/.markdown) into the docs directory to create homepage.
  3. make sure there must be some documents in the directories of docs, otherwise, the navigation will be incomplete.


No Server Needed, Supports Custom Domains

This is a template for which one will turn your directory in Dropbox into a powerful website, so no server needed.

You can simply create a site folder named a subdomain of *, like, and the domain will be visitable. Then go to to discovery something.

Custom Template

This is a template with a little code, so, just modify it if you like.

By the way, FarBox supports AutoReload, no extra tools needed except FarBox Editor, your website will be live in realtime when you coding the template.

Custom Position.

Every document need a position. you can use 1.23 document title.txt to give the this document a position of 1.23.

The filename rule is working for a file or a directory.

You can also declare a position in the metadata of a document (or landing doc).

btw, 1.2 will be at the front of 1.3.

If do not put a position for a document, it also works, but without nice order.

Supports Metadata

Before writing the content of a document, you can put metadata first. The simplest way looks like below:

Title: Document Title
Position: 1.2
Date: 2014-01-06 12:09

Supports YAML too, it looks like:

Title: Document Title
Position: 1.2
Date: 2014-01-06 12:09
    - Tag1
    - Tag2

Directory Landing Page

Put a index.txt(/.md/.mk/.markdown) into a directory, then the directory will have it's own landing page.

We also call it landing doc.

Supports Table of Contents

It should be declared in the metadata part.

toc: yes
/* or */
toc: no

Auto Generated Navigation

The navigation is very smart.

Subfolders in docs will be the main cells, and the subfolders of subfolders will be the sub cells.

If you open the url of a document, and the document has a table of contents, then the table of contents will be injected into the navigation too.

If you open the url of a document, the Navigation will scroll to the item which one is selected.

If a directory (displayed in the navigation) has no lading doc in it, the url of this directory will be #.


  1. If a folder to be a sub menu, make sure there are some articles in it, except
  2. If a article to be a sub menu, just put it into the docs folder.

Supports markdown

  • Supports Mathjax.
  • Auto linebreaks, if do not need this feature, make sure your filename endswith '.mk'.
  • Table and Footnote are extended.

Syntax Highlighting

codes highlighting


codes highlighting with lines displayed


Fulltext Search

This feature is also supported by FarBox too. But only two languages are usable: English and Chinese.

Document Change Logs

This is a amazing feature, you can visit (make sure you are login), this page will show the logs of sync in JSON format.

You will get some information like when (even which ip) a document was changed/deleted/created.


You can set users with password to visit your site, and a dig sort system base on your visitors of a site, .etc. All of these are from the features of FarBox.