2017 © Pedro Peláez
 

library airdoc

Serve document on the air

image

ddliu/airdoc

Serve document on the air

  • Wednesday, March 18, 2015
  • by ddliu
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

airdoc

Serve markdown document on the air., (*1)

Screenshot, (*2)

Features

  • Documents are structured by directory
  • Multiple sources
  • No database

Install

With Composer:, (*3)

composer require ddliu/airdoc

With GIT:, (*4)

git clone https://github.com/ddliu/airdoc.git docviewer
cd docviewer
composer install

Web Server

Nginx

See nginx.conf, (*5)

Apache

.htaccess is already configured for Apache., (*6)

PHP Builtin Server

make server

or, (*7)

php -S localhost:8080 -t . router.php

Config

Airdoc can be customized with config.php., (*8)

<?php
return [
    'title' => 'Page title',
    // add multiple document sources
    'mount' => [
        'path/to/src2' => '/', // base source
        '../path/to/src1' => '/group1',
        'path/to/src3' => '/group1/group2',
    ],
    // basic auth
    'users' => [
        'user1' => 'password1',
        'user2' => 'password2',
        'user3' => 'password3',
    ],
    // path patterns to be ignored
    'ignore_regexp' => [
        '/\.', // ignore hidden files or directories(start with dot)
        '\.php$', // ignore php file
    ],
];
?>

TODO

  • TOC
  • Cache

The Versions

18/03 2015

dev-master

9999999-dev

Serve document on the air

  Sources   Download

MIT

The Requires

 

by dong

18/03 2015

v0.1.0

0.1.0.0

Serve document on the air

  Sources   Download

MIT

The Requires

 

by dong